@extends('layouts.app')
@section('title', 'Ledger '.$account->code)
@section('subtitle', $account->name)
@section('content')
| 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) }} | ||