{{-- This is the HTML Order Invoice. This page is rendered by viewOrderInvoice() method inside Admin/OrderController.php --}}

Invoice

Order # {{ $orderDetails['id'] }} {{-- Laravel barcode/QR code generation package (to show barcodes/QR codes for both Product ID and Product Code): https://github.com/milon/barcode --}} @php echo DNS1D::getBarcodeHTML($orderDetails['id'], 'C39'); // This is the product `id` Barcode // echo DNS2D::getBarcodeHTML($orderDetails['id'], 'QRCODE'); // This is the product `id` QR code @endphp


Billed To:
{{ $userDetails['name'] }}
@if (!empty($userDetails['address'])) {{ $userDetails['address'] }}
@endif @if (!empty($userDetails['city'])) {{ $userDetails['city'] }}
@endif @if (!empty($userDetails['state'])) {{ $userDetails['state'] }}
@endif @if (!empty($userDetails['country'])) {{ $userDetails['country'] }}
@endif @if (!empty($userDetails['pincode'])) {{ $userDetails['pincode'] }}
@endif {{ $userDetails['mobile'] }}
Shipped To:
{{ $orderDetails['name'] }}
{{ $orderDetails['address'] }}
{{ $orderDetails['city'] }}, {{ $orderDetails['state'] }}
{{ $orderDetails['country'] }}-{{ $orderDetails['pincode'] }}
{{ $userDetails['mobile'] }}
Payment Method:
{{ $orderDetails['payment_method'] }}
Order Date:
{{ date('Y-m-d h:i:s', strtotime($orderDetails['created_at'])) }}

Order summary

{{-- Calculate the Subtotal --}} @php $subTotal = 0; @endphp @foreach ($orderDetails['orders_products'] as $product) {{-- Continue: Calculate the Subtotal --}} @php $subTotal = $subTotal + ($product['product_price'] * $product['product_qty']) @endphp @endforeach
Product Code Size Color Price Quantity Totals
{{ $product['product_code'] }} {{-- Laravel barcode/QR code generation package (to show barcodes/QR codes for both Product ID and Product Code): https://github.com/milon/barcode --}} @php echo DNS1D::getBarcodeHTML($product['product_code'], 'C39'); // This is the product `product_code` Barcode // echo DNS2D::getBarcodeHTML($product['product_code'], 'QRCODE'); // This is the product `product_code` QR code @endphp {{ $product['product_size'] }} {{ $product['product_color'] }} INR {{ $product['product_price'] }} {{ $product['product_qty'] }} INR {{ $product['product_price'] * $product['product_qty'] }}
Subtotal INR {{ $subTotal }}
Shipping Charges INR 0
Grand Total INR {{ $orderDetails['grand_total'] }}
@if ($orderDetails['payment_method'] == 'COD') (Already Paid) @endif