@extends('admin.layouts') @section('title', 'Total Orders') @section('header') @endsection @section('content')

Total Orders

@foreach ($recent_orders as $recent_order) @endforeach
S/N ORDER DATE USER DETAILS CATEGORY PRODUCT DETAILS AMOUNT ADDRESS INSTRUCTION STATUS
{{ $loop->iteration }} {{ \Carbon\Carbon::parse($recent_order->order_date)->format('d-m-Y') }}
{{ $recent_order->user_name }}
{{ $recent_order->user->phone_number }}
{{ $recent_order->user->email}}
Category:{{ $recent_order->category_name ?? 'N/A' }}
Sub Category:{{ $recent_order->subcategory_name ?? 'N/A' }}
{{ $recent_order->product_details_name }} {{ $recent_order->amount }} {{ $recent_order->delivery_address }} {{ $recent_order->instruction }} @if($recent_order->status == 'delivered') Delivered @elseif($recent_order->status == 'shipped') Shipped @elseif($recent_order->status == 'accepted') Accepted @elseif($recent_order->status == 'pending') Pending @elseif($recent_order->status == 'cancelled') Cancelled @else Unknown @endif
@endsection @section('footer') @endsection