← Back to payroll
@if (session('error'))
{{ session('error') }}
@endif

Details

@if ($userId)

Outstanding advances

Checked rows are netted off this payment. Uncheck any you'd rather carry forward to next time.

@if ($this->outstandingExpenses->isEmpty())

No outstanding advances for this person — nothing to deduct.

@else
@foreach ($this->outstandingExpenses as $expense) @endforeach
Date Category Notes Amount
{{ $expense->expense_date->format('d M Y') }} {{ $expense->categoryLabel() }} {{ $expense->notes ?: '—' }} {{ number_format((float) $expense->amount, 2) }}
Selected total to deduct: {{ number_format($this->advancesSelectedTotal, 2) }}
@endif

Salary breakdown

@if ($this->targetForPeriod)
Target {{ number_format((float) $this->targetForPeriod->target_amount, 2) }}
Achieved {{ number_format($this->achievedForPeriod, 2) }}
@php $pct = (float) $this->targetForPeriod->target_amount > 0 ? ($this->achievedForPeriod / (float) $this->targetForPeriod->target_amount) * 100 : 0; @endphp
Achievement $pct >= 100, 'text-amber-600 dark:text-amber-400' => $pct < 100])>{{ number_format($pct, 0) }}%
@elseif ($userId && $targetPeriod)

No target set for this person this month.

@endif

Informational only — decide the Target Incentive amount yourself below, it's never calculated automatically.

Gross salary {{ number_format($this->grossTotal, 2) }}
Advances deducted -{{ number_format($this->advancesSelectedTotal, 2) }}
Net payable {{ number_format($this->netTotal, 2) }}
Cancel
@endif