@extends('layouts.admin') @section('title', 'Bulk Orders') @section('content')

Bulk Orders

Manage bulk purchase orders — shipped manually, not via Maruti

Total Bulk Orders

{{ number_format($stats['total']) }}

Pending

{{ number_format($stats['pending']) }}

Shipment Created

{{ number_format($stats['shipment_created']) }}

Ready to Ship

{{ number_format($stats['ready_to_ship']) }}

Clear
@csrf

Bulk Orders

@forelse($orders as $order) @empty @endforelse
Order Customer Items Shipping Address Total Shipping Status Tracking Actions
{{-- Only printable rows are selectable, which is what keeps the selection in step with the all-or-nothing backend check. --}} @if($order->hasShipment()) @endif
#{{ $order->order_number }}
{{ $order->created_at->ist()->format('M d, Y') }}
Bulk Purchase
{{ $order->user->name }}
{{ $order->user->email }}
@if(isset($order->shipping_address['phone']))
{{ $order->shipping_address['phone'] }}
@endif
{{ $order->orderItems->sum('quantity') }} books
{{ $order->orderItems->count() }} line item(s)
{{ $order->shipping_address['address_line_1'] ?? '' }} @if(isset($order->shipping_address['address_line_2']))
{{ $order->shipping_address['address_line_2'] }} @endif
{{ $order->shipping_address['city'] ?? '' }}, {{ $order->shipping_address['state'] ?? '' }} {{ $order->shipping_address['postal_code'] ?? '' }}
₹{{ number_format($order->total_amount, 2) }} @if($order->shipping_cost == 0)
Free Shipping
@endif
{{ $order->shipping_partner_status_label }} @if($order->shipment_created_at)
Shipment: {{ $order->shipment_created_at->ist()->format('M d, Y h:i A') }}
@endif @if($order->label_printed_at)
Label: {{ $order->label_printed_at->ist()->format('M d, Y h:i A') }}
@endif
@if($order->manual_tracking_id)
{{ $order->manual_courier_name }}
{{ $order->manual_tracking_id }}
@else - @endif
View Details @if($order->hasShipment()) Print Label & Invoice @else @endif

No bulk orders found

Bulk purchase orders will appear here.

@if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection