@extends('admin.layout') @section('title', 'Customer tiers') @section('content')

Customer tiers

A customer’s tier depends on how much they have spent in total with you: tailoring orders (after discount) plus cloth and other products they bought. Type the amount where each tier starts; a tier lasts until the next one begins. Keep the lowest tier at ৳0 so every customer has a tier.

@foreach($tiers as $t) @php $nextTier = $tiers[$loop->index + 1] ?? null; @endphp
{{ $t->name }}
@csrf @method('PUT') from ৳
@csrf @method('DELETE')
৳{{ number_format($t->min_spend) }} @if($nextTier) to ৳{{ number_format($nextTier->min_spend - 1) }} @else and above @endif · {{ $counts[$loop->index] ?? 0 }} customer{{ ($counts[$loop->index] ?? 0) === 1 ? '' : 's' }} now
@endforeach @if($none > 0)

{{ $none }} customer{{ $none === 1 ? '' : 's' }} below the lowest tier have no tier yet. Start the first tier at ৳0 to cover everyone.

@endif
@csrf

Add a tier

starts from ৳
@endsection