@extends('layouts.app') @section('title','Receipt Vouchers') @section('pages')
@csrf
@if(!isset($redirect) || $redirect != 'lab-billings')
    @endif
    {{--
      --}}
      @if(isset($redirect) && $redirect == 'lab-billings') @php $collection_amount = $sale_invoice->billing_amount - $sale_invoice->discount_amount; @endphp @endif @php $ids = []; @endphp @foreach($creditTransaction as $key => $list) @php $ids[$list->account_id] = $list->account_id; @endphp @endforeach @php $accounting_group_first = 1; @endphp @foreach($accounting_group as $key => $list) @if(in_array($list->id, $ids)) @php continue; @endphp @endif @if($accounting_group_first == 1) @php $accounting_group_first = 0; @endphp @else @endif @endforeach @if(isset($redirect) && $redirect == 'lab-billings') @endif
      #
      Billing Amount
      {!! convertDecimelPoint($sale_invoice->billing_amount) !!}
      Adjusted Amount
      {!! convertDecimelPoint($sale_invoice->discount_amount) !!}
      Collection Amount
      {!! convertDecimelPoint($collection_amount) !!}
      Sr No. Transaction Mode Payment Mode Transaction Referrence Amount
      {{ $key + 1 }} {{ $list->account->name ?? ''}}
      {{ $key + 1 }} {{$list->name ?? ''}}
      Total Paid
      Total Paid
      Total Due
      @endsection @section('js') @endsection