@extends('layouts.app') @section('title', 'Expense ' . $expense->expense_number) @include('inventory.accounting.partials.styles') @section('content')

{{ $expense->expense_number }}

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

Back
@include('inventory.accounting.partials.sub-nav')

Details

Amount: {{ number_format($expense->amount, 2) }} {{ $expense->currency }}
Tax: {{ number_format($expense->tax_amount, 2) }}
Category: {{ $expense->category->name ?? '—' }}
Vendor: {{ optional($expense->vendor)->name ?? '—' }}
Paid via: {{ $expense->payment_method }} {{ optional($expense->paidFromAccount)->name ? '('.$expense->paidFromAccount->name.')' : '' }}
Reference: {{ $expense->reference ?? '—' }}
@if($expense->receipt_url)
Receipt: View receipt
@endif
Description: {{ $expense->description }}
@if($expense->entry)

Ledger Posting

View entry {{ $expense->entry->entry_number }} → @foreach($expense->entry->lines as $line) @endforeach
AccountDebitCredit
{{ $line->account->code }} — {{ $line->account->name }} {{ $line->debit > 0 ? number_format($line->debit, 2) : '' }} {{ $line->credit > 0 ? number_format($line->credit, 2) : '' }}
@endif @endsection