@extends('layouts.app') @section('title', 'Ledger '.$account->code) @section('subtitle', $account->name) @section('content') Ledgers @if (auth()->user()->hasPermission('accounting.manage')) Edit account @endif
{{ $account->description ?? 'All posted entries affecting this account.' }}

Posted entries

@forelse ($rows as $row) @empty @endforelse
Date Entry Description Debit Credit Balance
Opening balance {{ money($opening) }}
{{ $row['line']->entry->date->format('j M Y') }} {{ $row['line']->entry->entry_number }}
{{ $row['line']->description ?? $row['line']->entry->description }}
{{ $row['line']->entry->journalLabel() }}@if ($row['line']->entry->reference) · {{ $row['line']->entry->reference }} @endif
{{ $row['debit'] > 0 ? money($row['debit']) : '—' }} {{ $row['credit'] > 0 ? money($row['credit']) : '—' }} {{ money($row['balance']) }}
Totals {{ money($debits) }} {{ money($credits) }} {{ money($closing) }}
@endsection