@extends('layouts.app') @section('title', $account->name) @section('content') @can('ledger.manage') Edit @endcan @include('reports._range', ['export' => true])
@foreach ([['Opening balance', $opening, ''], ['Debits', $debit, ''], ['Credits', $credit, ''], ['Closing balance', $closing, $closing < 0 ? 'text-danger' : '']] as [$label, $value, $class])
{{ $label }}
{{ money($value) }}
@endforeach
@forelse ($lines as $l) @empty @endforelse
DateEntryReferencePartyDescriptionDebitCreditBalanceRec.
Opening balance{{ money($opening) }}
{{ $l->entry_date->format('d M Y') }} {{ $l->entry->number() }} {{ $l->entry->reference ?: '—' }} {{ $l->partyName() ?: '—' }} {{ $l->memo ?: $l->entry->memo }} {{ $l->debit > 0 ? money($l->debit) : '' }} {{ $l->credit > 0 ? money($l->credit) : '' }} {{ money($l->running) }} @if ($l->reconciliation_id)Reconciled@endif
Totals · closing balance{{ money($debit) }}{{ money($credit) }}{{ money($closing) }}
@endsection