@extends('layouts.app') @section('title', 'Salary Advance Approvals') @section('content')
| Staff | Amount | Reason | Outstanding | Status | |
|---|---|---|---|---|---|
| {{ $a->user->name }} | {{ number_format($a->amount, 2) }} | {{ $a->reason }} | {{ number_format($a->outstandingBalance(), 2) }} | {{ ucfirst($a->status) }} | @if ($a->status === 'pending') @elseif ($a->status === 'approved' && $a->outstandingBalance() > 0) @endif |