@csrf @method('POST')
@lang('reports.pending'): {{ $requests['total_pending'] ?? 0 }} @lang('reports.accepted'): {{ $requests['total_accepted'] ?? 0 }} @lang('reports.rejected'): {{ $requests['total_rejected'] ?? 0 }}
@lang('reports.merge'): {{ $requests['total_merge'] ?? 0 }} @lang('reports.split'): {{ $requests['total_split'] ?? 0 }} @lang('reports.print'): {{ $requests['total_reprint'] ?? 0 }}
@lang('reports.reset')
@lang('sidebar.report_waiter_requests')
@if (session('message'))
{{ session('message') }}
@endif {{-- --}} @foreach ($requests['orders'] as $order) {{-- --}} {{-- @empty --}} @endforeach
@lang('order.ID') @lang('report.OrderNumber') @lang('order.date') @lang('order.type') @lang('order.branch') @lang('reports.waiter') @lang('order.total_price')@lang('order.request_types') @lang('order.request_statuses') @lang('order.request_dates')@lang('order.actions')
{{ $order['id'] }} {{ $order['order_number'] }} {{ $order['order_date'] ? \Carbon\Carbon::parse($order['order_date'])->format('Y-m-d H:i') : '' }} {{ $order['order_type'] }} {{ $order['branch_name'] ?? '-----' }} {{ $order['waiter_name'] ?? '-----' }} {{ number_format($order['total_amount'], 2) }} @if (!empty($order['requests']))
@foreach ($order['requests'] as $request) {{ $request['type_name'] }} @endforeach
@else ----- @endif
@if (!empty($order['requests']))
@foreach ($order['requests'] as $request) @php $statusClass = [ 'Pending' => 'bg-warning-transparent', 'Approved' => 'bg-success-transparent', 'Rejected' => 'bg-danger-transparent', ][$request['status_name']] ?? 'bg-light-transparent'; @endphp {{ $request['status_name'] }} @endforeach
@else ----- @endif
@if (!empty($order['requests'])) @foreach ($order['requests'] as $request)
{{ \Carbon\Carbon::parse($request['created_at'])->format('Y-m-d H:i') }}
@endforeach @else ----- @endif
@if (auth('admin')->user()->can('detail report_booking_cancellation')) @lang('order.show') @endif @if (!empty($order['requests'])) @endif
@lang('order.no_requests_found')