@php
$salaryAmount = $resignation->salary_amount ?? 0;
$totalRecoveryAmount = 0;
@endphp
Tentative F&F:
{{ date('d-m-Y', strtotime($resignation->tentative_date)) }}
Final Exit:
{{ date('d-m-Y', strtotime($resignation->final_exit_date)) }}
Total Recovery
@if (isset($resignation->otherAmounts))
@foreach ($resignation->otherAmounts as $otherAmount)
@php $totalRecoveryAmount += $otherAmount->amount ?? 0; @endphp
{{ $otherAmount->title ?? '' }}
{{ number_format($otherAmount->amount ?? 0, 2) }}
@endforeach
@endif
@if (isset($resignation->otherAmounts) && count($resignation->otherAmounts) > 0)
Actual Recovery
Remaining
{{ number_format($totalRecoveryAmount, 2) }}
@else
No any recovery is pending.
@endif
Other Deduction
Deduction
Final Settlement
Salary
{{ number_format($salaryAmount, 2) }}
Remaining Recovery
- {{ number_format($totalRecoveryAmount, 2) }}
Other Deduction
- 0
F&F Amount
{{ number_format($salaryAmount - $totalRecoveryAmount, 2) }}
Employee Asset History
| # |
Asset |
Remarks |
Takeover By |
@foreach ($inventoryItems as $inventoryItem)
@php $lastHistory = $inventoryItem->assetInventoryItemHistories->first(); @endphp
| {{ $loop->iteration }} |
{{ $inventoryItem->assetInventory->asset->name ?? '' }}
({{ $inventoryItem->serial_no ?? '-' }})
|
{{ $lastHistory->reason ?? '-' }} |
@if ($lastHistory)
{{ $lastHistory->editor->name ?? '' }}
{{ $lastHistory->updated_at->format('d-m-Y h:i:s A') }}
@endif
|
@endforeach