@if ($orders->count() > 0) @foreach ($orders as $key => $order) @endforeach @endif
Appointment Cost and Staff Report
# Appointment Id Customer Name & Phone Service Name Service Cost Total Discount Payment and Mode Status
{{ $key + 1 }} {{ isset($order->order_no) ? $order->order_no : '-' }} {{ isset($order->user->name) ? $order->user->name : '' }}
{{ isset($order->user->mobileCode->dial_code) ? $order->user->mobileCode->dial_code : '' }} {{ isset($order->user->mobile_number) ? $order->user->mobile_number : '' }}
{{ $order->services->count() > 0 ? ucwords($order->services->pluck('name_en')->implode(', ')) : 'NA' }} EGP{{ isset($order->total_amount) ? $order->total_amount : 0 }} EGP{{ isset($order->discount_amount) ? $order->discount_amount : 0 }} {{ isset($order->payment_mode) ? $order->payment_mode : '-' }} {{ ucfirst($order->status) }}