Sales recorded by each staff member against their monthly target.
| Staff | Target | Achieved | Variance | Achievement |
|---|---|---|---|---|
| {{ $row['user']->name }} | {{ $row['target'] !== null ? number_format($row['target'], 2) : '—' }} | {{ number_format($row['achieved'], 2) }} | $row['variance'] !== null && $row['variance'] >= 0, 'text-red-600 dark:text-red-400' => $row['variance'] !== null && $row['variance'] < 0, 'text-gray-400 dark:text-gray-500' => $row['variance'] === null, ])> @if ($row['variance'] !== null) {{ $row['variance'] > 0 ? '+' : '' }}{{ number_format($row['variance'], 2) }} @else — @endif | @if ($row['achievement_pct'] !== null) $row['achievement_pct'] >= 100, 'text-amber-600 dark:text-amber-400' => $row['achievement_pct'] < 100, ])> {{ number_format($row['achievement_pct'], 0) }}% @else No target @endif |