@extends('b2bportal::storefront.layouts.app') @section('title', 'Orders — ' . ($business->name ?? 'B2B Portal')) @section('content')

Your orders

@isset($orderGroups) @if($orderGroups->isEmpty())
No orders yet. Browse products
@else
@foreach($orderGroups as $uid => $shipments) @php $first = $shipments->first(); @endphp
Order #{{ $first->order_number ?? substr($uid, 0, 8) }}
{{ optional($first->placed_at)->format('d M Y, H:i') }} @if($shipments->count() > 1) · {{ $shipments->count() }} shipments @endif
{{ config('constants.currency_symbol','₹') }}{{ number_format($shipments->sum('grand_total'), 2) }}
{{ $first->status }} · {{ $first->payment_method_used }}
@endforeach
@if($paginator->hasPages())
{{ $paginator->onEachSide(1)->links() }}
@endif @endif @else

Sign in to see your orders

Log in with your WhatsApp OTP from the checkout screen; your history appears here.

Sign in via checkout
@endisset @endsection