@include('layouts.includes.template_setting')
@include('print.includes.institution-detail')
Statement of Student Fee Ledger
@include('print.student-fee.includes.studentinfo')
{{--{{$data['student']->feeMaster}}--}} @if($data['fee_master'] && $data['fee_master']->count() > 0) @php($i=1) @foreach($data['fee_master'] as $feeMaster) @if($feeMaster->feeCollect ) @foreach($feeMaster->feeCollect as $feeCollection) @endforeach @endif @php($i++) @endforeach @else @endif
Head Due On Amount Date Di Fi Paid Balance
{{ $i }} {{ ViewHelper::getSemesterById($feeMaster->semester) }} {{ ViewHelper::getFeeHeadById($feeMaster->fee_head) }} {{ \Carbon\Carbon::parse($feeMaster->fee_due_date)->format('Y-m-d') }} {{ $amount = $feeMaster->fee_amount?$feeMaster->fee_amount:'' }} @php($fmDiscount = $feeMaster->feeCollect()->sum('discount')) {{($fmDiscount >0)?$fmDiscount:''}} @php($fmFine = $feeMaster->feeCollect()->sum('fine')) {{($fmFine >0)?$fmFine:''}} @php($paid = $feeMaster->feeCollect->sum('paid_amount')) {{ $paid?$paid:'' }} @php($balance = ($feeMaster->fee_amount + $fmFine) - ($paid + $fmDiscount)) {{ $balance?$balance:'PAID' }}
{{ \Carbon\Carbon::parse($feeCollection->date)->format('Y-m-d')}} {{ $feeCollection->discount?$feeCollection->discount:'' }} {{ $feeCollection->fine?$feeCollection->fine:"" }} {{ $feeCollection->paid_amount?$feeCollection->paid_amount:'' }}
Total {{ $data['fee_master']->fee_amount?$data['fee_master']->fee_amount:'' }} {{ $data['fee_master']->discount?$data['fee_master']->discount:'' }} {{ $data['fee_master']->fine?$data['fee_master']->fine:'' }} {{ $data['fee_master']->paid_amount?$data['fee_master']->paid_amount:'' }} {{ $data['fee_master']->balance?$data['fee_master']->balance:'' }}
Total :{{$data['fee_master']->paid_amount}}/-
In Word: {{ ViewHelper::convertNumberToWord($data['fee_master']->paid_amount) }}only.
@if($data['fee_master']->balance > 0)
Total Balance :{{$data['fee_master']->balance }}/-
Balance In Word: {{ ViewHelper::convertNumberToWord($data['fee_master']->balance ) }}only.
@endif @include('print.student-fee.includes.print-footer')