@extends('layouts.adminapp') @section('content') {{-- Day Book --}}

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

{{--
--}}
{{__('lng.ReportTable')}}
@php $si=$TotalDebit=$TotalCredit=0; @endphp @foreach ($LedgerPostingsPagination as $LedgerPosting) @php $DTs = date("d-m-Y",strtotime($LedgerPosting->date)); @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)
{{$LedgerPostingsPagination->appends($_GET)->links()}}
{{--END DAY BOOK DATA SECTION --}}
@foreach ($LedgerPostings as $Amount) @php $TotalDebit += $Amount->debit; $TotalCredit += $Amount->credit; @endphp @endforeach
{{__('lng.TotalDebit')}} @currency($TotalDebit) {{__('lng.TotalCredit')}} @currency($TotalCredit)
{{ __('lng.ClosingBalance') }} @if ($TotalDebit - $TotalCredit >= 0) @currency($TotalDebit - $TotalCredit) DR @else @currency(abs($TotalDebit - $TotalCredit)) CR @endif
{{--START DAY BOOK PRINT AND EXPORT SECTION --}} {{--END DAY BOOK PRINT AND EXPORT SECTION --}}
{{-- --}} @endsection