@extends('web.home.layout.master') @section('content')
@if(session('new_order'))

Order Placed Successfully!

Thank you for shopping with American Plastic. Your order has been registered and is now being processed.

Cash on Delivery (COD)

Please keep the exact amount of LKR ready for our delivery agent upon arrival.

Latest Order Details

@php $latestOrder = $orders->first(); $orderTotal = $latestOrder->total; @endphp
Order Reference {{ $latestOrder->order_id }}
Date {{ $latestOrder->created_at->format('d M Y') }}
Quantity {{ $latestOrder->quantity }} item(s)
Order Status Processing
Grand Total LKR {{ number_format($orderTotal, 2) }}
@endif

Your Order History

@if($orders->count() > 0)
@php $grandTotal = 0; @endphp @foreach($orders as $order) @php $orderTotal = $order->total; $grandTotal += $orderTotal + $order->service_fee; @endphp @endforeach
Order Reference Order Date Total Items Status Order Total
{{ $order->order_id }} {{ $order->created_at->format('d M Y') }} {{ $order->quantity }} item(s) Processing LKR {{ number_format($orderTotal, 2) }}
@else

You haven't placed any orders yet.

Start Shopping
@endif
@endsection