{{ __('messages.total_debit') }}
@if (request('outsource_vehicle_amount')) {{ $bookings->sum('outsource_purchase') }} @else {{ $bookings->sum('debit') }} @endif
{{ __('messages.total_credit') }}
@if (request('total_profit')) {{ $payments->sum('amount') - $expense->sum('expense') }} @elseif (request('outsource_profit') || request('driver')) {{ $bookings->sum('debit') - $bookings->sum('outsource_purchase') }} @else {{ $payments->sum('amount') }} @endif
{{ __('messages.total_expense') }}
{{ $expense->sum('expense') }}
{{ __('messages.balance') }}
@if (request()->receivable) {{ $bookings->sum('debit') - $payments->sum('amount') }} @elseif (request()->receivable_finished_payment) {{ $bookings->sum('debit') - $payments->sum('amount') }} @elseif (request()->outsource_pending_payment) {{ $bookings->sum('outsource_purchase') - $payments->sum('outsource_credit') }} @else {{ $bookings->sum('debit') + $expense->sum('expense') - $payments->sum('amount') }} @endif
{{ __('messages.general_ledger') }}
Total Debit:
Total Credit:
# | {{ __('messages.booking_type') }} | {{ __('messages.travel_date') }} | {{ __('messages.partner') }} | {{ __('messages.passenger') }} | {{ __('messages.employee') }} | {{ __('messages.vehicle') }} | {{ __('messages.location') }} | {{ __('messages.debit') }} | {{ __('messages.credit') }} | {{ __('messages.account') }} | {{ __('messages.expense_type') }} | {{ __('messages.expense_description') }} | {{ __('messages.expense') }} | {{ __('messages.created_at') }} | {{ __('messages.status') }} | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $key + 1 }} | {{ $booking->on_road ? __('messages.on_road') : ($booking->outsource ? __('messages.outsource') : __('messages.regular')) }} | {{ $booking->travel_date }} | {{ $booking->partner ? $booking->partner->company : __('messages.no_partner_selected') }} | {{ $booking->passenger_name ?? __('messages.na') }} | {{ $booking->employee ? $booking->employee->fname . ' ' . $booking->employee->lname : __('messages.no_driver_selected') }} | {{ $booking->vehicle ? $booking->vehicle->name : __('messages.no_vehicle_selected') }} | {{ $booking->pickup_location . ' - ' . $booking->dropoff_location }} | {{ $booking->debit }} | @if ($booking->on_road){{ $booking->onRoadPayment ? $booking->onRoadPayment->amount : __('messages.no_payment_added_yet') }} {{ __('messages.on_road_credit') }} | @elseif ($booking->outsource){{ $booking->outsource_purchase }} {{ __('messages.outsource_purchase') }} | @else{{ __('-') }} | @endif @if ($booking->on_road){{ $booking->onRoadPayment ? $booking->onRoadPayment->account->title . '-' . $booking->onRoadPayment->account->type : __('messages.no_payment_added_yet') }} | @elseif ($booking->outsource){{ __('messages.outsource_account') }} | @else{{ __('-') }} | @endif{{ __('-') }} | {{ __('-') }} | {{ __('-') }} | {{ $booking->created_at->format('d-m-Y') }} |
{{ strtoupper($booking->status) }}
|
{{ __('messages.no_data_available') }} | |||||||||||||||||||
{{ $key + 1 }} | {{ __('messages.expense') }} | {{ $exp->created_at->format('d-m-Y') }} | {{ $exp->partner ? $exp->partner->company : __('messages.no_partner_selected') }} | {{ __('-') }} | {{ $exp->employee ? $exp->employee->fname . ' ' . $exp->employee->lname . ' - ' . $exp->employee->type : '-' }} | {{ $exp->vehicle ? $exp->vehicle->name . $exp->vehicle->type : '-' }} | {{ __('-') }} | {{ __('-') }} | {{ __('-') }} | {{ $exp->account->title . '-' . $exp->account->type }} | {{ $exp->expenseType->type }} | {{ $exp->description }} | {{ $exp->expense }} | {{ $exp->created_at->format('d-m-Y') }} |
{{ strtoupper($exp->status) }}
|