@extends('layouts.admin') @section('title', 'Expense ' . $expense->expense_number) @section('page-title', 'Expense Details') @section('content')

{{ $expense->expense_number }}

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

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

Account

{{ $expense->account->name }} ({{ $expense->account->code }})

@if($expense->vendor)

Vendor

{{ $expense->vendor->name }}

@endif

Payment Method

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

Amount

{{ $expense->currency }} {{ number_format($expense->total, 2) }}

@if($expense->description)

Description

{{ $expense->description }}

@endif @if($expense->notes)

Notes

{{ $expense->notes }}

@endif
@if($expense->status === 'draft')
@csrf
@endif
@endsection