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

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

@include('PrintHeader.header')

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

{{ __('lng.FromDate') }}: {{ date('d-m-Y', strtotime($From)) }}, {{ __('lng.ToDate') }}: {{ date('d-m-Y', strtotime($To)) }},
@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