{{ $journalEntry->getJournalEntry->journal_date }} |
{{ $journalEntry->getChartOfAccount->name }} |
@if($journalEntry->journal_type()->count() > 0)
@if($journalEntry->journal_type->type == \App\Models\JournalEntryType::IS_SUPPLIER)
{{$journalEntry->journal_type->supplier->name}} |
@elseif($journalEntry->journal_type->type == \App\Models\JournalEntryType::IS_USER)
{{$journalEntry->journal_type->user->name}} |
@elseif($journalEntry->journal_type->type == \App\Models\JournalEntryType::IS_PAYMENT_METHOD)
{{$journalEntry->journal_type->paymentMethod->name}} |
@elseif($journalEntry->journal_type->type == \App\Models\JournalEntryType::IS_PURCHASE_TYPE)
{{$journalEntry->journal_type->purchaseType->name}} |
@elseif($journalEntry->journal_type->type == \App\Models\JournalEntryType::VAT_TYPE)
{{$journalEntry->journal_type->type_id == \App\Models\JournalEntryType::IS_INPUT ? "VAT - Incoming": "VAT - Outgoing" }} |
@else
|
@endif
@else
|
@endif
{{__('messages.journalEntry')}} |
{{ $journalEntry->comment }} |
{{ $journalEntry->getJournalEntry->entry_no }} |
{{ $journalEntry->debit }} |
{{ $journalEntry->credit }} |
@if($journalEntry->debit != '0.00')
@php
$opening_balance += $journalEntry->debit;
$total_debit += $journalEntry->debit;
$opening_balance;
Log::channel('test_log')->info("INSIDE DebitTotal: {$opening_balance}");
@endphp
@else
@php
$opening_balance -= $journalEntry->credit;
$total_credit += $journalEntry->credit;
$opening_balance;
Log::channel('test_log')->info("INSIDE CreditTotal: {$opening_balance}");
@endphp
@endif
|
@endforeach