{{-- ── Current Settings Banner ── --}}

Markup

{{ number_format($markupPct, 0) }}%

@if($markupPct == 0)

No markup — check TCG Settings

@elseif($markupPct > 50)

Very high — verify this is correct

@endif

Free Shipping From

{{ $freeAt > 0 ? 'R '.number_format($freeAt, 0) : 'Off' }}

Max Covered

{{ $freeMax > 0 ? 'R '.number_format($freeMax, 2) : '∞' }}

Free Services

{{ count($freeSvcs) > 0 ? implode(', ', $freeSvcs) : 'None' }}

{{-- ── Form ── --}}
{{ $this->form }}
@if($simulated) {{ count($results) }} service(s) returned @endif
{{-- ── Error ── --}} @if($simulated && $error)

TCG API Error

{{ $error }}

Check the API key and collection address in TCG Settings.

@endif {{-- ── Results Table ── --}} @if($simulated && !$error && count($results) > 0)

Rate Results

Markup applied: {{ number_format($markupPct, 0) }}%
@foreach($results as $rate) @endforeach
Service TCG Raw (incl.) Markup After Markup (incl.) Charged to Customer (incl.) Free Shipping?

{{ $rate['service_name'] }}

{{ $rate['service_code'] }}

R {{ number_format($rate['raw_price_incl'], 2) }} @if($rate['markup_pct'] == 0) 0% ⚠ @elseif($rate['markup_pct'] > 50) {{ number_format($rate['markup_pct'], 0) }}% ! @else +{{ number_format($rate['markup_pct'], 0) }}% @endif

+R {{ number_format($rate['price_incl'] - $rate['raw_price_incl'], 2) }}

R {{ number_format($rate['price_incl'], 2) }} @if($rate['free_shipping']) R 0.00

Free shipping applies

@else R {{ number_format($rate['final_incl'], 2) }} @endif
@if($rate['free_shipping']) ✓ Free @else Paid @endif
{{-- Explanation footer --}}

TCG Raw = what TCG charges PPSA (before markup). Charged to Customer = what the customer sees at checkout. @if($markupPct == 0) ⚠ Markup is currently 0% — customers are being charged TCG cost price with no margin. Update in TCG Settings. @endif

@elseif($simulated && !$error && count($results) == 0)

No rates returned

TCG returned no services for this address. Check that the postal code is valid and that at least one service is enabled in TCG Settings.

@endif