@extends('backEnd.layouts.master') @section('title', 'Collection') @push('styles') @endpush @section('content')
TOTAL QTY: {{ $totalQty }}     ESTIMATED PRICE: {{ number_format($estimatedPrice, 0) }}
Note: Collection order wise — একটা order collect করলে তার সব item একসাথে collect হয়ে Booking page e chole jabe. Bulk List theke একসাথে order select করে collect করুন · Collection List = product wise total qty (warehouse summary)।
@php $currentView = $view ?? 'cards'; @endphp
@if(!empty($search)) × @endif
@if($currentView === 'summary')
Print A5 Print A4 80mm Thermal
@forelse($productSummary ?? [] as $row) @empty @endforelse
Product Name SKU Total Order Qty Last Order ID Order IDs
{{ $row['product_name'] }} {{ $row['sku'] }} {{ $row['total_qty'] }} @if($row['last_order_id']) #{{ $row['last_order_id'] }} @else — @endif @foreach(array_slice($row['order_ids'], 0, 8) as $oid) #{{ $oid }} @endforeach @if(count($row['order_ids']) > 8) +{{ count($row['order_ids']) - 8 }} more @endif
No items waiting for collection.
@elseif($currentView === 'bulk')
@forelse($orders as $order) @php $pendingItems = $order->items; $orderQty = (int) $pendingItems->sum('qty'); $orderTotal = (float) $pendingItems->sum('total'); @endphp @empty @endforelse
Order Customer Products Items Total Qty Amount
#{{ $order->id }}
{{ $order->created_at->format('d M Y') }}
{{ $order->customer_name }}
{{ $order->customer_phone }}
@foreach($pendingItems as $item)
{{ $item->product_name }} x{{ $item->qty }}
@endforeach
{{ $pendingItems->count() }} {{ $orderQty }} {{ number_format($orderTotal, 0) }}
No orders waiting for collection.
0 order selected
@if(isset($orders) && $orders->hasPages())
{{ $orders->links() }}
@endif @else
@forelse($orders as $order) @php $pendingItems = $order->items; $orderQty = (int) $pendingItems->sum('qty'); $orderTotal = (float) $pendingItems->sum('total'); @endphp
{{ $order->created_at->format('F j, Y g:i A') }} - #{{ $order->id }}
C: {{ $order->customer_name }} - {{ $order->customer_phone }}
@if($order->admin_note)
@include('backEnd.order.partials.order-note-list', ['noteText' => $order->admin_note])
@endif
Total QTY: {{ $orderQty }} · {{ $pendingItems->count() }} item(s)
Collect korle Booking e jabe
@foreach($pendingItems as $item) @php $thumb = $item->product_thumbnail ?? $item->product?->thumbnail; @endphp
@if($thumb) {{ $item->product_name }} @else
@endif
{{ $item->product_name }}
@if($item->variant_label) {{ $item->variant_label }} @elseif($item->size || $item->color) {{ trim(($item->size ?? '') . ($item->color ? ' / ' . $item->color : '')) }} @else — @endif @if($item->product?->sku) · SKU: {{ $item->product->sku }} @endif
QTY: {{ $item->qty }}
@endforeach
@empty
No orders waiting for collection.
@endforelse
@if(isset($orders) && $orders->hasPages())
{{ $orders->links() }}
@endif @endif
@endsection @push('scripts') @endpush