@extends('backEnd.layouts.master') @section('title', 'Booking') @push('styles') @endpush @section('content') @php $steadfastOn = $steadfastOn ?? (bool) optional($couriers->get('steadfast'))->status; $pathaoOn = $pathaoOn ?? (bool) optional($couriers->get('pathao'))->status; $redxOn = $redxOn ?? (bool) optional($couriers->get('redx'))->status; $carrybeeOn = $carrybeeOn ?? (bool) optional($couriers->get('carrybee'))->status; $manualMasterOn = $manualMasterOn ?? (bool) optional($couriers->get('manual'))->status; $manualOn = $manualOn ?? ($manualMasterOn && ($manualCouriers ?? collect())->isNotEmpty()); $searchFilter = $searchFilter ?? ''; $hasFilter = $hasFilter ?? (bool) ($districtFilter || $upazilaFilter || $searchFilter); $groupByZone = $groupByZone ?? (bool) ($districtFilter || $upazilaFilter); @endphp @if(!$steadfastOn || !$pathaoOn || !$redxOn || !$manualMasterOn)
Courier API
Steadfast, Pathao, RedX booking শুধু real API দিয়ে হবে — fake ID generate হবে না। Settings → Courier এ credentials save করুন।
@if($steadfastOn)Steadfast ON@elseSteadfast OFF@endif @if($pathaoOn)Pathao ON@elsePathao OFF@endif @if($redxOn)RedX ON@elseRedX OFF@endif @if($carrybeeOn)CarryBee ON@elseCarryBee OFF@endif @if($manualMasterOn)Manual ON@elseManual OFF@endif
Settings → Courier
@endif
Filter & Search
Clear
Manual courier portal upload
@if($hasFilter) Showing {{ $filteredCount }} orders @if($districtFilter) in {{ $districtFilter }}@endif @if($upazilaFilter) / {{ $upazilaFilter }}@endif @if($searchFilter) matching "{{ $searchFilter }}"@endif — COD: ৳{{ number_format($filteredAmount, 0) }} @else Total {{ $filteredCount }} orders — COD: ৳{{ number_format($filteredAmount, 0) }} (date-wise list) @endif
@if($filteredCount > 0)
① Filter ② Select Orders ③ Courier → Send
Bulk booking
0 selected
Courier select → Send
@include('backEnd.order.partials.booking-courier-buttons', [ 'orderId' => null, 'btnClass' => 'multi-booking-courier-btn', 'manualNamedClass' => 'multi-booking-manual-named-btn', 'steadfastOn' => $steadfastOn, 'pathaoOn' => $pathaoOn, 'redxOn' => $redxOn, 'carrybeeOn' => $carrybeeOn, 'manualOn' => $manualOn, 'manualCouriers' => $manualCouriers, ])
@endif
@if($filteredCount > 0 && !$hasFilter) @endif
@if($groupByZone && ($groupedOrders ?? collect())->count()) @foreach($groupedOrders as $gi => $group)
{{ $group['label'] }} {{ $group['count'] }} orders
COD: ৳{{ number_format($group['amount'], 0) }}
Zone courier → @include('backEnd.order.partials.booking-courier-buttons-compact', [ 'orderId' => null, 'btnClass' => 'group-booking-courier-btn', 'manualNamedClass' => 'group-booking-manual-named-btn', 'steadfastOn' => $steadfastOn, 'pathaoOn' => $pathaoOn, 'redxOn' => $redxOn, 'carrybeeOn' => $carrybeeOn, 'manualOn' => $manualOn, 'manualCouriers' => $manualCouriers, ])
@foreach($group['orders'] as $order) @include('backEnd.order.partials.booking-order-row', ['order' => $order, 'groupIndex' => $gi]) @endforeach
Order Customer Address Items COD Book Courier
@endforeach @elseif(!$groupByZone && $orders->count())
@foreach($orders as $order) @include('backEnd.order.partials.booking-order-row', ['order' => $order, 'groupIndex' => 0, 'showLocation' => true]) @endforeach
Order Customer Location Address Items COD Book Courier
@else
@if($hasFilter) No orders found for this filter/search. @else No orders ready for courier booking. @endif
@endif
@include('backEnd.order.partials.booking-modals', ['manualCouriers' => $manualCouriers]) @endsection @push('scripts') @endpush