@extends('layouts.app') @section('title', $entry->number()) @section('content') @php($debit = (float) $entry->lines->sum('debit')) @if ($entry->isManual()) @can('ledger.manage') Edit @endcan @can('ledger.manage') @endcan @elseif ($entry->sourceUrl()) Open {{ strtolower($entry->sourceLabel()) }} @endif @if ($lock)
{{ $lock }}
@endif
Details Balanced
Entry
{{ $entry->number() }}
Date
{{ $entry->entry_date->format('d M Y') }}
Source
{{ $entry->sourceLabel() }}
Reference
@if ($entry->sourceUrl() && ! $entry->isManual()){{ $entry->reference ?: 'Open' }}@else{{ $entry->reference ?: 'โ€”' }}@endif
Description
{{ $entry->memo }}
Amount
{{ money($debit) }}
@if ($entry->author)
Entered by
{{ $entry->author->name }}
@endif
Last posted
{{ $entry->updated_at->format('d M Y, H:i') }}
@unless ($entry->isManual())

Posted automatically. If you change the {{ strtolower($entry->sourceLabel()) }}, this entry updates itself.

@endunless
Lines
@foreach ($entry->lines as $l) @endforeach
AccountPartyMemoDebitCreditRec.
{{ $l->account->label() }} @if ($l->client){{ $l->client->name }}@elseif ($l->vendor){{ $l->vendor->name }}@else โ€” @endif {{ $l->memo ?: 'โ€”' }} {{ $l->debit > 0 ? money($l->debit) : '' }} {{ $l->credit > 0 ? money($l->credit) : '' }} @if ($l->reconciliation_id)Reconciled@endif
Totals{{ money($debit) }}{{ money($entry->lines->sum('credit')) }}
@endsection