@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) --}}
{{-- Table --}}
| # |
Title |
Date |
Payment |
Action |
@forelse ($payments as $row)
| {{ $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. --}}
|
@empty
| No records found. |
@endforelse
{{-- Pagination --}}
{{ $payments->links('pagination::bootstrap-4') }}