@extends('admin.layout.master') @section('title','RECEIPT PAYMENT STATEMENT') @section('custom_style') @endsection @section ('content')
@php
$r_type=1;
$printData['start_date']=Request()->start_date?date('d-M-Y',strtotime(Request()->start_date)):date('d-M-Y');
$printData['end_date']=Request()->end_date?date('d-M-Y',strtotime(Request()->end_date)):date('d-M-Y');
// $printData['ledger_name']=count($ledgers->where('id',Request()->ledger_id))>0?$ledgers->where('id',Request()->ledger_id)->first()->name:'ledger not found';
$routeName=Route::currentRouteName();
$printData=getPrintData($routeName,$printData);
@endphp
{!!$printData['head']!!}
{{-- {{ (Request()->cost_center_id && Request()->cost_center_id!=0)?$cost_centers->where('id',Request()->cost_center_id)->first()->name : 'All Cost Center' }}RECEIPT & PAYMENT ACCOUNT{{ 'From '.date('d-M-Y',strtotime(Request()->start_date)).' To '.date('d-M-Y',strtotime(Request()->end_date))}}--}} |
Amount | {{--||
|---|---|---|---|
| RECEIPT | |||
| OPENING BALANCE: | @ {{Request()->start_date?date('d-M-Y',strtotime(Request()->start_date)):''}} | ||
| CASH & CASH EQUIVALENTS | |||
| CASH IN HAND: | |||
| {{ $cash->name_eng }} | @if(array_key_exists($cash->account_id,$ledgerWiseBeginningBalanced)) @if($r_type) {{($ledgerWiseBeginningBalanced[$cash->account_id]['amount']<0)?number_format(abs($ledgerWiseBeginningBalanced[$cash->account_id]['amount']),2).' (cr)':number_format($ledgerWiseBeginningBalanced[$cash->account_id]['amount'],2)}} @else {{($ledgerWiseBeginningBalanced[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseBeginningBalanced[$cash->account_id]['amount']),2).')':number_format($ledgerWiseBeginningBalanced[$cash->account_id]['amount'],2)}} @endif @else {{number_format(0,2)}} @endif | ||
| CASH AT BANK: | |||
| {{$cash->name_eng}} | @if(array_key_exists($cash->account_id,$ledgerWiseBeginningBalanced)) @if($r_type) {{($ledgerWiseBeginningBalanced[$cash->account_id]['amount']<0)?number_format(abs($ledgerWiseBeginningBalanced[$cash->account_id]['amount']),2).' (cr)':number_format($ledgerWiseBeginningBalanced[$cash->account_id]['amount'],2)}} @else {{($ledgerWiseBeginningBalanced[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseBeginningBalanced[$cash->account_id]['amount']),2).')':number_format($ledgerWiseBeginningBalanced[$cash->account_id]['amount'],2)}} @endif {{-- {{($ledgerWiseBeginningBalanced[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseBeginningBalanced[$cash->account_id]['amount']),2).')':number_format($ledgerWiseBeginningBalanced[$cash->account_id]['amount'],2)}} --}} @else {{number_format(0,2)}} @endif | ||
| Receipts: | --}}RECEIPT | ||
| {{count($ledgers->where('id',$m))?$ledgers->where('id',$m)->first()->name:'N/A'}} | {{number_format(abs($receipt['amount']),2)}} | @php $total_receipt+=abs($receipt['amount']); @endphp||
| TOTAL RECEIPTS: | {{number_format($total_receipt,2)}} | ||
| PAYMENT: | |||
| {{count($ledgers->where('id',$m))?$ledgers->where('id',$m)->first()->name:'N/A'}} | {{number_format($receipt['amount'],2)}} | @php $total_payment+=$receipt['amount']; @endphp | |
| TOTAL PAYMENTS: | ( {{number_format($total_payment,2)}} ) | ||
| CLOSING BALANCE: | @ {{Request()->end_date?date('d-M-Y',strtotime(Request()->end_date)):''}} | ||
| CASH & CASH EQUIVALENTS | |||
| CASH IN HAND: | |||
| {{$cash->name_eng}} | @if(array_key_exists($cash->account_id,$ledgerWiseEndingBalance)) @if($r_type) {{($ledgerWiseEndingBalance[$cash->account_id]['amount']<0)?number_format(abs($ledgerWiseEndingBalance[$cash->account_id]['amount']),2).' (cr)':number_format($ledgerWiseEndingBalance[$cash->account_id]['amount'],2)}} @else {{($ledgerWiseEndingBalance[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseEndingBalance[$cash->account_id]['amount']),2).')':number_format($ledgerWiseEndingBalance[$cash->account_id]['amount'],2)}} @endif {{-- {{($ledgerWiseEndingBalance[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseEndingBalance[$cash->account_id]['amount']),2).')':number_format($ledgerWiseEndingBalance[$cash->account_id]['amount'],2)}} --}} @else {{number_format(0,2)}} @endif | ||
| CASH AT BANK: | |||
| {{$cash->name_eng}} | @if(array_key_exists($cash->account_id,$ledgerWiseEndingBalance)) @if($r_type) {{($ledgerWiseEndingBalance[$cash->account_id]['amount']<0)?number_format(abs($ledgerWiseEndingBalance[$cash->account_id]['amount']),2).' (cr)':number_format($ledgerWiseEndingBalance[$cash->account_id]['amount'],2)}} @else {{($ledgerWiseEndingBalance[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseEndingBalance[$cash->account_id]['amount']),2).')':number_format($ledgerWiseEndingBalance[$cash->account_id]['amount'],2)}} @endif {{-- {{($ledgerWiseEndingBalance[$cash->account_id]['amount']<0)?'('.number_format(abs($ledgerWiseEndingBalance[$cash->account_id]['amount']),2).')':number_format($ledgerWiseEndingBalance[$cash->account_id]['amount'],2)}} --}} @else {{number_format(0,2)}} @endif | ||