{{-- Past Follow Row -- rendered in the "Past" tab of the pilots listing. Receives: $row : array from PilotPresenter::forPastFollows() with keys: id, pilot_id, pilot_name, pilot_initials, avatar_color, committed, committed_display, topup_count, returned, returned_display, profit, profit_display, profit_class, duration, started_at, ended_at, status, stop_reason, is_auto_stopped, badge_label, badge_class, profile_url Read-only terminal-state receipt row. No CTAs, no state branching. --}} @php $color = in_array($row['avatar_color'], ['orange','purple','red'], true) ? $row['avatar_color'] : 'orange'; $topupCount = (int) ($row['topup_count'] ?? 0); $topupLabel = $topupCount > 0 ? $topupCount . ' ' . ($topupCount === 1 ? 'top-up' : 'top-ups') : ''; @endphp
{{ $row['pilot_initials'] }}
{{ $row['pilot_name'] }}
{{ $row['duration'] }}
Committed
{{ $row['committed_display'] }}
@if($topupCount > 0)
{{ $topupLabel }}
@endif
Returned
{{ $row['returned_display'] }}
Profit
{{ $row['profit_display'] }}
{{ $row['badge_label'] }}