@extends('admin.layouts.master') @section('content')

{{ trans('app.delivery_boys') }}

@can('massDelete', \App\Models\User::class) @endcan @foreach ($deliveryBoys as $deliveryboy) @endforeach
{{ trans('app.avatar') }} {{ trans('app.nice_name') }} {{ trans('app.full_name') }} {{ trans('app.phone_number') }} {{ trans('app.email') }} {{ trans('app.status') }}  
{{ trans('app.avatar') }} {{ $deliveryboy->nice_name }} {{ $deliveryboy->full_name }} {{ $deliveryboy->phone_number ?? '' }} {{ $deliveryboy->email }} {{ $deliveryboy->status == 1 ? trans('app.active') : trans('app.inactive') }}     {!! Form::open(['route' => ['admin.admin.deliveryboy.trash', $deliveryboy->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!}

{!! Form::open(['route' => ['admin.admin.deliveryboy.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.avatar') }} {{ trans('app.full_name') }} {{ trans('app.email') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ trans('app.avatar') }} {{ $trash->nice_name }} {{ $trash->email }} {{ $trash->deleted_at->diffForHumans() }}   {!! Form::open(['route' => ['admin.admin.deliveryboy.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!}
@endsection