Skip FZE LLC

TRN: {{ App\Http\Services\SettingCachService::get_value('general_company_trn') ?? '-------' }}

{{--

Invoice #{{ $order->order_num }}

--}}

Date : {{ date('Y-m-d h:i a') }} | Type: {{ App\Enums\OrderTypeEnum::get_translate($order->order_type) }} | Payment Method: {{ $order->is_wallet ? 'Wallet' : 'Payment Gateway' }}

Client name : {{ $order->client->name }} | Client email : {{ $order->client->email }}

Restuarant: {{ $order->restaurant?->restaurant_info?->name }}

Invoice #{{ $order->order_num }}

Products

@if($order->is_just_reservation)

This is a reservation order without specifying meals.

@else @foreach ($order->items as $item) @endforeach
Product Price Qty Total
{{ $item->product->name }} @if ($item->combination)
    @foreach ($item->combination as $combination) @php $attribute = \App\Models\Attribute::find($combination['attr_id']); $value = \App\Models\AttributeValue::find($combination['value']); @endphp @if ($attribute)
  • {{ $attribute->name }} : {{ $value?->name ?? '' }}
  • @endif @endforeach
@endif @if ($item->add_ons)
    @foreach ($item->add_ons as $add_on)
  • {{ $add_on->add_on->name }} ({{ $add_on->price }} AED)
  • @endforeach
@endif
{{ $item->price }} {{ $item->qty }} {{ $item->total }}
@endif @if($order->order_type == 'delivery')

Shipping Data

City {{ $order->delivery_order?->city?->name ?? '-----' }}
Region {{ $order->delivery_order?->region?->name ?? '-----' }}
Location {{ $order->delivery_order?->address ?? '-----' }}
Mobile {{ $order->delivery_order?->address_number ?? '-----' }}
@elseif($order->order_type == 'pickup')

Car Data

Car Number {{ $order->delivery_order?->car_number ?? '-----' }}
@else

Reservation Data

Table {{ $order->reservation_order?->table?->name ?? '-----' }}
Customer Name {{ $order->reservation_order?->customer_name ?? '-----' }}
Mobile {{ $order->reservation_order?->mobile ?? '-----' }}
Date {{ $order->reservation_order?->day ?? '-----' }}
From {{ $order->reservation_order?->from ? date('H:i a', strtotime($order->reservation_order->from)) : '-----' }}
To {{ $order->reservation_order?->to ? date('H:i a', strtotime($order->reservation_order->to)) : '-----' }}
@endif

Order Summary

@if($order->order_type == 'delivery') @endif @if ($order->discount_value > 0) @endif
Subtotal {{ $order->sub_total }}
Shipping {{ $order->shipping_value }}
VAT {{ $order->vat_value }}
Discount {{ $order->discount_value }}
Total {{ $order->total }}