@extends('backend.layouts.app') @section('content')
Missing Orders
@forelse($orders as $key => $item) {{-- PRODUCTS (NO BACKGROUND, ONLY TEXT + HOVER) --}} {{-- QUANTITY --}} @empty @endforelse
# Name Phone Address Shipping Subtotal Products Qty Total Date Action
{{ $orders->firstItem() + $key }} {{ $item->name }} {{ $item->phone }} {{ \Illuminate\Support\Str::limit($item->address, 40) }} {{ $item->shipping_charge }} {{ $item->subtotal }} @php $variations = is_array($item->variations) ? $item->variations : json_decode($item->variations, true); @endphp {{ $item->products_count }} Products @php $totalQty = 0; $variations = is_array($item->variations) ? $item->variations : json_decode($item->variations, true); if (!empty($variations)) { foreach ($variations as $v) { $totalQty += $v['qty'] ?? 0; } } @endphp {{ $totalQty }} {{ $item->grand_total }} {{ \Carbon\Carbon::parse($item->created_at)->format('d M Y h:i A') }} Submit
No Missing Orders Found
{{ $orders->links() }}
@endsection @section('script') @endsection