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

Accepted Orders

@foreach ($recent_orders as $key => $recent_order) @php $categories = json_decode($recent_order->category_name, true) ?? explode('~', $recent_order->category_name); $subcategories = json_decode($recent_order->subcategory_name, true) ?? explode('~', $recent_order->subcategory_name); $product_details_name = json_decode($recent_order->product_details_name, true) ?? explode('~', $recent_order->product_details_name); @endphp @endforeach
S/N ORDER DATE BILL ID USER DETAILS PRODUCT DETAILS AMOUNT SHIPROCKET ORDER ID SHIPMENT ID SHIPROCKECT STATUS ACTION
{{ $loop->iteration }} {{ \Carbon\Carbon::parse($recent_order->order_date)->format('d-m-Y') }} {{ $recent_order->order_random_id }}
User ID: {{ $recent_order->user_id ?? 'NA' }}
{{ $recent_order->user_name }}
{{ implode(', ', array_map('trim', $product_details_name)) }} ₹{{ $recent_order->amount }} {{ $recent_order->shiprocket_order_id ? $recent_order->shiprocket_order_id : '-' }} {{ $recent_order->shipment_id ? $recent_order->shipment_id : '-' }} {{ $recent_order->status }} View Order
@endsection @section('footer') @endsection