@if (auth('admin')->user()->hasPermissionTo('print purchase_invoices', 'admin')) @endif
{{ trans('order.order') }} : {{ $order->order_number }}

{{ trans('order.Billing To') }}:

{{ $order->client ? $order->client->name : 'unknown' }}

{{ $order->client->phone }}

{{ $order->client->email }}

{{ $order->address ? $order->address->city . ' - ' . $order->address->address : 'unknown' }}

{!! QrCode::size(100)->generate(route('order.change.status', $order->id)) !!}

{{ trans('order.Invoice ID') }} :

{{ $order->invoice_number }}

{{ trans('order.Date') }} :

{{ \Carbon\Carbon::parse($order->date)->format('d, M Y') }} - {{ \Carbon\Carbon::parse($order->time)->format('h:i A') }}

{{ trans('order.Due Amount') }} :

{{ $order->branch->country->currency_symbol }} {{ $order->total_price_after_tax }}

@php $temp_offer = 0; @endphp @foreach ($order['details'] as $detail) @if ($detail->offer_id && $detail->offer_id != $temp_offer) {{-- Display Offer Header --}} @php $temp_offer = $detail->offer_id; @endphp {{-- Offer row colored --}} @if ($detail->offer->discount_type == 'fixed') @else @endif @if ($detail->offer->discount_type == 'fixed') @else @endif {{-- Display Offer Details --}} @foreach ($detail->offer->details as $offer_detail) {{-- Offer details row colored --}} @endforeach @elseif (!$detail->offer_id) {{-- Display Individual Dish Details --}} {{-- Default styling for individual dishes --}} @endif @endforeach @foreach ($order['addons'] as $addon) @endforeach
{{ trans('order.Item') }} {{ trans('order.Qty') }} {{ trans('order.Price') }} {{ trans('order.Total') }}
عرض {{ $detail->offer->name_ar }} {{ $order->branch->country->currency_symbol }}{{ $detail->offer->discount_value }} {{ $order->branch->country->currency_symbol }}{{ $detail->total }} {{ $order->branch->country->currency_symbol }}{{ $detail->offer->discount_value }} {{ $order->branch->country->currency_symbol }}{{ $detail->price_after_tax }}
{{ $offer_detail->dish->name_ar }} {{ $offer_detail->count }} {{ $detail->offer->discount_type == 'fixed' ? '$0' : $detail->total }} {{ $order->branch->country->currency_symbol }} {{ $detail->price_after_tax }}
{{ $detail->dish->name_ar . ' | ' . $detail->dish->name_en }} {{ $detail->quantity }} {{ $order->branch->country->currency_symbol }}{{ $detail->total }} {{ $order->branch->country->currency_symbol }}{{ $detail->price_befor_tax }}
{{ $addon->Addon->addons->name_ar . ' | ' . $addon->Addon->addons->name_en }} {{ $addon->quantity }} {{ $order->branch->country->currency_symbol }}{{ $addon->price_before_tax }} {{ $order->branch->country->currency_symbol }} {{ $addon->price_after_tax }}
{{ trans('order.Total Before Tax') }}: {{ $order->branch->country->currency_symbol }} {{ $order->total_price_befor_tax }}
{{ trans('order.Tax') }} ({{ getBranchSettings($order->branch_id, 'tax_percentage') }}%): {{ $order->branch->country->currency_symbol }} {{ $order->tax_value }}
{{ trans('order.Service') }}: {{ $order->branch->country->currency_symbol }}{{ $order->service_fees }}
{{ trans('order.Total After Tax') }}: {{ $order->branch->country->currency_symbol }} {{ $order->total_price_after_tax }}
@endsection @section('scripts') @endsection