@extends('layouts.app') @section('title', 'Collector Expenses') @section('content')
| ID | Collector | Amount | Type | Date | Description | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $expense->expense_id }} |
{{ $expense->collector->name ?? 'N/A' }}
{{ $expense->collector->employee_id ?? 'N/A' }} |
৳{{ number_format($expense->amount, 2) }} | @if($expense->expense_type) {{ ucfirst($expense->expense_type) }} @else N/A @endif | {{ $expense->expense_date->format('d M Y') }} | @if($expense->description) {{ Str::limit($expense->description, 30) }} @else No description @endif |
@if($expense->is_approved)
Approved
@if($expense->approved_at)
{{ $expense->approved_at->format('d M Y') }} @endif @else Pending @endif |
|
| No expenses found. | |||||||