@include('layouts.includes.template_setting')
@include('print.student-fee.includes.print-header')
@include('print.student-fee.includes.institution-detail')
MASTER FEE - LEDGER

@include('print.student-fee.includes.studentinfo')
@if($data['fee_master']) @php($i=1) @if($data['fee_master']->feeCollect ) @foreach($data['fee_master']->feeCollect as $feeCollection) @endforeach @endif @endif
Head Due Date Amount Date Di Fi Paid Balance
{{ $i }} {{ ViewHelper::getSemesterById($data['fee_master']->semester) }} {{ ViewHelper::getFeeHeadById($data['fee_master']->fee_head) }} {{ \Carbon\Carbon::parse($data['fee_master']->fee_due_date)->format('Y-m-d') }} {{ $amount = $data['fee_master']->fee_amount }} {{ $paid = $data['fee_master']->feeCollect->sum('paid_amount') }} @php($balance = $amount - $paid) {{ $balance > 0?$balance:'-' }}
{{ \Carbon\Carbon::parse($feeCollection->date)->format('Y-m-d')}} {{ $feeCollection->discount?$feeCollection->discount:'-' }} {{ $feeCollection->fine?$feeCollection->fine:"-" }} {{ $feeCollection->paid_amount?$feeCollection->paid_amount:'-' }}
Total :{{$paid}}/-
In Word: {{ ViewHelper::convertNumberToWord($paid) }}only.
@if(isset($generalSetting->print_footer))
{!! $generalSetting->print_footer !!}
@endif