{{-- This page is rendered by orders() method inside Front/OrderController.php (depending on if the order id Optional Parameter (slug) is passed in or not) --}} @extends('front.layout.layout') @section('content')
Order ID | Ordered Products | {{-- We'll display products codes --}}Payment Method | Grand Total | Created on | @foreach ($orders as $order)
---|---|---|---|---|
{{ $order['id'] }} | {{-- We'll display products codes --}}
@foreach ($order['orders_products'] as $product)
{{ $product['product_code'] }}
@endforeach |
{{ $order['payment_method'] }} | {{ $order['grand_total'] }} | {{ date('Y-m-d h:i:s', strtotime($order['created_at'])) }} |