@extends('backEnd.layouts.master') @section('title','Incomplete Orders') @section('css') @endsection @section('content')

Incomplete Orders {{ $orders->count() }}

@if($orders->count() > 0)
@foreach($orders as $order) @endforeach
# Customer Phone Date Total Amount Actions
{{ $order->name ?? 'Guest' }}
ID: #{{ $order->id }}
{{ $order->phone ?? '—' }}
{{ optional($order->created_at)->format('d M, Y') }}
{{ optional($order->created_at)->format('h:i A') }}
৳{{ number_format($order->total_amount, 0) }}
{{-- Accept --}}
@csrf
{{-- Delete --}}
@csrf @method('DELETE')
Shipping Address

{{ $order->address ?? 'No address provided' }}

Order Items
@if(!empty($order->items) && is_array($order->items)) @foreach($order->items as $it) @endforeach
Image Product Name Qty Price
img {{ \Illuminate\Support\Str::limit($it['name'], 50) }} x{{ $it['qty'] }} ৳{{ $it['price'] }}
@elseif($order->product_link) @else No product details found. @endif
{{ $orders->links('pagination::bootstrap-4') }}
@else
No incomplete orders found.
@endif
@endsection @section('script') @endsection