@extends('layouts.adminapp') @section('content')
@include('PrintHeader.header')

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

@php $si=0; $Closing=0;@endphp @foreach($LedgerPostings as $LedgerPosting) @php $Closing= $LedgerPosting->DEBIT-$LedgerPosting->CREDIT; @endphp @endforeach
{{__('lng.SiNo')}} {{__('lng.AccountLedger')}} {{__('lng.OpeningBalance')}} {{__('lng.Debit')}} {{__('lng.Credit')}} {{__('lng.Closing')}}
{{++$si}} {{\App\Models\AccountLedger::find($LedgerPosting->ledger_id)->title}} {{\App\Models\AccountLedger::find($LedgerPosting->ledger_id)->openingbalance}} {{$LedgerPosting->DEBIT}} {{$LedgerPosting->CREDIT}} @if ($Closing<0) {{$Final=$Closing*-1}}CR @else {{$Closing}}DR @endif
@endsection