@foreach ($cashierMachines as $machine) {{ $machine->name_ar }} / {{ $machine->name_en }} @endforeach
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif
@csrf
@csrf
@csrf
@csrf
@if (auth('admin')->user()->hasPermissionTo('view officer_assign_setting', 'admin')) @lang('einvoice.addbalancesettings') @endif
@if (session('message'))
{{ session('message') }}
@endif {{-- @if ($errors->any()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif --}} @if ($cashierMachineId) @php $selectedMachine = $cashierMachines->where('id', $cashierMachineId)->first(); @endphp
@lang('einvoice.showing_orders_for'): {{ $selectedMachine->name_ar }} / {{ $selectedMachine->name_en }}
@else
@lang('einvoice.showing_all_orders')
@endif @if (isset($filteredOrders)) @foreach ($filteredOrders as $item) @endforeach @else @foreach ($einvoices as $item) @endforeach @endif
@lang('einvoice.invoice_number') @lang('einvoice.total_after_tax') @lang('einvoice.order_number') @lang('einvoice.payment_method') @lang('einvoice.date') @lang('einvoice.time')
{{ $item->invoice->orders->invoice_num }} {{ $item->invoice->orders->total_after_tax }} {{ optional($item->invoice->orders)->order_number ?? 'N/A' }} @php $method = optional($item->invoice->orders->transaction)->payment_method; $methods = [ 'cash' => [ '💵', __('einvoice.payment_methods.cash'), 'text-success', ], 'credit' => [ '💳', __('einvoice.payment_methods.credit'), 'text-primary', ], 'online' => [ '🌐', __('einvoice.payment_methods.online'), 'text-info', ], 'credit_with_delivery' => [ '🚚💳', __('einvoice.payment_methods.credit_with_delivery'), 'text-warning', ], ]; $icon = $methods[$method][0] ?? '❓'; $label = $methods[$method][1] ?? __('einvoice.payment_methods.unknown'); $class = $methods[$method][2] ?? 'text-muted'; @endphp {{ $icon }} {{ $label }} {{ $item->invoice->date }} {{ $item->invoice->time }}
{{ $item->invoice->invoice_num }} {{ $item->invoice->total_after_tax }} {{ optional($item->invoice->orders)->order_number ?? 'N/A' }} @php $method = optional($item->invoice->orders->transaction)->payment_method; $methods = [ 'cash' => [ '💵', __('einvoice.payment_methods.cash'), 'text-success', ], 'credit' => [ '💳', __('einvoice.payment_methods.credit'), 'text-primary', ], 'online' => [ '🌐', __('einvoice.payment_methods.online'), 'text-info', ], 'credit_with_delivery' => [ '🚚💳', __('einvoice.payment_methods.credit_with_delivery'), 'text-warning', ], ]; $icon = $methods[$method][0] ?? '❓'; $label = $methods[$method][1] ?? __('einvoice.payment_methods.unknown'); $class = $methods[$method][2] ?? 'text-muted'; @endphp {{ $icon }} {{ $label }} {{ $item->invoice->date }} {{ $item->invoice->time }}