@extends('layouts.adminapp') @section('content') @section('head', __('lng.Trip'))
{{ __('lng.TripCompleteReportTable') }}
Chase No: {{$chasisnumber??''}}
OTP To {{$name??''}}: {{$phone??''}}

{{$vehiclenumber??''}}

{{-- --}} {{-- --}} @php $si = 0; $total_estimate = 0; $total_fuel = 0; $total_other_expence = 0; $total_expence = 0; $total_balance = 0; $total_driver_amount = 0; $total_cleaner_amount = 0; $total_advance = 0; @endphp @foreach ($Trips as $Trip) {{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $total_estimate += $Trip->trip_estimate; $total_fuel += $Trip->total_Fuel_amount; $total_other_expence += $Trip->other_amounts; $total_expence += $Trip->total_expense; $total_balance += $balance; $total_driver_amount += $Trip->driver_amount; $total_cleaner_amount += $Trip->cleaner_amount; $total_advance += $Trip->advance; @endphp @endforeach
{{ __('lng.SiNo') }} {{ __('lng.Date') }} {{ __('lng.Destination') }} {{ __('lng.Driver') }} {{ __('lng.Customer') }} {{ __('lng.Estimate') }} {{ __('lng.Advance') }} {{ __('lng.Fuel') }} {{ __('lng.Expence') }} {{ __('lng.TotalExpence') }} {{ $commission ?? '' }}% {{__('lng.Batha')}} {{ __('lng.CleanerAmount') }} {{ __('lng.Balance') }}{{__('lng.Remarks')}}{{__('lng.Status')}}
{{ ++$si }} {{ $Trip->from }} {{ $Trip->destination }} {{ $Trip->employee_name }} {{ $Trip->accountledger_title }} {{ $Trip->trip_estimate !== null ? number_format($Trip->trip_estimate, 2) : '' }} {{ $Trip->advance !== null ? number_format($Trip->advance, 2) : '' }} {{ $Trip->total_Fuel_amount !== null ? number_format($Trip->total_Fuel_amount, 2) : '' }} {{ $Trip->other_amounts !== null ? number_format($Trip->other_amounts, 2) : '' }} {{ $Trip->total_expense }} {{ $Trip->driver_amount !== null ? number_format($Trip->driver_amount, 2) : '' }} {{ $Trip->cleaner_amount !== null ? number_format($Trip->cleaner_amount, 2) : '' }} {{ $balance = $Trip->trip_estimate - ($Trip->advance + $Trip->driver_amount + $Trip->total_Fuel_amount + $Trip->other_amounts + $Trip->discount + $Trip->cleaner_amount) }} {{ $Trip->amount <= 0 ? 'Clear' : 'Pending' }} {{$Trip->source}}{{ $Trip->trip_estimate !== null ? number_format($Trip->trip_estimate, 2) : '' }}{{$Trip->status}}
Total {{ $total_estimate }} {{ $total_advance }} {{ $total_fuel }} {{ $total_other_expence }} {{ $total_expence }} {{ $total_driver_amount }} {{ $total_cleaner_amount }} {{ $total_balance }}

{{ $Trips->count() }} {{ __('lng.Items') }}


@endsection