@extends('layouts.app') @section('title', 'General ledger') @section('content')

General ledger

{{ $entries->total() }} journal entr{{ $entries->total() === 1 ? 'y' : 'ies' }} matching your filters.

Trial balance Chart of accounts + New entry
@include('components.kpi', ['label' => 'Posted entries', 'value' => (string) $totals['posted'], 'variant' => 'good']) @include('components.kpi', ['label' => 'Drafts', 'value' => (string) $totals['draft'], 'variant' => $totals['draft'] ? 'warn' : '']) @include('components.kpi', ['label' => 'Total debits', 'value' => money($totals['debits']), 'variant' => 'info'])
@if ($entries->isEmpty()) @include('components.empty-state', [ 'icon' => '📒', 'title' => 'No journal entries yet', 'message' => 'Automatic postings appear here when credit notes are applied and goods are received.', ]) @else @foreach ($entries as $entry) @endforeach
EntryDateDescriptionSource DebitCreditLinesStatus
{{ $entry->entry_number }} {{ $entry->entry_date?->format('d M Y') }} {{ \Illuminate\Support\Str::limit($entry->description, 60) }} {{ $entry->reference_type ? class_basename($entry->reference_type) : 'Manual' }} {{ money($entry->total_debit) }} {{ money($entry->total_credit) }} {{ $entry->lines->count() }} {{ title_case_words($entry->status) }} Open
@endif
@if ($entries->hasPages())
{{ $entries->links('partials.pagination') }}
@endif
@endsection