@extends('layouts.app', ['page' => 'Journal Entries', 'pageSlug' => 'journal', 'section' => 'accounting']) @section('content')

Journal Entries

@include('alerts.success')
@forelse ($journalEntries as $journal) @empty @endforelse
Date Reference Description Status Amount Created By Actions
{{ $journal->entry_date }} {{ $journal->reference }} {{ Str::limit($journal->description, 30) }} @if($journal->status == 'posted') Posted @else Draft @endif {{ formatMoney($journal->lines->sum('debit')) }} {{ $journal->user->name ?? 'Unknown' }} @if($journal->status != 'posted')
@csrf
@csrf @method('delete')
@endif
No journal entries found
{{ $journalEntries->links() }}
@endsection