@extends('layouts.admin.app') @section('title',translate('Delivery Man Preview')) @push('css_or_js') @endpush @section('content')

{{translate('messages.deliveryman')}} {{translate('messages.details')}}

{{$dm->orders->count()}}

{{translate('messages.total')}} {{translate('messages.delivered')}} {{translate('messages.orders')}}
img

{{\App\CentralLogics\Helpers::format_currency($dm->wallet?$dm->wallet->collected_cash:0.0)}}

{{translate('messages.cash_in_hand')}}
transactions

{{\App\CentralLogics\Helpers::format_currency($dm->wallet?$dm->wallet->total_earning:0.00)}}

{{translate('messages.total_earning')}}
transactions
{{$dm['f_name'].' '.$dm['l_name']}} (@if($dm->zone) {{$dm->zone->name}} @else {{translate('messages.zone').' '.translate('messages.deleted')}} @endif ) @if($dm->application_status=='approved') @if($dm['status']) @if($dm['active']) @else @endif @else {{translate('messages.suspended')}} @endif @else @endif
@if($dm->application_status=='approved') @endif

{{ translate('Vehicle Information') }}

@if (isset($dm->vehicle))
{{ translate('Vehicle_Type') }} : {{ $dm->vehicle->type}}
{{ translate('Vehicle_Extra_Charges') }} : {{ $dm->vehicle->extra_charges}}
{{ translate('Vehicle_minimum_coverage_area') }} : {{ $dm->vehicle->starting_coverage_area}}
{{ translate('Vehicle_maximum_coverage_area') }} : {{ $dm->vehicle->maximum_coverage_area}}
@else
{{ translate('No_vehicle_data_found') }}
@endif
Image Description

{{count($dm->rating)>0?number_format($dm->rating[0]->average, 1):0}}/5

@if (count($dm->rating)>0) @if ($dm->rating[0]->average == 5)
@elseif ($dm->rating[0]->average < 5 && $dm->rating[0]->average > 4.5)
@elseif ($dm->rating[0]->average < 4.5 && $dm->rating[0]->average > 4)
@elseif ($dm->rating[0]->average < 4 && $dm->rating[0]->average > 3)
@elseif ($dm->rating[0]->average < 3 && $dm->rating[0]->average > 2)
@elseif ($dm->rating[0]->average < 2 && $dm->rating[0]->average > 1)
@elseif ($dm->rating[0]->average < 1 && $dm->rating[0]->average > 0)
@elseif ($dm->rating[0]->average == 1)
@elseif ($dm->rating[0]->average == 0)
@endif @endif
{{-- {{$dm->rating->count()}} {{translate('messages.rating')}} --}} {{$dm->reviews->count()}} {{translate('messages.reviews')}}
    @php($total=$dm->reviews->count())
  • @php($five=\App\CentralLogics\Helpers::dm_rating_count($dm['id'],5)) {{ translate('messages.excellent') }}
    {{$five}}
  • @php($four=\App\CentralLogics\Helpers::dm_rating_count($dm['id'],4)) {{ translate('messages.good') }}
    {{$four}}
  • @php($three=\App\CentralLogics\Helpers::dm_rating_count($dm['id'],3)) {{ translate('messages.average') }}
    {{$three}}
  • @php($two=\App\CentralLogics\Helpers::dm_rating_count($dm['id'],2)) {{ translate('messages.below_average') }}
    {{$two}}
  • @php($one=\App\CentralLogics\Helpers::dm_rating_count($dm['id'],1)) {{ translate('messages.poor') }}
    {{$one}}
{{ translate('Identity_Information') }}
{{ translate('identity_type') }} : {{ translate($dm->identity_type) }}
{{ translate('identity_number') }} : {{ $dm->identity_number }}
@foreach (json_decode($dm->identity_image) as $key => $img) @endforeach
@foreach($reviews as $review) {{-- {{ dd($review) }} --}} {{----}} @endforeach
{{translate('messages.reviewer')}} {{ translate('messages.Order ID') }} {{translate('messages.review')}} {{translate('messages.date')}}
@if($review->customer)
Image Description
{{$review->customer['f_name']." ".$review->customer['l_name']}} {{$review->customer->email}}
@else {{translate('messages.customer_not_found')}} @endif
{{$review->order_id}}

{{$review['comment']}}

@foreach(json_decode($review['attachment'],true) as $attachment) @endforeach {{date('d M Y',strtotime($review->created_at))}}
@if(count($reviews) === 0)
public
{{translate('no_data_found')}}
@endif
{{--
1-15 of 380
--}}
{!! $reviews->links() !!}
@endsection @push('script_2') @endpush