@extends('layouts.master') @section('title', 'General Journal Report - Prolex Law Firm') @section('content')

General Journal Report

View and filter general ledger transactions

Back to Journals
Report Filters
@if(isset($journalEntries) && $journalEntries->count() > 0) Download PDF @endif
@if(isset($journalEntries)) @if($journalEntries->count() > 0)
Total Entries
{{ $journalEntries->count() }}
Total Debit
${{ number_format($journalEntries->where('tr_code', 'DR')->sum('amount'), 2) }}
Total Credit
${{ number_format($journalEntries->where('tr_code', 'CR')->sum('amount'), 2) }}
Journal Entries
@foreach($journalEntries as $entry) @endforeach
Date Account Code Account Name Description Debit Credit Currency
{{ \Carbon\Carbon::parse($entry->date)->format('M d, Y') }} {{ $entry->account->code ?? 'N/A' }} {{ $entry->account->name ?? 'N/A' }} {{ $entry->narration }} {{ $entry->tr_code == 'DR' ? '$' . number_format($entry->amount, 2) : '-' }} {{ $entry->tr_code == 'CR' ? '$' . number_format($entry->amount, 2) : '-' }} {{ $entry->currency->name ?? 'N/A' }}
@else

No Journal Entries Found

No journal entries match your selected criteria. Try adjusting your filters.

@endif @else

Ready to Generate Report

Please select date range and currency to generate the journal report.

@endif
@push('styles') @endpush @push('scripts') @endpush @endsection