@extends('admin.layout.layout') @section('content')

Orders

@foreach($orders as $order) @if($order['orders_products']) @endif @endforeach
Order ID Order Date Customer Name Customer Email Ordered Products Order Amount Order Status Payment Method Actions
{{ $order['id'] }} {{ date('Y-m-d h:i:s', strtotime($order['created_at'])); }} {{ $order['name'] }} {{ $order['email'] }} @foreach($order['orders_products'] as $product) {{ $product['product_code'] }} ({{ $product['product_qty']}})
@endforeach
{{ $order['grand_total'] }} {{ $order['order_status'] }} {{ $order['payment_method'] }}      
@include('admin.layout.footer')
@endsection