@extends('admin.layout.master') @section('title','VOUCHER DETAILS') @section('custom_style') @endsection @section ('content')
{!! $head !!}
Particulars Debit Credit
Account :
    @forelse ($transactions->journals->where('type',0) as $jr)
  • {{ $jr->ledger?$jr->globalLedger->name:'-' }} @if($jr->refLedger && ($jr->ledger_id!=$jr->reff_no)) {{' ( '.$jr->refLedger->name.' )'}} @endif {{ $jr->note }}
  • @empty @endforelse
To :
    @forelse ($transactions->journals->where('type',1) as $jr)
  • {{ $jr->ledger?$jr->globalLedger->name:'-' }} @if($jr->refLedger) {{' ( '.$jr->refLedger->name.' )'}} @endif {{ $jr->note }}
  • @empty @endforelse
On Account of :
  • {{$transactions->note}}

    @php $amount=0; $amountHtml=''; $camount=0; $camountHtml=''; $c_blank_amountHtml=''; @endphp @forelse ($transactions->journals as $jr) @php if($jr->type==0){ $amount+=$jr->amount; $amountHtml.='
  • '.(number_format($jr->amount,2)).'
  • '; $c_blank_amountHtml.='
  •  
  • '; } @endphp @empty @endforelse {!! $amountHtml !!}


    @php $camountHtml.=$c_blank_amountHtml; @endphp @forelse ($transactions->journals as $jr) @php if($jr->type==1){ $camount+=$jr->amount; $camountHtml.='
  • '.(number_format($jr->amount,2)).'
  • '; } @endphp @empty @endforelse
  •  
  • {!! $camountHtml !!}
Total Amount : {{ number_format($amount,2)}} {{ number_format($camount,2)}}
In Words : {{getNumberInWords($amount)}}
{!! $foot !!}
@endsection @section('script') @stop