@extends('pdf.layouts.order-interior') @section('title','Invoice') @section('content') @php $isQuotationOrder = !empty($order->quotation_id); @endphp
| 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->shippingAddress->name }} , {{ $order->shippingAddress->address_line1 }}, {{ $order->shippingAddress->city }}, {{ $order->shippingAddress->state }}, {{ $order->shippingAddress->phone }} | |
| Courier: {{ $order->courier->name }}, Tracking ID : {{ $order->tracking_id }}, @if($order->courier->website) Track Shipment @endif | |
| No | Item | @if(!$isQuotationOrder)Unit | Qty | Price | @endifAmount | ||
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
|
@if(!$isQuotationOrder)
Nos | {{ $item->quantity }} | ₹ {{ number_format($item->price,2) }} | @endif@if(!$isQuotationOrder) ₹ {{ number_format($item->total ?? $item->price,2) }} @else ₹ {{ number_format($item->calculated_total ?? ($item->price * $item->quantity),2) }} @endif |
| Subtotal : | ₹ {{ number_format($order->sub_total,2) }} |
| Tax : | ₹ {{ number_format($order->tax,2) }} |
| Delivery Fee : | ₹ {{ number_format($order->delivery_fee,2) }} |
| Discount : | ₹ {{ number_format($order->discount,2) }} |
| Grand Total : | ₹ {{ number_format($order->total_amount,2) }} |
| Payment Status : |
@if($paidAmount > 0 && $paidAmount < $order->total_amount)
Partial Paid (₹ {{ number_format($paidAmount,2) }}) Remaining: ₹ {{ number_format($remainingAmount,2) }} @elseif($paidAmount >= $order->total_amount) Paid in Full @else Pending @endif |
| Payment Status : | {{ ucfirst($order->payment_status) }} |
| Payment Details | |
| Payment Method | {{ ucfirst($order->payment_status) }} |
| Status | @if($order->payment_status=='success') Paid @elseif($order->payment_status=='pending') Pending @elseif($order->payment_status=='failed') Failed @endif |
| Razorpay Order ID | {{ $order->razorpay_order_id }} |
| Razorpay Payment ID | {{ $order->razorpay_payment_id }} |
| Razorpay Signature | {{ $order->razorpay_signature }} |
| Coupon Applied | {{ $order->coupon_code }} |