@extends('admin.layout.master') @section('title','VOUCHER MANAGEMENT') @section('custom_style') @endsection @section ('content') @php $cashSl=1000; $discountSl=2000; $isBankOrCash=in_array($voucher_type['type'],[2,4])?1:0; $isPaymentOrReceipt=in_array($voucher_type['type'],[3,4])?1:0; //check receipt $skipJrLedgerIds=[]; if(isset($transactions) && $voucher_type['type']<5){ $cashJournal=$transactions->journals->where('ledger_id',$transactions->reff_ledger_id)->first(); $disCountJournal=$transactions->journals->where('ledger_id',"!=",$transactions->reff_ledger_id)->where('type',$isPaymentOrReceipt?0:1)->first(); // dd($cashJournal); if($cashJournal){ array_push($skipJrLedgerIds,$cashJournal->ledger_id); } if($disCountJournal){ array_push($skipJrLedgerIds,$disCountJournal->ledger_id); } } @endphp
| # | Group | Particulars | {{-- @if($voucher_type['type']<5)Note | @endif --}}C.Center | {{($voucher_type['type']<5)?'Amount':'Debit'}} | @if($voucher_type['type']==5)Credit | @endif|
|---|---|---|---|---|---|---|---|
| {{$i}} |
|
|
|
@if($voucher_type['type']==5)
|
@endif
|||
| {{$i}} |
|
|
|
@if($voucher_type['type']==5)
|
@endif