@extends('layouts.app') @section('title','Expenses') @section('content')<p class="text-sm font-semibold text-blue-600">FINANCE</p><h1 class="text-3xl font-black">Expenses & Reimbursements</h1><div class="mt-6 card overflow-x-auto"><table class="w-full text-sm"><thead class="bg-slate-50 text-left"><tr><th class="p-4">Date</th><th class="p-4">Type</th><th class="p-4">Description</th><th class="p-4">Amount</th><th class="p-4">Status</th></tr></thead><tbody>@foreach($expenses as $e)<tr class="border-t"><td class="p-4">{{ $e->expense_date->format('d M Y') }}</td><td class="p-4">{{ $e->type }}</td><td class="p-4">{{ $e->description }}</td><td class="p-4 font-semibold">PKR {{ number_format((float)$e->amount) }}</td><td class="p-4"><span class="badge">{{ $e->status }}</span></td></tr>@endforeach</tbody></table></div>@endsection