| Staff Name |
Basic |
Total Earnings |
Total Deduction |
Employer Contribution |
Net Salary |
CTC |
Status |
Paid Date |
Actions |
@forelse($salaryStaffs as $row)
| {{ $row['staff']->name }} |
{{ number_format($row['salary']->basic, 2) }} |
{{ number_format($row['salary']->total_earnings, 2) }} |
{{ number_format($row['salary']->total_deductions, 2) }} |
{{ number_format(
$row['salary']->employer_pf +
$row['salary']->employer_esi,
2
) }}
|
{{ number_format($row['salary']->net_salary, 2) }} |
{{ number_format($row['salary']->ctc, 2) }}
|
@if($row['status'] === 'paid')
Paid
@else
Pending
@endif
|
{{ $row['salary']->paid_date ? \Carbon\Carbon::parse($row['salary']->paid_date)->format('d-m-Y: H:i:s') : '--' }} |
{{-- PENDING → PAY --}}
@if($row['status'] === 'pending')
@endif
{{-- PAID → VIEW SLIP --}}
@if($row['status'] === 'paid')
View Slip
@endif
|
@empty
|
No salary records found for selected month
|
@endforelse
@if($salaryStaffs->where('status','pending')->count() > 0)
@endif