@extends('layouts.adminapp') @section('title') {{ __('lng.TrialBalance') }} - {{ __('lng.Print') }} @endsection @section('active_report', 'active') @section('open_report', 'open') @section('open_account', 'open') @section('active_account', 'active') @section('trial_balance', 'active') @section('content')

{{ __('lng.Print') }}

@include('PrintHeader.header')

{{ __('lng.TrialBalance') }}

@php $currentGroup = ''; $totalDebit = 0; $totalCredit = 0; @endphp @foreach ($AccountLedgers as $row) @if ($currentGroup != $row->GroupName) @php $currentGroup = $row->GroupName; @endphp @endif @php $totalDebit += $row->debited; $totalCredit += $row->credited; @endphp @endforeach
{{ __('lng.Group') }} {{ __('lng.Ledger') }} {{ __('lng.Debit') }} {{ __('lng.Credit') }}
{{ $row->GroupName }}
{{ $row->LedgerName }} @currency($row->debited) @currency($row->credited)
{{ __('lng.Total') }} @currency($totalDebit) @currency($totalCredit)
Balance @if ($totalDebit - $totalCredit >= 0) @currency(abs($totalDebit - $totalCredit)) {{ __('lng.DR') }} @else @currency(abs($totalDebit - $totalCredit)) {{ __('lng.CR') }} @endif
{{ __('lng.Back') }}
@endsection