{{-- ──────────────────────────────────────────────────────────────── The action centre: ONE dialog for everything a person is being asked to do — set the month's targets, close last month, cash up a day that was missed, finish their own staff record. Shown ONE ASK AT A TIME. Listing them all at once was the first shape this took and it read as a wall: four headings, four descriptions and four buttons, none of which the eye lands on first. A single ask, one sentence, one button, with a quiet step counter and a Skip, is calmer and far likelier to be acted on. Short asks (the month's targets) are answered right here; the rest hand over to the page that owns them. ───────────────────────────────────────────────────────────────── --}} @if ($show && $current) @php $tones = [ 'info' => ['chip' => 'bg-indigo-50 text-indigo-600', 'badge' => 'bg-indigo-50 text-indigo-700'], 'warning' => ['chip' => 'bg-amber-50 text-amber-600', 'badge' => 'bg-amber-100 text-amber-700'], 'danger' => ['chip' => 'bg-rose-50 text-rose-600', 'badge' => 'bg-rose-100 text-rose-700'], ]; $t = $tones[$current['tone']] ?? $tones['info']; $count = count($items); $position = $step + 1; $isOpen = $current['inline'] && $expanded === $current['key']; @endphp {{-- Header. Deliberately slim: a tall banner on a dialog that interrupts you reads as an advert for itself. --}}

{{ __('Needs your attention') }}

@if ($count > 1) {{ __(':position of :count', ['position' => $position, 'count' => $count]) }} @endif
{{-- The one ask. --}}

{{ $current['eyebrow'] }}

@if ($current['due']) {{ $current['due'] }} @endif

{{ $current['title'] }}

{{ $current['body'] }}

{{-- Supporting detail, as chips rather than a bulleted list. These are short facts — the days still uncounted, the fields still blank — and a list of icons and full stops made four words look like four more instructions. --}} @if (! empty($current['bullets']))
@foreach (array_slice($current['bullets'], 0, 6) as $bullet) {{ $bullet }} @endforeach @if (count($current['bullets']) > 6) {{ __('+:count more', ['count' => count($current['bullets']) - 6]) }} @endif
@endif {{-- Suggested, never demanded: one muted line, so it can never read as another thing holding up your pay. --}} @if (! empty($current['recommended']))

{{ __('While you are here') }}: {{ implode(', ', $current['recommended']) }}

@endif {{-- ── Inline panel: the month's headline targets ── Four numbers is a short enough ask to answer here. Sending someone to another page to type four numbers is how a prompt gets dismissed instead of answered. Everything richer — per-user scope, growth and formula targets — stays on /targets. --}} @if ($isOpen && $current['inline'] === 'targets')

{{ __('Fill in what you want to commit to. Leave a figure blank to skip it.') }}

@foreach ($metricLabels as $metric => $label)
@endforeach
{{ __('Cancel') }} {{ __('Save targets') }} {{ __('Saving…') }}
@else {{-- One action, and it is unmistakable. --}}
@if ($current['inline']) {{ $current['cta'] }} @elseif ($current['url']) {{ $current['cta'] }} @endif
@endif
{{-- Footer: where you are, and the two quiet ways out. --}}
@if ($count > 1) {{-- Step dots. Clickable, because somebody who came here for the cash-up should not have to page past the rest. --}}
@foreach ($items as $index => $item) @endforeach
@else

{{ __('Back at your next sign-in if you leave it.') }}

@endif
@if ($count > 1) {{ __('Next') }} @endif
@endif