@extends('admin.layouts.app') @section('title', 'Users') @section('content') @php $value=web_map_settings(); @endphp @if($value=="google")

@lang('view_pages.map_views')

@lang('view_pages.trip_location')

@lang('view_pages.pick_location') @lang('view_pages.drop_location')
{{ $item->requestPlace->pick_address }} {{ $item->requestPlace->drop_address }}

@lang('view_pages.request')

@if($item->goodsTypeDetail) @endif @if($item->goodsTypeDetail) @endif
@lang('view_pages.zone') @lang('view_pages.transport_type') @lang('view_pages.vehicle_type') @lang('view_pages.trip_time')@lang('view_pages.goods_type_and_quantity')
{{ $item->zoneType->zone->name }} {{ $item->zoneType->vehicleType->is_taxi }} {{ $item->zoneType->vehicleType->name }} {{ $item->trip_start_time }}{{ $item->goodsTypeDetail->goods_type_name }} - {{$item->goods_type_quantity }}

@lang('view_pages.user_details')

@if($item->userDetail()->exists()) @if(env('APP_FOR')=='demo') @else @endif @if(env('APP_FOR')=='demo') @else @endif @else @if(env('APP_FOR')=='demo') @else @endif @if(env('APP_FOR')=='demo') @else @endif @endif
@lang('view_pages.name') @lang('view_pages.email') @lang('view_pages.mobile') @lang('view_pages.rating')
{{ $item->userDetail->name }}**********{{ $item->userDetail->email }}**********{{ $item->userDetail->mobile }}{{ $item->requestRating()->where('user_rating',1)->pluck('rating')->first() }}{{ $item->adHocuserDetail->name }}**********{{ $item->adHocuserDetail->email }}**********{{ $item->adHocuserDetail->mobile }}{{ $item->requestRating()->where('user_rating',1)->pluck('rating')->first() }}

@lang('view_pages.driver_details')

@if(env('APP_FOR')=='demo') @else @endif @if(env('APP_FOR')=='demo') @else @endif
@lang('view_pages.name') @lang('view_pages.email') @lang('view_pages.mobile') @lang('view_pages.rating')
{{ $item->driverDetail->name }}**********{{ $item->driverDetail->email }}**********{{ $item->driverDetail->mobile }}{{ $item->requestRating()->where('driver_rating',1)->pluck('rating')->first() }}
@if ($item->requestBill)

@lang('view_pages.bill_details')

@if($item->is_bid_ride == false) @php $requestBill = collect($item->requestBill->toArray()); $bill = $requestBill->only(['base_price','distance_price','time_price','waiting_charge','cancellation_fee','service_tax','promo_discount','total_amount','admin_commision','driver_commision']); $bill->all(); $bill = $bill->toArray(); @endphp @foreach ($bill as $key => $value) @endforeach @else @php $requestBill = collect($item->requestBill->toArray()); $bill = $requestBill->only(['service_tax','promo_discount','total_amount','admin_commision','driver_commision']); $bill->all(); $bill = $bill->toArray(); @endphp @foreach ($bill as $key => $value) @endforeach @endif
@lang('view_pages.col_title') @lang('view_pages.description') @lang('view_pages.price')
{{ __('view_pages.'.$key) }} @if ($key == 'distance_price') {{ $item->total_distance .' '. $item->request_unit }} * {{ $item->currency .' '. $item->requestBill->price_per_distance.' / '.$item->request_unit }} @elseif ($key == 'time_price') {{ $item->total_time.' Mins' }} * {{ $item->currency .' '. $item->requestBill->price_per_time.' / Mins' }} @elseif ($key == 'base_price') {{ 'For first ' . $item->requestBill->base_distance .' '. $item->request_unit }} @else - @endif {{ $value }}
{{ __('view_pages.'.$key) }} {{ $value }}
@endif @if(($item->transport_type == 'delivery'))

@lang('view_pages.delivery_proof')

