@extends('layouts.adminapp') @section('content') @section('head',__('lng.DayBookPrint'))
@include('PrintHeader.header')

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

{{-- @php $si=$TotalDebit=$TotalCredit=0; @endphp --}} @php $si=0; @endphp @foreach($arrays as $array) @php $value = date("m-d-Y",strtotime($array['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.Customer')}} {{__('lng.Phone')}} {{__('lng.Pending')}} {{__('lng.PaidAmount')}} {{__('lng.LastPaidDate')}} {{__('lng.Narration')}}
{{++$si}} {{ $array['customer']}} {{$array['phone']}} {{$array['pending']}} {{$array['amount']}} {{$value}} {{$array['narration']}}
Total @currency($TotalDebit) @currency($TotalCredit)
{{__('lng.ClosingBalance')}} @if ($TotalDebit - $TotalCredit >= 0) @currency($TotalDebit - $TotalCredit) DR @else @currency(abs($TotalDebit - $TotalCredit)) CR @endif
@endsection