@extends('layouts.master') @section('title', 'Supplier Journal Report - ') @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
{{ $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) }}%
@if(isset($summary))
Current State Summary
Pending
{{ $summary['statusCounts']['pending'] ?? 0 }}
Approved
{{ $summary['statusCounts']['approved'] ?? 0 }}
Rejected
{{ $summary['statusCounts']['rejected'] ?? 0 }}
Reversed
{{ $summary['statusCounts']['reversed'] ?? 0 }}
Net movement (Dr - Cr): ${{ number_format($summary['netMovement'] ?? 0, 2) }}
@endif
Supplier Journal Entries
@foreach($journalEntries as $entry) @php $debit = (float) ($entry->dr ?? 0); $credit = (float) ($entry->cr ?? 0); @endphp @endforeach
Date Supplier Code Supplier Name Description Debit Credit Status Currency
{{ \Carbon\Carbon::parse($entry->date)->format('M d, Y') }} {{ $entry->supplier_code ?? 'N/A' }} {{ $entry->supplier_name ?? 'N/A' }} {{ $entry->narration }} {{ $debit > 0 ? '$' . number_format($debit, 2) : '-' }} {{ $credit > 0 ? '$' . number_format($credit, 2) : '-' }} {{ $entry->status ?? 'pending' }} {{ $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