@extends('layouts.admin') @section('title', 'Expense Details') @section('page-title', 'Expense Details') @section('page-subtitle', 'View expense information') @section('content')

Expense #{{ $expense->id }}

Recorded {{ $expense->created_at->format('M d, Y') }}

{{ ucfirst($expense->status) }}

Category

{{ $expense->category?->name ?? 'N/A' }}

Amount

GH₵{{ number_format($expense->amount, 2) }}

Description

{{ $expense->description }}

Expense Date

{{ $expense->expense_date->format('M d, Y') }}

Payment Method

{{ str_replace('_', '-', $expense->payment_method) }}

@if($expense->vendor)

Vendor

{{ $expense->vendor }}

@endif @if($expense->invoice_number)

Invoice Number

{{ $expense->invoice_number }}

@endif @if($expense->approver)

Approved By

{{ $expense->approver->name }}

@endif @if($expense->approval_date)

Approved At

{{ $expense->approval_date->format('M d, Y H:i') }}

@endif @if($expense->notes)

Notes

{{ $expense->notes }}

@endif
@if($expense->receipt)

Receipt Attachment

@php $extension = pathinfo($expense->receipt, PATHINFO_EXTENSION); @endphp @if(in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'webp'])) Receipt @elseif(strtolower($extension) === 'pdf') @else

Receipt file attached

View/Download Receipt
@endif
@endif @if($expense->status === 'pending')
@csrf

Review Complete?

If you've verified the receipt, approve this expense

@endif
Back to List
@endsection