@extends('master.app') @section('title', 'Employee Advance') @section('body')
{{-- Header --}}

Employee Advance

Advance of {{ $employee->name }}
@include('general.valert') {{-- Quick Summary Cards --}}
Filtered Records
{{ $totalCount ?? 0 }}
Filtered Total Amount
{{ number_format((float)($totalAmount ?? 0), 2) }}
Today
{{ date('Y-m-d') }}
Employee ID
#{{ $employee->id }}
{{-- Smart Filter Box (GET) --}}
Reset
{{-- Table --}}
@forelse ($payments as $row) @empty @endforelse
# Title Date Payment Action
{{ $payments->firstItem() + $loop->index }}
{{ $row->title }}
{{ $row->details }}
{{ $row->date }} {{ number_format((float)$row->payment, 2) }} {{-- NOTE: Better is DELETE form, but your route is GET. Keep this for now. --}}
No records found.
{{-- Pagination --}}
{{ $payments->links('pagination::bootstrap-4') }}
{{-- Keep your modals --}} @include('HR.employees.advance.create-modal') {{-- old filter modal not needed now --}} {{-- @include('HR.employees.advance.filter-modal') --}} @endsection @section('pageJs') @endsection