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

@include('print.student-fee.includes.studentinfo')
{{--{{$data['student']->feeMaster}}--}} @if($data['student']->feeMaster && $data['student']->feeMaster->count() > 0) @php($i=1) @foreach($data['student']->feeMaster as $feeMaster) @if($feeMaster->feeCollect ) @foreach($feeMaster->feeCollect as $feeCollection) @endforeach @endif @php($i++) @endforeach @else @endif
Head DueOn Amount Date Di Fi Paid Due
{{ $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['student']->fee_amount?$data['student']->fee_amount:'-' }} {{ $data['student']->discount?$data['student']->discount:'-' }} {{ $data['student']->fine?$data['student']->fine:'-' }} {{ $data['student']->paid_amount?$data['student']->paid_amount:'-' }} {{ $data['student']->balance?$data['student']->balance:'-' }}
Total :{{$data['student']->paid_amount}}/-
In Word: {{ ViewHelper::convertNumberToWord($data['student']->paid_amount) }}only.
Total Balance :{{$data['student']->balance }}/-
Balance In Word: {{ ViewHelper::convertNumberToWord($data['student']->balance ) }}only.
@include('print.student-fee.includes.print-footer')