@extends('layouts.master') @section('content')

Employee Advances

@if(session('success'))
{{ session('success') }}
@endif @forelse($advances as $adv) {{-- Edit Modal --}} @empty @endforelse
# Employee Advance Amount Recovered Balance Monthly Ded. Given Date Status Actions
{{ $loop->iteration }} {{ $adv->employee->first_name }} {{ $adv->employee->last_name }} {{ number_format($adv->amount, 0) }} {{ number_format($adv->recovered, 0) }} {{ number_format($adv->balance, 0) }} {{ number_format($adv->monthly_deduction, 0) }} {{ \Carbon\Carbon::parse($adv->given_date)->format('d/m/Y') }} {{ ucfirst($adv->status) }}
@csrf @method('DELETE')
No advance records found.
{{ $advances->links() }}
{{-- Add Advance Modal --}} @endsection