@include('frontend.includes.msg')
| ID |
Total |
User |
Product |
Status |
Uploaded on |
Action |
{{--
--}}
@foreach ($orders as $order)
| #{{ $order->id }} |
₹ {{ $order->total }} |
{{ $order->name ?? 'N/A' }}
{{ $order->number ?? 'N/A'}}
{{$order->email ?? 'N/A'}}
|
@php
$p_names = json_decode($order->product_names, true); // decode as associative array
$variants =json_decode($order->variant_details);
@endphp
@if(is_array($p_names))
@foreach($p_names as $key => $p_name)
- {{ $p_name }}
{{$variants[$key]}} x {{json_decode($order['quantities'])[$key]}}
@endforeach
@else
- No product names available
@endif
|
{{--
@foreach( as $key=>$variant)
@endforeach
| --}}
|
{{ $order->created_at->format('F j, Y') }} |
|
@endforeach
{{--
|
|
New
|
11/06/2023 10:53 |
In Progress
|
|
|
|
Sent
|
11/06/2023 10:53 |
Completed
|
|
|
|
Returning
|
11/06/2023 10:53 |
Not Interested
|
|
|
|
Sent
|
11/06/2023 10:53 |
Completed
|
|
--}}