@foreach ($item->requestProofs as $key => $proof) @endforeach
@endif
@elseif($value=="open_street")

@lang('view_pages.map_views')

@lang('view_pages.trip_location')

@lang('view_pages.pick_location') @lang('view_pages.drop_location')
{{ $item->requestPlace->pick_address }} {{ $item->requestPlace->drop_address }}

@lang('view_pages.request')

@if($item->goodsTypeDetail) @endif @if($item->goodsTypeDetail) @endif
@lang('view_pages.zone') @lang('view_pages.transport_type') @lang('view_pages.vehicle_type') @lang('view_pages.trip_time')@lang('view_pages.goods_type_and_quantity')
{{ $item->zoneType->zone->name }} {{ $item->zoneType->vehicleType->is_taxi }} {{ $item->zoneType->vehicleType->name }} {{ $item->trip_start_time }}{{ $item->goodsTypeDetail->goods_type_name }} - {{$item->goods_type_quantity }}

@lang('view_pages.user_details')

@if($item->userDetail()->exists()) @if(env('APP_FOR')=='demo') @else @endif @if(env('APP_FOR')=='demo') @else @endif @else @if(env('APP_FOR')=='demo') @else @endif @if(env('APP_FOR')=='demo') @else @endif @endif
@lang('view_pages.name') @lang('view_pages.email') @lang('view_pages.mobile') @lang('view_pages.rating')
{{ $item->userDetail->name }}**********{{ $item->userDetail->email }}**********{{ $item->userDetail->mobile }}{{ $item->requestRating()->where('user_rating',1)->pluck('rating')->first() }}{{ $item->adHocuserDetail->name }}**********{{ $item->adHocuserDetail->email }}**********{{ $item->adHocuserDetail->mobile }}{{ $item->requestRating()->where('user_rating',1)->pluck('rating')->first() }}

@lang('view_pages.driver_details')

@if(env('APP_FOR')=='demo') @else @endif @if(env('APP_FOR')=='demo') @else @endif
@lang('view_pages.name') @lang('view_pages.email') @lang('view_pages.mobile') @lang('view_pages.rating')
{{ $item->driverDetail->name ?? " "}}**********{{ $item->driverDetail->email }}**********{{ $item->driverDetail->mobile }}{{ $item->requestRating()->where('driver_rating',1)->pluck('rating')->first() }}
@if ($item->requestBill)

@lang('view_pages.bill_details')

@if($item->is_bid_ride == false) @php $requestBill = collect($item->requestBill->toArray()); $bill = $requestBill->only(['base_price','distance_price','time_price','waiting_charge','cancellation_fee','service_tax','promo_discount','total_amount','admin_commision','driver_commision']); $bill->all(); $bill = $bill->toArray(); @endphp @foreach ($bill as $key => $value) @endforeach @else @php $requestBill = collect($item->requestBill->toArray()); $bill = $requestBill->only(['service_tax','promo_discount','total_amount','admin_commision','driver_commision']); $bill->all(); $bill = $bill->toArray(); @endphp @foreach ($bill as $key => $value) @endforeach @endif
@lang('view_pages.col_title') @lang('view_pages.description') @lang('view_pages.price')
{{ __('view_pages.'.$key) }} @if ($key == 'distance_price') {{ $item->total_distance .' '. $item->request_unit }} * {{ $item->currency .' '. $item->requestBill->price_per_distance.' / '.$item->request_unit }} @elseif ($key == 'time_price') {{ $item->total_time.' Mins' }} * {{ $item->currency .' '. $item->requestBill->price_per_time.' / Mins' }} @elseif ($key == 'base_price') {{ 'For first ' . $item->requestBill->base_distance .' '. $item->request_unit }} @else - @endif {{ $value }}
{{ __('view_pages.'.$key) }} {{ $value }}
@endif @if(($item->transport_type == 'delivery'))

@lang('view_pages.delivery_proof')

@foreach ($item->requestProofs as $key => $proof) @endforeach
@endif
@endif @endsection