@extends('layouts.app') @section('content') {{-- PAGE HEADER WITH BREADCRUMB --}}
{{-- Title Section --}}
Salary Loans
{{-- Breadcrumb Path --}}
{{-- IMPROVED FILTER CARD --}}
{{-- CARD HEADER: Title na Count --}}
{{-- Title kuu ya Filter --}}
Filter Options
{{-- Count ya records --}}
Total Loans: {{ number_format($salaryLoans->total()) }}
{{-- CARD BODY: Form ya Filters --}}
{{-- ROW 1: Date, Check Number, First Name --}}
Filter by payment date
Search by check number
Search by first name
{{-- ROW 2: Middle Name, Last Name, Action Buttons --}}
Search by middle name
Search by last name
{{-- ACTION BUTTONS --}}
{{-- Filter Button --}} {{-- Export Button --}}
{{-- QUICK FILTERS --}}
Quick Filters: Reset All
{{-- SALARY LOAN LIST TABLE --}}
@forelse($salaryLoans as $index => $record) @empty @endforelse
SN
Check Number
Name
Monthly Salary
Deduction Amount
Balance Amount
Description
Vote Code
Department
Month
Actions
{{ $salaryLoans->firstItem() + $index }}
{{ $record->checkNumber }} {{ $record->firstName }} {{ $record->middleName }} {{ $record->lastName }} TSh {{ number_format($record->monthlySalary, 2) }} TSh {{ number_format($record->deductionAmount, 2) }} TSh {{ number_format($record->balanceAmount, 2) }} {{ $record->deductionDesc }} {{ $record->voteCode }} {{ $record->deptName }} {{ number_format($record->month, 0) }}
No salary loans found

No salary loan records available for the selected filters.

{{-- PAGINATION FOOTER --}} @if($salaryLoans->hasPages()) @endif
@endsection