@extends('pdf.layouts.order-interior') @section('title','Invoice') @section('content') {{-- HEADER --}}
Cusella
Veenalukkal Parappur, po, Kottakkal, Kerala 676503
Contact: 094955 92491
INVOICE
{{-- CLIENT INFO --}} @if($order->shippingAddress) @endif
Name: {{ $order->user->name ?? '-' }} Date: {{ now()->format('d-M-Y') }}
Contact: {{ $order->user->phone ?? '-' }} Invoice No: {{ $order->order_number }}
Billing Address: {{ $order->billingFullAddress ?? '-' }}
Shipping Address: {{ $order->shippingFullAddress ?? '-' }}
{{-- ITEM TABLE --}} @foreach($order->items as $item) @endforeach
No Item Unit Qty Price Amount
{{ $loop->iteration }} {{ $item->product_name }} Nos {{ $item->quantity }} {{ number_format($item->price, 2) }} {{ number_format($item->total, 2) }}
{{-- TOTALS --}}
Subtotal: ₹ {{ number_format($order->sub_total,2) }}
Delivery Fee: ₹ {{ number_format($order->delivery_fee,2) }}
Discount: ₹ {{ number_format($order->discount,2) }}
Grand Total: ₹ {{ number_format($order->total_amount,2) }}
Authorized Signature
@endsection