@extends('layouts.master') @section('title', 'Client Journal Report - ') @section('content')

Client Journal Report

Track client-related transactions and payments

Back to Journals
Report Filters
@if(isset($journalEntries) && $journalEntries->count() > 0) Download PDF @endif
@if(isset($journalEntries)) @if($journalEntries->count() > 0) @if(isset($summary))
Total Entries
{{ $summary['totalEntries'] ?? $journalEntries->count() }}
Total Debit
${{ number_format($summary['totalDebit'] ?? 0, 2) }}
Total Credit
${{ number_format($summary['totalCredit'] ?? 0, 2) }}
Approval Rate
{{ number_format($summary['approvalRate'] ?? 0, 2) }}%
@endif
Client Journal Entries
@foreach($journalEntries as $entry) @php $debit = $entry->tr_code === 'DR' ? (float) $entry->amount : (float) ($entry->dr ?? 0); $credit = $entry->tr_code === 'CR' ? (float) $entry->amount : (float) ($entry->cr ?? 0); @endphp @endforeach
Date Client Code Client Name Description Debit Credit Status Currency
{{ \Carbon\Carbon::parse($entry->date)->format('M d, Y') }} {{ $entry->client_code ?? ($entry->clientAccount->client_code ?? 'N/A') }} {{ $entry->client_name ?? ($entry->clientAccount->client_account ?? 'N/A') }} {{ $entry->narration }} {{ $debit > 0 ? '$' . number_format($debit, 2) : '-' }} {{ $credit > 0 ? '$' . number_format($credit, 2) : '-' }} {{ $entry->status ?? 'pending' }} {{ $entry->currency_name ?? ($entry->currency->currency_name ?? 'N/A') }}
@else

No Client Journal Entries Found

No client journal entries match your selected criteria.

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