@extends('layouts.admin') @section('content')
Download
Order No. # {{ $order->orderNumber }}
@switch($order->status) @case('P') Pending @break @case('S') Complete @break @case('F') Cancelled @break @default @endswitch
Date: {{ date('M. d, Y', strtotime($order->created_at)) }}
Customer Details
{{ $customer->firstName }} {{ $customer->lastName }}
{{ $customer->address->houseNumber }} {{ $customer->address->address }}
{{ $customer->phone }}
Delivery Information
{{ $customer->firstName }} {{ $customer->lastName }}
Address Type: {{ $order->address_type }}
@if ($order->buzzer_code != '') Buzzer Code: {{ $order->buzzer_code }}
@endif {{ $customer->address->houseNumber }} {{ $customer->address->address }}
Delivery Instructions
@if ($order->delivery_instruction) {{ $order->delivery_instruction->title }} @else - @endif
Other Notes
@if ($order->delivery_instructions != "") {{ $order->delivery_instructions }} @else - @endif
# Item Qty Unit Price Tax Coupon Discount Total
1 {{ $order->package->title }} 1 ${{ number_format($order->price, 2) }} ${{ number_format($invoice->tax_amount, 2) }} {{ $order->coupon ? $order->coupon->title : '' }} ${{ number_format($order->discount_amount, 2) }} ${{ number_format($invoice->total_amount, 2) }}
Sub Total ${{ number_format($invoice->sub_total, 2) }}
Total ${{ number_format($invoice->total_amount, 2) }}
Package Details
Type Schedule Tiffins Delivery Date Expiry Date
{{ $order->package->pkgType->title }} {{ Str::ucfirst($order->package->from_day) }} - {{ Str::ucfirst($order->package->to_day) }} {{ $order->total_tiffins }} {{ $order->delivery_date }} {{ $order->expired_date }}
Particular Details
@isset($order->package->package_items) @foreach ($order->package->package_items as $item) @endforeach @endisset
# Item Qty
{{ $loop->iteration }} {{ $item->item->title }} {{ $item->quantity }}
@endsection