Journal Entry #{{ $journalEntry->id }}

{{ optional($journalEntry->entry_date)->format('F d, Y') }} · {{ ucfirst($journalEntry->status) }}

@if($journalEntry->status === 'draft') @can('journal-entry-post')
@csrf
@endcan @can('journal-entry-edit') Edit @endcan @can('journal-entry-delete')
@csrf @method('DELETE')
@endcan @elseif($journalEntry->status === 'posted') @can('journal-entry-reverse')
@csrf
@endcan @endif Back
@php $totalDebit = $journalEntry->details->sum('debit'); $totalCredit = $journalEntry->details->sum('credit'); @endphp
Entry Date {{ optional($journalEntry->entry_date)->format('F d, Y') }}
Reference {{ $journalEntry->reference ?? '—' }}
Currency {{ $journalEntry->currency?->currency_code ?? '—' }}
FX Rate {{ number_format((float) $journalEntry->fx_rate_to_base, 6) }}
Status {{ ucfirst($journalEntry->status) }}
Posted At {{ optional($journalEntry->posted_at)->format('F d, Y H:i') ?? '—' }}
Posted By {{ $journalEntry->postedBy?->name ?? '—' }}
Accounting Period {{ $journalEntry->accountingPeriod?->name ?? '—' }}
@if ($journalEntry->description)
Description

{{ $journalEntry->description }}

@endif
@foreach ($journalEntry->details as $index => $detail) @endforeach
Detail Lines
Line Account Cost Center Debit Credit Description
{{ $detail->line_no ?? ($index + 1) }} {{ $detail->account?->account_code }} · {{ $detail->account?->account_name }} {{ $detail->costCenter?->code ? $detail->costCenter->code . ' · ' . $detail->costCenter->name : '—' }} {{ number_format((float) $detail->debit, 2) }} {{ number_format((float) $detail->credit, 2) }} {{ $detail->description ?? '—' }}
Totals {{ number_format((float) $totalDebit, 2) }} {{ number_format((float) $totalCredit, 2) }}

Journal entries must remain balanced. Debits should equal credits.

@if ($journalEntry->attachments->isNotEmpty())

Attachments

    @foreach ($journalEntry->attachments as $attachment)
  • {{ $attachment->file_name }}

    {{ number_format(($attachment->file_size ?? 0) / 1024, 2) }} KB · {{ $attachment->file_type ?? 'Unknown type' }}

    View
  • @endforeach
@endif