@extends('admin.layout.master') @section('title','VOUCHER DETAILS') @section('custom_style') @endsection @section ('content')
{!! $head !!} @php $transactionJournals=$transactions->journals->where('amount','>',0); $da=0; $ca=0; @endphp
{{__('obs.particulars')}} {{__('obs.debit')}} {{__('obs.credit')}}
Account :
    @forelse ($transactionJournals->where('type',0) as $jr)
  • {{-- {{ $jr->ledger?$jr->globalLedger->name:'-' }} --}} @include('accounts.components.redirect_to_ledger_view', [ 'label' => ($jr->ledger?$jr->globalLedger->name:'-'), 'ledger_id' => $jr->ledger_id, 'date' => $jr->date ]) @if($jr->refLedger && ($jr->ledger_id!=$jr->reff_no)) {{' ( '.$jr->refLedger->name.' )'}} @endif {{ $jr->note }}
  • @empty @endforelse
To :
    @forelse ($transactionJournals->where('type',1) as $jr)
  • {{-- {{ $jr->ledger?$jr->globalLedger->name:'-' }} --}} @include('accounts.components.redirect_to_ledger_view', [ 'label' => ($jr->ledger?$jr->globalLedger->name:'-'), 'ledger_id' => $jr->ledger_id, 'date' => $jr->date ]) @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 ($transactionJournals 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 ($transactionJournals as $jr) @php if($jr->type==1){ $camount+=$jr->amount; $camountHtml.='
  • '.(number_format($jr->amount,2)).'
  • '; } @endphp @empty @endforelse
  •  
  • {!! $camountHtml !!}
{{__('obs.total_amount')}} : {{ number_format($amount,2)}} {{ number_format($camount,2)}}
{{__('obs.in_words')}} : {{getNumberInWords($amount)}} {{__('obs.taka_only')}}
@forelse ($transactionJournals->sortBy('type') as $jr) @php $da+=$jr->type==0?$jr->amount:0; $ca+=$jr->type==1?$jr->amount:0; @endphp @empty @endforelse
{{__('obs.accounts_code')}} {{__('obs.accounts_name')}} {{__('obs.debit')}} {{__('obs.credit')}}
{{ $jr->ledger?$jr->globalLedger->auto_code:'-' }} {{-- {{ $jr->ledger?$jr->globalLedger->name:'-' }} --}} @include('accounts.components.redirect_to_ledger_view', [ 'label' => ($jr->ledger?$jr->globalLedger->name:'-'), 'ledger_id' => $jr->ledger_id, 'date' => $jr->date ]) {{ $jr->note }} {{$jr->type==0?number_format($jr->amount,2):''}} {{$jr->type==1?number_format($jr->amount,2):''}}
{{__('obs.total_amount')}} : {{ number_format($da,2)}} {{ number_format($ca,2)}}
{{__('obs.in_words')}} : {{getNumberInWords($da)}} {{__('obs.taka_only')}}
{{__('obs.narration')}} : {{$transactions->note}}
{!! $foot !!} @if ($transactions->status == 0)
Not Approved
@endif
@endsection @section('script') @stop