@extends('admin.layouts.app') @section('title', 'Incomplete Orders') @section('content')
Track abandoned carts and recover sales
Total Orders
{{ $incompleteOrders->total() }}
Pending
{{ $incompleteOrders->where('status', 'pending')->count() }}
Confirmed
0
Cancelled
0
| Customer | Contact | Location | Products | Charges | Time | Actions |
|---|---|---|---|---|---|---|
|
{{ $order->name ?? 'Unknown' }} @if($order->email){{ $order->email }} @endif |
@if($order->phone)
{{ $order->phone }}
@else
N/A
@endif
{{ $order->ip_address ?? 'No IP' }} |
@if($order->district || $order->area)
{{ $order->district ?? '' }} {{ $order->area ?? '' }} @endif @if($order->address){{ Str::limit($order->address, 30) }} @else No address @endif |
@if(count($products) > 0)
{{ $productCount }} item(s) @foreach(array_slice($products, 0, 2) as $product)
{{ $product['name'] ?? 'Product' }}
×
{{ $product['quantity'] ?? 1 }}
@if(!empty($product['color']) || !empty($product['size']))
({{ implode(', ', array_filter([$product['color'] ?? null, $product['size'] ?? null])) }})
@endif
@endforeach
@if(count($products) > 2)
+{{ count($products) - 2 }} more @endif |
Subtotal:
৳{{ number_format($order->subtotal ?? 0) }}
Shipping:
৳{{ number_format($order->shipping_charge ?? 0) }}
@if($order->shipping_class)
{{ $order->shipping_class }} @endif
Total:
৳{{ number_format($order->total ?? 0) }}
|
{{ $order->created_at?->diffForHumans() }} {{ $order->created_at?->format('M d, h:i A') }} |
|
No Incomplete OrdersAll customers have completed their checkouts! |
||||||