@extends('layouts.bootstrap') @section('title', 'Expense Details') @section('content')

Expense Details

Back to List @if(auth()->user()->canManageExpenses()) Edit @endif
{{ $expense->title }}
{{ ucfirst($expense->status) }}
Amount

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

Expense Date

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

@if($expense->description)
Description

{{ $expense->description }}

@endif
Category
{{ $expense->category_display_name }}
Payment Method

{{ $expense->payment_method_display_name }}

@if($expense->vendor || $expense->invoice_number)
@if($expense->vendor)
Vendor/Supplier

{{ $expense->vendor }}

@endif @if($expense->invoice_number)
Invoice Number

{{ $expense->invoice_number }}

@endif
@endif @if($expense->receipt_file)
Receipt/Invoice
View Document
@endif @if($expense->status != 'pending' && $expense->approver)
Approval Information
Approved/Rejected by:
{{ $expense->approver->name }}
Date:
{{ $expense->approved_at->format('M d, Y g:i A') }}
@if($expense->approval_notes)
Notes:

{{ $expense->approval_notes }}

@endif
@endif
Record Information
Created By

{{ $expense->creator->name }}

Created Date

{{ $expense->created_at->format('M d, Y g:i A') }}

@if($expense->updated_at != $expense->created_at)
Last Updated

{{ $expense->updated_at->format('M d, Y g:i A') }}

by {{ $expense->updater->name }}
@endif
@if($expense->status == 'pending' && auth()->user()->canApproveExpenses())
Approval Actions
@csrf
@endif @if($expense->status == 'approved' && auth()->user()->canApproveExpenses())
Payment Action
@csrf
@endif @if(auth()->user()->canManageExpenses())
Management Actions
Edit Expense
@csrf @method('DELETE')
@endif
Quick Stats
${{ number_format(\App\Models\Expense::thisMonth()->sum('amount'), 0) }}
This Month
{{ \App\Models\Expense::where('status', 'pending')->count() }}
Pending
@endsection