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

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

@include('PrintHeader.header')

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

{{ __('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.OpeningBalance') }} @if ($OpeningBalance >= 0) @currency($OpeningBalance) DR @php $TotalDebit = $OpeningBalance; @endphp @else @currency(abs($OpeningBalance)) CR @php $TotalCredit = abs($OpeningBalance); @endphp @endif
{{ __('lng.SiNo') }} {{ __('lng.Date') }} {{ __('lng.Invoice') }} {{ __('lng.VoucherType') }} {{ __('lng.VoucherNumber') }} {{ __('lng.Ledger') }} {{ __('lng.Debit') }} {{ __('lng.Credit') }}
{{ ++$si }} {{ $DTs }} {{ $LedgerPosting->invoicenumber }} {{ $LedgerPosting->vouchertype->title }} {{ $LedgerPosting->vouchernumber }} {{ $LedgerPosting->accountledger->title }} @currency($LedgerPosting->debit) @currency($LedgerPosting->credit)
Total @currency($TotalDebit) @currency($TotalCredit)
{{ __('lng.ClosingBalance') }} @if ($TotalDebit - $TotalCredit >= 0) @currency($TotalDebit - $TotalCredit) DR @else @currency(abs($TotalDebit - $TotalCredit)) CR @endif
{{ __('lng.Back') }}
@endsection