@extends('admin.layouts.app') @section('title', 'Send to '.$courier::label()) @section('crumbs') Orders Send to {{ $courier::label() }} @endsection @section('content') @php $location = $courier::location(); $ready = $orders->filter(fn ($o) => ! $o->consignment_id && ! in_array($o->status, ['cancelled', 'delivered'], true)); $codTotal = $ready->sum(fn ($o) => $o->payment_status === 'paid' ? 0 : (float) $o->total); @endphp
@csrf

🚚 {{ $ready->count() }} ta order {{ $courier::label() }} e jabe

Mot COD: ৳{{ number_format($codTotal) }}@if ($courier::sandbox()) · Sandbox@endif
@if ($location === 'pathao' && ! $cities)
⚠️ Pathao theke city list pawa jay ni. {{ $courier->lastError ?? 'Courier Settings e Client ID / Secret / username / password check koro.' }}
@elseif ($location === 'redx' && ! $areas)
⚠️ RedX theke area list pawa jay ni. {{ $courier->lastError ?? 'Courier Settings e Access Token check koro.' }}
@endif
@if ($location === 'pathao')@elseif ($location === 'redx')@elseif ($location === 'manual')@endif @foreach ($orders as $o) @php $skip = $o->consignment_id ? 'Age e '.\App\Services\Couriers\CourierManager::label($o->courier).' e pathano ('.$o->tracking_code.')' : (in_array($o->status, ['cancelled', 'delivered'], true) ? 'Order '.$o->status_label : null); @endphp @if ($location === 'pathao') @php $autoCity = \App\Support\BdLocations::match($o->city, $cities); @endphp @elseif ($location === 'redx') @elseif ($location === 'manual') @endif @endforeach
OrderCustomerAddressCODCityZoneDelivery areaTracking code (optional)
@unless ($skip)@endunless {{ $o->order_number }} @if ($skip)
⛔ {{ $skip }}
@endif
{{ $o->customer_name }}
{{ $o->phone }}
{{ $o->address }}
@if ($o->city)📍 {{ $o->zone }}, {{ $o->city }} · @endif{{ $o->area === 'inside' ? 'Inside Dhaka' : 'Outside Dhaka' }}
৳{{ number_format($o->payment_status === 'paid' ? 0 : $o->total) }}@if ($o->payment_status === 'paid')
Paid
@endif
@if ($location === 'redx') @foreach ($areas as $a)@endforeach @endif @if ($location === 'manual')

ℹ️ {{ $courier::label() }} er API nei: order gula age {{ $courier::label() }} merchant panel e banao, tarpor ekhane tracking code likhe pathao. Order gula Shipped hoye jabe.

@endif
Cancel
@endsection @push('scripts') @endpush