| {{ __('deductions.table.id') }} | {{ __('deductions.table.type') }} | {{ __('deductions.table.amount') }} | {{ __('deductions.table.status') }} | {{ __('deductions.table.deduction_date') }} | {{ __('deductions.form.label_end_date') }} | {{ __('deductions.table.description') }} | {{ __('deductions.table.created_at') }} | |
|---|---|---|---|---|---|---|---|---|
| {{ $deduction->id }} |
{{ __('deductions.type_labels.' . $deduction->type) ?? $deduction->type }}
@if($deduction->name)
{{ $deduction->name }} @endif |
{{ number_format($deduction->amount, 2) }} {{ get_currency_code() }} | @php $statusClasses = [ 'pending' => 'badge-warning', 'applied' => 'badge-success', 'cancelled' => 'badge-secondary', ]; $statusLabels = [ 'pending' => __('deductions.status.pending'), 'applied' => __('deductions.status.applied'), 'cancelled' => __('deductions.status.cancelled'), ]; $badgeClass = $statusClasses[$deduction->status] ?? 'badge-dark'; $badgeLabel = $statusLabels[$deduction->status] ?? $deduction->status; @endphp {{ $badgeLabel }} | {{ $deduction->deduction_date ? $deduction->deduction_date->format('Y-m-d') : __('deductions.not_specified') }} | {{ $deduction->end_date ? $deduction->end_date->format('Y-m-d') : __('deductions.not_specified') }} | {{ Str::limit($deduction->description, 50) }} | {{ $deduction->created_at->format('Y-m-d') }} | |
| {{ __('deductions.no_deductions') }} | ||||||||