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

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

@include('PrintHeader.header')

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

{{ __('lng.FromDate') }}: {{ date('d-m-Y', strtotime($From)) }}, {{ __('lng.ToDate') }}: {{ date('d-m-Y', strtotime($To)) }},
@php $si=$TotalDebit=$TotalCredit=0; @endphp @foreach ($LedgerPostings as $LedgerPosting) @php $DTs = date("d-m-Y",strtotime($LedgerPosting->date)); @endphp @php $TotalDebit += $LedgerPosting->debit; $TotalCredit += $LedgerPosting->credit; @endphp @endforeach
{{ __('lng.SiNo') }} {{ __('lng.Date') }} {{ __('lng.VoucherType') }} {{ __('lng.VoucherNumber') }} {{ __('lng.Ledger') }} {{ __('lng.Debit') }} {{ __('lng.Credit') }}
{{ ++$si }} {{ $DTs }} {{ $LedgerPosting->vouchertype->title }} {{ $LedgerPosting->vouchernumber }} {{ $LedgerPosting->accountledger->title }} @currency($LedgerPosting->debit) @currency($LedgerPosting->credit)
Total @currency($TotalDebit) @currency($TotalCredit)
{{ __('lng.Back') }}
@endsection