@extends('layouts.app') @php($canManage = auth()->user()->hasPermission('accounting.manage')) @section('title', 'Journals') @section('subtitle', 'Books of original entry') @section('content') Accounts Cash book @if ($canManage) Post entry @endif
@forelse ($entries as $entry) @empty @endforelse
Entry Date Journal Description Reference Debits Credits Status By
{{ $entry->entry_number }} {{ $entry->date->format('j M Y') }} {{ $entry->journalLabel() }}
{{ $entry->description }}
@if ($entry->source_type)
Auto-posted
@endif
{{ $entry->reference ?? '—' }} {{ money($entry->debit_total) }} {{ money($entry->credit_total) }} {{ \App\Models\JournalEntry::STATUSES[$entry->status] ?? ucfirst($entry->status) }} {{ $entry->creator?->name ?? 'System' }}
@if ($entries->hasPages())
{{ $entries->links() }}
@endif
@endsection