@extends('Admin.layout') @section('content') @php /* * Sample data for UI preview. * Replace these arrays with your actual order and customer models. */ $orderId = $order->order_id ?? 'ORD1112'; $orderDate = isset($order->created_at) ? $order->created_at->format('d/m/Y') : '26/09/2026'; $customer = $customer ?? [ 'user_id' => 'UID0167', 'phone' => '9791355382', 'name' => 'Renuka', 'email' => 'renuka@example.com', 'address' => '7th street saradhanagar, Kanyakumari, Tamil Nadu, 629003', ]; $items = $items ?? [ ['name' => 'Kanchipuram Silk Saree', 'category' => 'Sarees', 'unit' => '1', 'price' => 1200, 'qty' => 1], ['name' => 'Cotton Handloom Saree', 'category' => 'Sarees', 'unit' => '1', 'price' => 850, 'qty' => 2], ['name' => 'Traditional Silk Dhoti', 'category' => 'Dhoti & Mundu', 'unit' => '1', 'price' => 650, 'qty' => 1], ['name' => 'Designer Kurti', 'category' => 'Kurtas & Sets', 'unit' => '1', 'price' => 750, 'qty' => 1], ['name' => 'Silk Dupatta', 'category' => 'Stoles & Dupattas', 'unit' => '1', 'price' => 450, 'qty' => 1], ['name' => 'Printed Cotton Dress', 'category' => 'Dresses', 'unit' => '1', 'price' => 550, 'qty' => 1], ['name' => 'Linen Handloom Fabric', 'category' => 'Fabrics', 'unit' => '2 m', 'price' => 300, 'qty' => 1], ['name' => 'Traditional Wedding Saree', 'category' => 'Sarees', 'unit' => '1', 'price' => 1250, 'qty' => 1], ]; $subtotal = collect($items)->sum(fn ($item) => (float) $item['price'] * (int) $item['qty'] ); $tax = $tax ?? 0; $shippingCharge = $shippingCharge ?? 50; $grandTotal = $subtotal + $tax + $shippingCharge; @endphp
| S No | Product Name | Category | Units | Price | Qty | Total |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item['name'] }} | {{ $item['category'] }} | {{ $item['unit'] }} | ₹{{ number_format($item['price'], 2) }} | {{ $item['qty'] }} | ₹{{ number_format($item['price'] * $item['qty'], 2) }} |
| No products found. | ||||||
| Total | ₹{{ number_format($subtotal, 2) }} | |||||