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

Supplier Journal Report

Monitor supplier transactions and invoices

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) }}
Supplier 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 Supplier Journal Entries Found

No supplier 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 supplier journal report.

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