@extends('dashboard.layout.layout') @section('content')
{!! Form::textarea("", $driver->is_ban ? $driver->ban_reason : null, ['class' => 'form-control','readonly']) !!}
{!! $orders->links() !!}
@foreach ($orders as $order) @endforeach
# {!! trans('dashboard.order.order_number') !!} {!! trans('dashboard.client.client') !!} {!! trans('dashboard.branch.branch') !!} {!! trans('dashboard.order.order_status') !!} {!! trans('dashboard.general.added_date') !!}
{{ $loop->iteration }} {{ $order->id }} {{ optional($order->client)->fullname }} {{ @$order->branch->name }} {!! trans('dashboard.order.statuses.'.$order->order_status) !!}
{{ $order->created_at->format("Y-m-d") }}
{!! $orders->links() !!}

{!! trans('dashboard.user.rating') !!}

{{ $driver->user_rate_percentage ? $driver->user_rate_percentage.'%' : '0%' }}

{{ $driver->ratedByOthers->count() }} {{ $driver->ratedByOthers->count() > 1 ? trans('dashboard.user.users_make_rate') : trans('dashboard.user.user_make_rate') }}
{!! trans('dashboard.driver.other_drivers') !!}
@forelse ($other_drivers as $other_driver)
{{ $other_driver->fullname }}
{{ $other_driver->fullname }}
{{ $other_driver->phone }}
@empty
{!! trans('dashboard.driver.no_drivers') !!}
@endforelse
@include('dashboard.layout.notify_modal') @endsection @section('vendor_styles') @endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') @endsection