@extends('layouts.master') @section('title', $title) @section('content')
@csrf
{{ __('required_field') }} Transaction Date
@if (!isset($journalEntry->JournalItem)) @else @php $ctr = 0; $total_debit = 0; $total_credit = 0; @endphp @foreach (isset($journalEntry->JournalItem) ? $journalEntry->JournalItem : [] as $item) @if ($item->credit == 0) @else @endif @if ($item->debit == 0) @else @endif @php $total_credit += isset($item->credit) ? $item->credit : 0; $total_debit += isset($item->debit) ? $item->debit : 0; @endphp @endforeach @endif
# Account Debit Credit Description
1
{{ $ctr++ }}
    {{ __('Total Credit') }} {{ isset($total_credit) ? $total_credit : 0.0 }}
      {{ __('Total Debit') }} {{ isset($total_debit) ? $total_debit : 0.0 }}
@endsection @section('page_js') @endsection