@php $hour = now()->hour; $greeting = $hour < 12 ? 'Good morning' : ($hour < 18 ? 'Good afternoon' : 'Good evening'); $firstName = str($wsMember->customer->name ?: $wsMember->customer->email)->before(' ')->before('@')->title(); $money = fn (int $cents, int $decimals = 0) => 'AUD '.number_format($cents / 100, $decimals); $maxMonth = max(1, collect($monthly)->max('cents')); $gaugeLength = 2 * M_PI * 52; $tier = $tierProgress['current']; @endphp {{-- Greeting + quick actions --}}

Trade desk

{{ $greeting }}, {{ $firstName }}.

@if($cartQuote['units'] > 0) You have {{ number_format($cartQuote['units']) }} units waiting in your order — {{ $money($cartQuote['net_cents'], 2) }} at your pricing. @elseif($stats['open_orders'] > 0) {{ $stats['open_orders'] }} {{ str('order')->plural($stats['open_orders']) }} in production right now. @else Everything is up to date. Ready when you are. @endif

@if($wsMember->canOrder()) Quick order Paste SKUs @if($recentOrders->first())
@csrf
@endif @endif @if($wsSettings['price_sheet_enabled']) Price sheet @endif
{{-- Membership card + credit line --}}

The Ring Authority · Trade

{{ $wsCompany->name }}

{{ $tier?->name ?? 'Wholesale' }}
TRA·W·{{ str_pad((string) $wsCompany->id, 5, '0', STR_PAD_LEFT) }}

Base discount

{{ $wsCompany->baseDiscountLabel() }}@if($wsCompany->hasActiveCustomDiscount())custom@endif

Terms

{{ $wsCompany->paymentTerm?->name ?? 'Proforma' }}

Member since

{{ $wsCompany->wholesale_approved_at?->format('M Y') ?? '—' }}

Credit line

@if($credit['on_account'])

{{ $money($credit['available_cents'], 2) }}

available of {{ $money($credit['limit_cents']) }} · Net {{ $credit['net_days'] }} days

@else

Proforma account

Orders are invoiced before dispatch. Ask your account manager about pay-on-account terms.

@endif

Outstanding

{{ $money($credit['used_cents'], 2) }}

Overdue

{{ $money($credit['overdue_cents'], 2) }}

View statement
{{-- KPI tiles --}}
@foreach([ ['Spend this year', $stats['ytd_cents'], 'money', 'trending-up', null], ['Saved vs retail', $stats['savings_cents'], 'money', 'sparkles', 'gold'], ['Open orders', $stats['open_orders'], 'number', 'truck', null], ['Average order', $stats['avg_order_cents'], 'money', 'chart-column', null], ] as $i => [$label, $value, $format, $icon, $accent])

{{ $label }}

{{ $format === 'money' ? $money($value, 2) : number_format($value) }}

@endforeach
{{-- Spend chart + pricing ladder --}}

Purchasing

Spend, last 12 months

Trailing 12 months
{{ $money($tierProgress['spend_cents']) }}

@foreach($monthly as $i => $month) @php $h = $month['cents'] > 0 ? max(6, 160 * $month['cents'] / $maxMonth) : 4; $x = 8 + $i * 49.3; @endphp {{ $month['label'] }} {{ $money($month['cents']) }} @endforeach
@if($tierProgress['next'])
{{ $money($tierProgress['remaining_cents']) }} more to reach {{ $tierProgress['next']->name }} Unlocks {{ $tierProgress['next']->discountLabel() }} base discount
@else

You are on our top tier. Thank you for your partnership.

@endif

Your pricing

Volume ladder

{{ $wsCompany->hasActiveCustomDiscount() ? 'Your account rate' : 'Tier' }} {{ $wsCompany->baseDiscountLabel() }} {{ $wsSettings['volume_stacking'] === 'best' ? 'or the best volume break your order reaches, whichever is higher.' : '+ the best volume break your order reaches.' }}

@forelse($cartQuote['ladder'] as $step)
{{ $step['label'] }} +{{ rtrim(rtrim(number_format($step['discount_bps'] / 100, 2), '0'), '.') }}%
@empty

Your tier discount applies to every order. Ask your account manager about volume breaks.

@endforelse
@foreach($cartQuote['next_breaks'] as $break)
{{ $break['label'] }}
@endforeach
{{-- Recent orders + one-tap reorders --}}

Orders

Recent activity

All orders
@if($recentOrders->isEmpty())

No orders yet

Your first trade order is a few clicks away.

@else
@foreach($recentOrders as $order) @endforeach
OrderPOStatusTotal
{{ $order->number }}
{{ $order->created_at->format('d M Y') }}
{{ $order->po_number ?: '—' }} @include('website.wholesale.partials.order-status', ['order' => $order, 'withPayment' => true]) {{ $order->money('total_cents') }}
@endif

Buy again

Your regulars

    @forelse($topProducts as $product) @php $typical = max(1, (int) round($product['units'] / max(1, $product['orders']))); @endphp
  • {{ $product['title'] }}

    {{ $product['sku'] }} · {{ number_format($product['units']) }} units over {{ $product['orders'] }} {{ str('order')->plural($product['orders']) }}

    @if($wsMember->canOrder())
    @csrf
    @endif
  • @empty
  • Products you order often will appear here for one-tap reordering.
  • @endforelse
{{-- Activity + support --}}

Timeline

Account activity

    @forelse($activities as $activity)
  1. {{ $activity->summary }}

    {{ $activity->customer?->name ?? 'TRA team' }} · {{ $activity->created_at?->diffForHumans() }}

  2. @empty
  3. Activity from your team will show up here.
  4. @endforelse
@if($tier && ! empty($tier->perks))

{{ $tier->name }} benefits

    @foreach($tier->perks as $perk)
  • {{ $perk }}
  • @endforeach
@endif @if($wsSettings['quotes_enabled'])

Custom work

Branded canvas, custom sizes, full ring builds.

Send specs and your account manager will return a formal quote you can accept online.

Request a quote
@endif