{{ __('general.all_booking') .' ('. $orders->total() .')'}}

@if( !$orders->isEmpty() ) @foreach($orders as $order) @php $options = $order?->options ?? []; $subject = $options['subject'] ?? ''; $image = $options['image'] ?? ''; $subjectGroup = $options['subject_group']; $tutor_payout = $order?->price - getCommission($order?->price); @endphp @endforeach
{{ __('booking.id') }} {{ __('booking.transaction_id') }} {{ __('booking.subject') }} {{ __('booking.student_name') }} {{ __('booking.tutor_name') }} {{ __('booking.amount') }} {{ __('booking.tutor_payout') }} {{ __('booking.status') }}
{{ $order?->order_id }} {{$order?->orders?->transaction_id }}
@if (!empty($image) && Storage::disk(getStorageDisk())->exists($image)) {{$image}} @else {{ $image }} @endif {{ $subject }}
{{ $subjectGroup }}
@if (!empty($order?->orderable?->student?->image) && Storage::disk(getStorageDisk())->exists($order?->orderable?->student?->image)) {{$order?->orderable?->student?->image}} @else {{ $order?->orderable?->student?->image }} @endif {{ $order?->orderable?->student?->first_name . ' ' . $order->orderable?->student?->last_name }}
@if (!empty($order?->orderable?->tutor?->image) && Storage::disk(getStorageDisk())->exists($order?->orderable?->tutor?->image)) {{$order?->orderable?->tutor?->image}} @else {{ $order?->orderable?->tutor?->image }} @endif {{ $order?->orderable?->tutor?->first_name }}
{!! formatAmount($order?->price) !!} {!! formatAmount($tutor_payout) !!} {{ $order?->orders?->status}}
{{ $orders->links('pagination.custom') }} @else @endif