{{ $order->order_type == 'Order' ? 'INVOICE' : 'QUOTE' }}

Invoice #{{ $invoice_number }}

{{ $order->delivery_type }} $order->payment_status == 'Paid'])>{{ $order->payment_status }} @if ($order->rush_order != null)
{{ $order->rush_order }} @endif

Est. Completion Date:

{{ $order->date_pick_or_ship_by->format('m/d/Y') }}

Event Date:

{{ $order->event_date->format('m/d/Y') }}
{{ config('app.name') }}

Business Information

Payment Method

Email: {{ $site_email }} Phone: {{ $site_phone }} J&M TROPHIES INC. 23372 MADERO RD #A MISSION VIEJO, CA 92691
Payment Mode : {{ $order->payment_mode }} @if ($order->payment_status == 'Paid') Payment Status : Paid @if ($order->payment_type == 'Cash') Type : Cash @elseif($order->payment_type == 'Purchase Order') Type : Purchase Order PO #: {{ $order->purchase_order_number }} PO Copy : Click to view @elseif($order->payment_type == 'Check') Type : Check Check # : {{ $order->cheque_number }} @elseif($order->payment_type == 'Credit Card') Type : Credit Card Last Four : {{ $order->payment?->last_four }} Card Type : {{ $order->payment?->account_type }} @endif @else Payment Status : Unpaid @if ($order->payment_type == 'Purchase Order') PO #: {{ $order->purchase_order_number }} @endif @endif

Billing Details

Delivery

@if ($order->billing_address?->company_name != null) {{ $order->billing_address?->company_name }}, @endif {{ $order->billing_address?->primary_contact_name }}, {{ $order->billing_address?->address_line_1 . ',' }} @if ($order->billing_address?->address_line_2 != null) {{ $order->billing_address?->address_line_2 . ',' }} @endif {{ $order->billing_address?->city . ', ' . $order->billing_address?->state?->name . ', ' . $order->billing_address?->zipcode }}, {{ $order->billing_address?->primary_contact_email }}
@if ($order->delivery_type == 'Shipping') Type : {{ $order->delivery_type }} {{ $order->shipping_address?->primary_contact_name . ', ' . $order->shipping_address?->phone_number }} {{ $order->shipping_address?->primary_contact_email }} {{ $order->shipping_address?->address_line_1 . ',' }} @if ($order->shipping_address?->address_line_2 != null) {{ $order->shipping_address?->address_line_2 . ',' }} @endif {{ $order->shipping_address?->city . ', ' . $order->shipping_address?->state?->name . ', ' . $order->shipping_address?->zipcode }} @if ($order->tracking_number) Tracking # : {{ $order->tracking_number }} @else {{ 'Tracking # : ' . ($order->tracking_number ?? 'N/A') }} @endif @elseif($order->delivery_type == 'Pickup') Type : {{ $order->delivery_type }} Location : {{ $order->pickLocation?->address }} @endif

Order Description

{{ $order->description ?? 'N/A' }}
@foreach ($orderDetails as $orderDetail) @endforeach

Item

Personalization

Price

Qty.

Eng. Fee

Total Price

{{ $orderDetail->product_name }} {{ $orderDetail->productPrice->supplier_prod_number ?? 'N/A' }}
{{ $orderDetail->notes ?? 'N/A' }}
${{ $orderDetail->price }}
{{ $orderDetail->quantity }}
${{ $orderDetail->engraving_fee_total ?? 0 }}
${{ $orderDetail->total_price_after_engraving }}
@if ($order->payment_mode == 'Partial')
@php $partial_total = 0; @endphp @foreach ($order->partialPayments as $partialPayment) @php $partial_total += $partialPayment->amount; @endphp @endforeach

Payment Type

Details

Date

Amount

{{ $partialPayment->payment_type }}
@if ($partialPayment->payment_type == 'Purchase Order') PO #: {{ $partialPayment->purchase_order_number }} @elseif($partialPayment->payment_type == 'Check') {{ $partialPayment->cheque_number }} @elseif($partialPayment->payment_type == 'Credit Card') {{ $partialPayment->payment?->last_four }} @else N/A @endif
{{ $partialPayment->created_at->format('m-d-Y') }}
${{ number_format($partialPayment->amount, 2) }}
Total
${{ number_format($partial_total, 2) }}
@endif @php $grand_total = $order->items_total + $order->rush_order_amount + $order->shipping_charges; @endphp
$order->waive_off_sales_tax == 1])>

Sub Total

${{ number_format($order->items_total, 2) }}

Rush Order Fee

{{ ($order->rush_order_fee ?? 0) . '%' }}

Order Discount

${{ number_format($order->discount_total ?? 0, 2) }}

Total After Discount

${{ number_format($order->items_total - $order->discount_total, 2) }}

{{ "Sales Tax ({$order->state_sales_tax}%)" }}

${{ number_format($order->sales_tax_amount, 2) }}

Shipping Fee

${{ number_format($order->shipping_charges ?? 0, 2) }}

Grand Total

${{ number_format($grand_total - $order->discount_total + ($order->waive_off_sales_tax == 1 ? 0 : $order->sales_tax_amount), 2) }}

Less Total Payment

${{ number_format($order->paid_order_amount, 2) }}

Remaining Amount

${{ number_format($order->remaining_order_amount, 2) }}