@lang('order.orders_count'): 0
@lang('order.total_price_befor_tax')
0
@lang('order.total_price_after_tax')
0
@lang('order.total_cash_paid')
0
@lang('order.total_credit_paid')
0
@lang('order.total_service_fees')
0
@lang('order.total_coupon_value')
0
@lang('order.orders')
@if (session('message'))
{{ session('message') }}
@endif @php $hasCancelledOrders = $orders->contains('last_status', 'cancelled'); @endphp
@foreach ($orders as $order) @php $subtotal = $order->total_price_befor_tax; if (isset($order->tax_application) && $order->tax_application == 1) { $subtotal += $order->tax_value; } if ($order->status === 'cancelled') { $order_items_count = $order->orderDetails->sum('quantity'); } else { $order_items_count = $order->orderDetailsWithoutCancel->sum( 'quantity', ); } @endphp @if ($order->Table) @else @endif @endforeach
@lang('order.ID') @lang('order.invoice_num') @lang('order.order_number') @lang('order.date') @lang('order.time') @lang('order.type') @lang('order.table_number') @lang('order.client_name') @lang('order.client_phone') @lang('order.subtotal_price') @lang('order.tax_value') @lang('order.total_price') @lang('order.order_items_count') @lang('order.coupon_value') @lang('order.status') @lang('order.status_paid') @lang('order.payment_method') @lang('order.actions')
{{ $order->id }} {{ $order->invoice_number }} {{ $order->order_number }} {{ $order->date }} {{ $order->created_at->format('H:i') }} @lang('order.' . strtolower($order->type)) {{ $order->Table->table_number }}----- @if ($order->Client && $order->Client->flag != 'unknown') {{ $order->Client->name }} @elseif ($order->address) {{ $order->address->address_name }} @else {{ $order->client_name ?? '-----' }} @endif @if ($order->Client && $order->Client->flag != 'unknown') {{ $order->Client->phone }} @elseif ($order->address) {{ $order->address->address_phone }} @else {{ $order->client_phone ?? '-----' }} @endif {{ isset($subtotal) ? number_format($subtotal, 2) : '-----' }} {{ $order->branch->country->currency_symbol ?? '' }} {{ isset($order->tax_value) ? number_format($order->tax_value, 2) : '-----' }} {{ $order->branch->country->currency_symbol ?? '' }} {{ isset($order->total_price_after_tax) ? number_format($order->total_price_after_tax, 2) : '-----' }} {{ $order->branch->country->currency_symbol ?? '' }} {{ $order_items_count ?? '-----' }} {{ isset($order->coupon_value) && $order->coupon_value != 0 ? number_format($order->coupon_value, 2) : '-----' }} {{ $order->branch->country->currency_symbol ?? '' }} @lang('order.' . strtolower($order->last_status)) @if ($order->transaction) @lang('order.' . strtolower($order['transaction']['payment_status'])) @else ----- @endif @if ($order->transaction) @lang('order.' . strtolower($order['transaction']['payment_method'])) @else ----- @endif @if (auth('admin')->user()->hasPermissionTo('detail report_orders', 'admin')) @lang('order.show') @endif