Bussiness Owner Drivers
{{-- --}} @foreach ($drivers as $driver) --}} {{-- --}} @else {{-- --}} {{-- --}} @endif {{ csrf_field() }} {{ method_field('POST') }} {{-- @else @endif {{ csrf_field() }} {{ method_field('POST') }} --}} @endforeach
S.No Name License number ID Number Contact Rating StatusActionView
{{ $loop->iteration }} {{ $driver->user->first_name }} {{ $driver->license }} {{ $driver->id_number }} {{ $driver->user->mobile }} @if(\App\Trip::where('driver_id', $driver->user_id)->count() > 0) {{ round(\App\Trip::where('driver_id', $driver->user_id)->sum('driver_rating')/\App\Trip::where('driver_id', $driver->user_id)->count(), 1) }} stars @else No Rating @endif @if($driver->user->status) {{-- @if($driver->user->status)