@extends('dashboard.layouts.app') @section('content') @php $totalDebit = 0; $totalCredit = 0; @endphp
Registered on {{ $journalEntry->date->format('M d, Y') }}
{{ $journalEntry->description ?: 'No description provided.' }}
Debit and credit breakdown for this journal entry.
| Account Details | Debit | Credit |
|---|---|---|
|
{{ $line->account->title }}
Code: {{ $line->account->code }}
@if(in_array((int) $line->account_id, $receivableAccountIds ?? [], true) && $displayPartyName)
Party: {{ $displayPartyName }}
@if($displayPartyType)
({{ ucfirst($displayPartyType) }})
@endif
@endif
@if($line->costCenter)
@endif
|
@if($line->debit > 0) {{ number_format($line->debit, 2) }} {{ $journalEntry->currency ?? '' }} @else - @endif | @if($line->credit > 0) {{ number_format($line->credit, 2) }} {{ $journalEntry->currency ?? '' }} @else - @endif |
| Grand Totals | {{ number_format($totalDebit, 2) }} {{ $journalEntry->currency ?? '' }} | {{ number_format($totalCredit, 2) }} {{ $journalEntry->currency ?? '' }} |