@php // Accent colours for a target's metric icon chip. $iconChip = [ 'indigo' => 'bg-indigo-50 text-indigo-600', 'violet' => 'bg-violet-50 text-violet-600', 'sky' => 'bg-sky-50 text-sky-600', 'emerald' => 'bg-emerald-50 text-emerald-600', 'amber' => 'bg-amber-50 text-amber-600', 'blue' => 'bg-blue-50 text-blue-600', ]; // Status badge + progress-bar styling, keyed by derived status. $statusMeta = [ 'on_track' => ['label' => __('On Track'), 'badge' => 'bg-emerald-50 text-emerald-700', 'bar' => 'from-emerald-500 to-emerald-400'], 'at_risk' => ['label' => __('At Risk'), 'badge' => 'bg-amber-50 text-amber-700', 'bar' => 'from-amber-500 to-amber-400'], 'behind' => ['label' => __('Behind'), 'badge' => 'bg-rose-50 text-rose-700', 'bar' => 'from-rose-500 to-rose-400'], 'upcoming' => ['label' => __('Upcoming'), 'badge' => 'bg-slate-100 text-slate-600', 'bar' => 'from-slate-400 to-slate-300'], 'ended' => ['label' => __('Ended'), 'badge' => 'bg-slate-100 text-slate-500', 'bar' => 'from-slate-400 to-slate-300'], ]; $statusFilters = [ 'all' => __('All statuses'), 'on_track' => __('On Track'), 'at_risk' => __('At Risk'), 'behind' => __('Behind'), ]; $periodFilters = [ 'all' => __('All Periods'), 'daily' => __('Daily'), 'weekly' => __('Weekly'), 'monthly' => __('Monthly'), 'yearly' => __('Yearly'), ]; $tabs = [ 'all' => ['label' => __('All Targets'), 'count' => $tabCounts['all'] ?? 0], 'sales' => ['label' => __('Sales Team'), 'count' => $tabCounts['sales'] ?? 0], 'production' => ['label' => __('Production Team'), 'count' => $tabCounts['production'] ?? 0], 'admin' => ['label' => __('Admin Team'), 'count' => $tabCounts['admin'] ?? 0], 'finance' => ['label' => __('Finance'), 'count' => $tabCounts['finance'] ?? 0], ]; $sparkPaths = [ 'emerald' => 'M0,26 C18,24 30,10 48,14 C66,18 78,6 96,9 C114,12 126,2 144,5', 'amber' => 'M0,22 C18,18 30,24 48,16 C66,8 78,18 96,12 C114,6 126,16 144,10', 'rose' => 'M0,12 C18,16 30,8 48,18 C66,24 78,14 96,20 C114,26 126,16 144,22', ]; @endphp
{{ __('Overall Progress') }}
{{ __('All targets average') }}
{{ $summary['avg'] }}%
{{ __('No targets match your filters.') }}
| {{ __('Target') }} | {{ __('Owner / Team') }} | {{ __('Period') }} | {{ __('Progress') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|
|
{{ $row['title'] }} {{ $row['description'] }} {{ $row['team_label'] }} |
{{-- Owner / Team --}}
@if ($row['owner_photo'])
{{ $row['owner_name'] }} {{ $row['team_label'] }} |
{{-- Period --}}
{{ $row['window_label'] }} {{ $row['period_label'] }} |
{{-- Progress --}}
{{ $row['progress_label'] }}
{{ number_format($row['pct'], 0) }}%
|
{{-- Status --}}
{{ $sm['label'] }} | {{-- Actions --}}
@if ($canManage)
@endif
@if ($canDelete)
@endif
|
{{ $row['title'] }}
{{ $row['team_label'] }} · {{ $row['window_label'] }}
{{ number_format($row['pct'], 0) }}%
{{ $row['progress_label'] }}
{{ __('Stay on track and hit your goals!') }}
{{ __('Regularly review your targets and adjust strategies to stay on track.') }}
{{ __('Assign to one team member, or target the whole team.') }}
{{ __('Progress is reported in the team base currency.') }}
{{ __('Goal = the previous period\'s actual × (1 + growth%). E.g. 10 means “beat last period by 10%”.') }}
{{ __('Use + − * / and parentheses with these variables:') }} {{ implode(', ', $formulaVars) }}