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

Journal Processing

Back to Processing Modules
Recent Journal Entries
@forelse($entries as $entry) @php $typeKey = strtolower($entry['type'] ?? ''); $badgeClass = match ($typeKey) { 'client' => 'bg-primary', 'supplier' => 'bg-success', 'general' => 'bg-warning', default => 'bg-secondary', }; $statusClass = match (strtolower($entry['status'] ?? '')) { 'processed', 'approved', 'posted' => 'bg-success', 'pending' => 'bg-warning text-dark', 'rejected', 'reversed' => 'bg-danger', default => 'bg-secondary', }; @endphp @empty @endforelse
Date Type Account Code Description Reference Debit Credit Status Actions
{{ \Illuminate\Support\Carbon::parse($entry['date'])->format('d/m/Y') }} {{ $entry['type'] ?? 'N/A' }} {{ $entry['account_code'] ?? '—' }} {{ $entry['description'] ?? '—' }} {{ $entry['reference'] ?? '—' }} {{ $entry['debit'] ?? '-' }} {{ $entry['credit'] ?? '-' }} {{ ucfirst($entry['status'] ?? 'n/a') }}
No journal entries found.

Showing {{ count($entries ?? []) }} of {{ count($entries ?? []) }} entries

@endsection