@extends('layouts.app') @section('title','Receipt Vouchers') @section('pages')
@php $tdsAmount = 0; $ids= []; $tdsLastId=''; @endphp @if(isset($data->accountReceiptTransaction)) @foreach($data->accountReceiptTransaction as $lists) @if($lists->account_id==$accounting_tds->id) @php $tdsAmount = trim($lists->amount); $tdsLastId = $lists->id; @endphp @endif @php $ids[] = $lists->account_id; @endphp @endforeach @endif @php $expensesAmount = 0; $expensesLastId=''; @endphp @foreach($accounting_expenses as $keys => $list) @if(isset($list->chart_of_expanses)) @foreach($list->chart_of_expanses as $value) @if(isset($data->accountReceiptTransaction)) @foreach($data->accountReceiptTransaction as $lists) @if($value->id==$lists->account_id) @php $expensesAmount = trim($lists->amount); $expensesLastId = $lists->id; @endphp @endif @endforeach @endif @endforeach @endif @endforeach @csrf
@if(!isset($redirect) || $redirect != 'lab-billings')
    @else
      @endif

      0?'checked':'' !!} value="{!! isset($tdsAmount) && $tdsAmount>0?1:0 !!}">
      0?'checked':'' !!} value="{!! isset($expensesAmount) && $expensesAmount>0?1:0 !!}">

      @php $collection_amount = $sale_invoice->billing_amount - $sale_invoice->discount_amount-$totalReturn; @endphp @php $ids = []; $lastKey = 0; $totalAmount = 0; @endphp @foreach($accounting_group as $key => $list) @php $lastKey++; @endphp @endforeach @foreach($accounting_expenses as $keys => $list) @endforeach
      Sr No. Transaction Mode Receive Mode Transaction Referrence Amount
      {{ $key + 1 }} {{$list->name ?? ''}} @php $pAmount = 0;$lastId=""; @endphp @if(isset($data->accountReceiptTransaction)) @foreach($data->accountReceiptTransaction as $lists) @if($lists->account_id==$list->id) @php $pAmount = trim($lists->amount); $lastId = $lists->id; $totalAmount+=$pAmount; @endphp @endif @endforeach @endif
      {!! isset($tdsAmount) && $tdsAmount>0?'3':'' !!} {{$accounting_tds->name ?? ''}}
      @if($tdsAmount>0 && $expensesAmount>0) 4 @elseif($tdsAmount>0) 3 @endif {{$list->name ?? ''}}
      Total Received
      Total Due
      @endsection @section('js') @endsection