@extends('accounts.layout.template') @section('content') @php if(empty(session()->get('jv_no'))){ session()->put('jv_no',temp_jv_no(Auth::id())); } @endphp
@foreach($students as $st) @endforeach
@foreach($teachers as $tc) @endforeach
@foreach($employees as $emp) @endforeach

Recent Voucher's

@foreach($recent_vouchers as $rv) @endforeach
Voucher No Type Amount Action
{{$rv->tr_no}} {{$rv->tr_from}} {{find_a_field('secondary_journals','sum(cr_amt)','jv_no='.$rv->jv_no)}}
@php $tr_from = "contra"; @endphp
{{ auto_complete_from_db('accounts_ledgers','ledger_id','ledger_name','ledger_id12',' group_id=1001 and parent is NULL and status="Active"') }}
@if(!empty($vouchers)) @php $total_dr=0.00; $total_cr=0.00; @endphp @foreach($vouchers as $vr) @php $total_dr+=$vr->dr_amt; $total_cr+=$vr->cr_amt; @endphp @endforeach @endif
Sl A/C Head Narration Debit Amount Credit Amount Action
{{$loop->index+1}} {{find_a_field('accounts_ledgers','ledger_name','ledger_id='.$vr->ledger_id)}} {{$vr->narration}} {{$vr->dr_amt}} {{$vr->cr_amt}}
Total : {{$total_dr}} {{$total_cr}}
@endsection