@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 $i=$TotalDebit=$TotalCredit=0; @endphp @foreach ($AccountLedgers as $AccountLedger) @php $TotalDebit += $AccountLedger->debited; $TotalCredit += $AccountLedger->credited; @endphp @endforeach
{{ App\Models\AccountLedger::find($AccountLedger->LedgerID)->title ?? '' }} @currency($AccountLedger->debited) @currency($AccountLedger->credited)
{{ __('lng.Total') }} @currency($TotalDebit) @currency($TotalCredit)
{{ __('lng.Balance') }} @if ($TotalCredit - $TotalDebit >= 0) @currency($TotalCredit - $TotalDebit) {{ __('lng.CR') }} @else @currency(abs($TotalCredit - $TotalDebit)) {{ __('lng.DR') }} @endif
{{ __('lng.Back') }}
@endsection