@extends('layouts.admin') @section('title', 'Expense ' . $expense->expense_number) @section('page-title', 'Expense Details') @section('breadcrumbs') Expenses chevron_right {{ $expense->expense_number }} @endsection @section('content')

{{ $expense->expense_number }}

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

@php $currentStatus = $expense->status ?? 'draft'; @endphp
@csrf @method('PATCH')
edit Edit

Account

{{ $expense->account ? $expense->account->code . ' - ' . $expense->account->name : '-' }}

Category

{{ $expense->category ?? '-' }}

@if($expense->vendor)

Vendor

@if($expense->vendor->image && \Illuminate\Support\Facades\Storage::disk('public')->exists($expense->vendor->image)) {{ $expense->vendor->name }} @else
{{ strtoupper(substr($expense->vendor->name ?? 'N', 0, 1)) }}
@endif

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

@endif

Expense Date

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

Payment Method

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

Amount

{{ \App\Models\Currency::formatAmount($expense->amount ?? 0, $expense->currency) }}

@if($expense->tax_amount > 0)

Tax: {{ \App\Models\Currency::formatAmount($expense->tax_amount, $expense->currency) }}

@endif

Total: {{ \App\Models\Currency::formatAmount($expense->total, $expense->currency) }}

@if($expense->description)

Description

{{ $expense->description }}

@endif @if($expense->receipt_path) @endif

Actions

Manage this expense

edit Edit Expense
@push('scripts') @endpush @endsection