@use('App\Modules\Orders\Enums\OrderStatus') @php $ship = $order->shipping_address; $active = $items->reject(fn ($i) => $i->status === OrderStatus::Cancelled); $first = $items->first(); $step = $status->step(); $charge = $order->chargeFor($first->seller_name); $chargeTotal = $charge && ! $charge->refunded ? $charge->total() : 0; $collect = $active->sum('line_total') + ($active->isNotEmpty() ? $chargeTotal : 0); @endphp @if ($active->isNotEmpty())Packing slipPacking slip PDF@endif All orders @error('status')
{{ $message }}
@enderror
{{-- Progress + next action --}}
@if ($status === OrderStatus::Cancelled)
Cancelled {{ $first->cancelled_at?->format('d M Y') }}@if ($first->cancel_reason): {{ $first->cancel_reason }}@endif
@else
    @foreach (OrderStatus::STEPS as $i => $s)
  1. $i < $step, 'current' => $i === $step])>{{ $i + 1 }}{{ $s->label() }}
  2. @endforeach
@if ($status === OrderStatus::Placed)
@csrf
Confirm within 24 hours so the customer knows you're packing it.
@endif @if (in_array($status, [OrderStatus::Placed, OrderStatus::Confirmed], true))
@csrf @php $pickOptions = $store->pickupAddresses()->where('is_active', true)->get(); @endphp @if ($pickOptions->count() > 1)
@endif
@endif @if ($status === OrderStatus::Shipped)
{{ $first->courier }} · {{ $first->tracking_number }} · shipped {{ $first->shipped_at?->format('d M') }}
@csrf
@endif @if ($status === OrderStatus::Delivered)

Delivered {{ $first->delivered_at?->format('d M Y') }} via {{ $first->courier }} ({{ $first->tracking_number }}).

@endif @endif
Your items in this order
    @foreach ($items as $item)
  • {{ $item->displayName() }}
    Qty {{ $item->qty }} × {{ inr($item->unit_price) }}
    {{ inr($item->line_total) }} @if ($item->status === OrderStatus::Cancelled)
    Cancelled
    @endif
  • @endforeach
@php $sellerInvoice = \App\Modules\Tax\Models\TaxInvoice::query()->where('order_id', $order->id)->whereIn('type', ['tax_invoice', 'bill_of_supply'])->whereHas('store', fn ($q) => $q->where('name', $first->seller_name))->first(); @endphp @if ($sellerInvoice) @endif @if ($chargeTotal > 0) @endif
@php $partnerOn = app(\App\Modules\Shipping\ShippingPartnerService::class)->enabled(); $booked = \App\Modules\Shipping\Shipment::query()->where('order_id', $order->id)->where('seller_name', $first->seller_name)->first(); @endphp @if ($booked?->awb)
{{ $booked->courier }} · AWB {{ $booked->awb }}{{ $booked->status }}
@if ($booked->label_url) Shipping label@endif @foreach (array_slice((array) $booked->events, 0, 5) as $e)
{{ $e['at'] }} · {{ $e['status'] }}@if ($e['location']) · {{ $e['location'] }}@endif
@endforeach
@elseif ($partnerOn && in_array($status, [OrderStatus::Placed, OrderStatus::Confirmed], true))

Ship with Shiprocket

We book the cheapest available courier, schedule a pickup from your address and give you the label. The customer gets tracking automatically.

@error('ship')
{{ $message }}
@enderror
@csrf @php $bookPick = $store->pickupAddresses()->where('is_active', true)->get(); @endphp @if ($bookPick->count() > 1)
@endif
@endif @if ($status === OrderStatus::Shipped)
Parcel refused or returned by the courier?

Use this when the customer refused the parcel at the door, or the courier brought it back. The stock is added back and the customer is refunded if they paid online.

@csrf
@endif @if (in_array($status, [OrderStatus::Placed, OrderStatus::Confirmed], true))
Can't fulfil this order?
@csrf

Frequent cancellations lower your store's standing. Keep stock up to date to avoid them.

@endif
Ship to
{{ $ship['name'] ?? '' }}
{{ $ship['line1'] ?? '' }}@if (! empty($ship['line2']))
{{ $ship['line2'] }}@endif
{{ $ship['city'] ?? '' }}, {{ $ship['state'] ?? '' }} {{ $ship['pincode'] ?? '' }}
+91 {{ $ship['phone'] ?? '' }} @if ($order->deliveryPreference())
Customer prefers delivery on {{ $order->deliveryPreference() }}
@endif
@if ($order->risk_flags && in_array($status, [OrderStatus::Placed, OrderStatus::Confirmed], true))
Check before shipping. {{ collect($order->risk_flags)->map(fn ($f) => \App\Modules\Orders\Services\FraudGuard::FLAGS[$f] ?? $f)->join('; ') }}. Call the customer to confirm the order and address first.
@endif
Payment
{{ $order->paymentLabel() }} @if ($order->payment_method === 'cod')
Courier collects {{ inr($collect) }} for your parcel.
@endif