@php // Shared tone palette (mirrors the dashboard's good/warn/bad/neutral). $toneChip = ['good' => 'bg-emerald-50 text-emerald-600', 'warn' => 'bg-amber-50 text-amber-600', 'bad' => 'bg-rose-50 text-rose-600', 'neutral' => 'bg-slate-100 text-slate-500']; $toneText = ['good' => 'text-emerald-600', 'warn' => 'text-amber-600', 'bad' => 'text-rose-600', 'neutral' => 'text-slate-500']; $toneDot = ['good' => 'bg-emerald-500', 'warn' => 'bg-amber-500', 'bad' => 'bg-rose-500', 'neutral' => 'bg-slate-400']; $money = fn ($v) => $baseCode . ' ' . number_format((float) $v, 2); @endphp
{{-- Header --}} {{ __('All reports') }} {{ __('Export') }} @if (! $hasData) @else {{-- ============ Status banner ============ --}}
{{ $banner['health_label'] }} @if ($banner['commission_active']) {{ __('Commission Active') }} @endif

{{ $banner['message'] }}

@foreach ($banner['figures'] as $fig)

{{ $fig['label'] }}

{{ $money($fig['value']) }}

@if (! is_null($fig['delta']))

{{ $fig['delta'] >= 0 ? '+' : '' }}{{ number_format($fig['delta'], 1) }}% {{ __('vs last period') }}

@elseif ($fig['sub'])

{{ $fig['sub'] }}

@endif
@endforeach
{{-- ============ Threshold progress + commission status ============ --}}

{{ __('Profit Threshold Progress') }}

{{-- Zone labels --}}

{{ __('Below Break-even') }}

{{ __('Losing money') }}

{{ __('Above Break-even') }}

{{ __('Commission not active') }}

{{ __('Above GP Hurdle') }}

{{ __('Commission active') }}

{{-- The zoned track --}}
{{-- Actual-GP pointer --}}
{{ __('Actual GP') }}
{{-- Scale ticks --}}

{{ __('Break-even GP') }}

{{ $money($threshold['breakEven']) }}

{{ __('GP Hurdle') }}

{{ $money($threshold['hurdle']) }}

{{-- Distance cards --}}
@foreach ($threshold['distances'] as $d)

{{ $d['label'] }}

{{ $money($d['value']) }}

{{ $d['sub'] }}

@endforeach
{{-- Commission status --}}

{{ __('Commission Status') }}

@if ($banner['commission_active']) {{ __('Active') }} @else {{ __('Not Eligible') }} @endif
{{ __('GP Hurdle') }}
{{ $money($fin['gp_hurdle']) }}
{{ __('Actual GP') }}
{{ $money($fin['gross_profit']) }}
{{ __('Excess GP') }}
{{ $money($fin['excess_gp']) }}
{{ __('Pool Rate') }}
{{ number_format((float) $fin['commission_pool_rate'] * 100, 0) }}%
{{ __('Commission Pool') }} {{ $money($fin['commission_pool']) }}

{{ __('Sales Pool') }}

{{ $money($fin['sales_pool']) }}

{{ __('Production Pool') }}

{{ $money($fin['production_pool']) }}

{{ __('Eligible for payout at period end.') }}

{{-- ============ Charts: waterfall + need + gauge, then trend + forecast ============ --}}
{{-- Profit waterfall --}}

{{ __('Profit Waterfall') }} ({{ $baseCode }})

@foreach ($margins as $m)

{{ $m['label'] }}

{{ number_format($m['value'], 1) }}%

@endforeach
{{-- How much more is needed --}}

{{ __('How Much More Is Needed?') }}

{{ $need['title'] }}

{{ $money($need['amount']) }}

{{ $need['caption'] }}

{{ $need['note'] }}

{{-- Margin of safety gauge --}}

{{ __('Margin of Safety') }}

{{ $gauge['note'] }}

{{ $gauge['pct'] >= 35 ? __('Strong buffer, well positioned.') : ($gauge['pct'] >= 0 ? __('Some buffer, keep building margin.') : __('No buffer, below break-even.')) }}

{{-- Monthly threshold trend --}}

{{ __('Threshold Trend') }}

{{ __('Actual GP against break-even, the hurdle and net profit each period.') }} @if ($streak > 0) · {{ trans_choice('{1}:n period streak|[2,*]:n period streak', $streak, ['n' => $streak]) }} @endif

{{-- Profit forecast --}}

{{ __('Profit Forecast') }}

{{ __('Based on current run rate') }}

{{ __('Projected GP') }}
{{ $money($forecast['gp']) }}
{{ __('Projected Net Profit') }}
{{ $money($forecast['net_profit']) }}
{{ __('Projected Commission Pool') }}
{{ $money($forecast['pool']) }}
{{ __('Projected Retained Profit') }}
{{ $money($forecast['retained']) }}

{{ $forecast['headline'] }}

{{ __('Confidence') }}: {{ $forecast['confidence_label'] }} ({{ $forecast['confidence'] }}%)

{{-- ============ Six figure cards ============ --}}
@foreach ($cards as $card)

{{ $card['label'] }}

{{ $card['value'] }}

{{ $card['sub'] }}

@endforeach
{{-- ============ Intelligence + scenario modelling ============ --}}
{{-- Break-even intelligence --}}

{{ __('Break-even Intelligence') }}

    @foreach ($intelligence as $item)
  • {{ $item['text'] }}
  • @endforeach
{{-- Scenario modelling --}}

{{ __('Scenario Modelling') }}

{{ __('Projected from the current run rate using the configured hurdle, rate and overheads.') }}

@foreach ($scenarios as $i => $s) @endforeach
{{ __('Scenario') }} {{ __('Projected GP') }} {{ __('Commission Pool') }} {{ __('Retained Profit') }}
{{ $s['label'] }} {{ $money($s['gp']) }} {{ $money($s['pool']) }} {{ $money($s['retained']) }}
{{-- ============ Footer note ============ --}}

{{ __('Break-even GP equals your overheads, the gross profit needed just to cover fixed costs. The GP hurdle is overheads × the configured multiplier; only gross profit above it (excess GP) is shared as commission across sales and production. Net profit is gross profit minus overheads; retained profit is what is left after the commission pool. Forecast and scenarios are run-rate projections, not actuals.') }}

@endif