@if (isset($data['fee_master']) && $data['fee_master']->count() > 0) @php($i=1) @foreach($data['fee_master'] as $feemaster) @if (isset($data['fee_collection']) && $data['fee_collection']->count() > 0) @php($j=1) @foreach($data['fee_collection'] as $fee_collection) @if($fee_collection->fee_masters_id == $feemaster->id) {{-- --}} {{----}} @php($j++) @endif @endforeach @endif @php($i++) @endforeach @endif
S.No. {{__('form_fields.student.fields.semester')}} FeeHead DueDate Amount Mode Date Di Fi Paid Balance Remark PayOnline
{{ $i }} {{ ViewHelper::getSemesterById($feemaster->semester) }} {{ $feeHead = ViewHelper::getFeeHeadById($feemaster->fee_head) }} {{ \Carbon\Carbon::parse($feemaster->fee_due_date)->format('Y-m-d')}} {{ $feemaster->fee_amount }} {{ $feemaster->feeCollect()->sum('discount')?$feemaster->feeCollect()->sum('discount'):"-" }} {{ $feemaster->feeCollect()->sum('fine')?$feemaster->feeCollect()->sum('fine'):'-' }} {{ $feemaster->feeCollect()->sum('paid_amount')?$feemaster->feeCollect()->sum('paid_amount'):'-' }} @php($net_balance = ($feemaster->fee_amount - ($feemaster->feeCollect()->sum('paid_amount') + $feemaster->feeCollect()->sum('discount')))+ $feemaster->feeCollect()->sum('fine')) {{ $net_balance?$net_balance:'-' }} @if($net_balance == 0) Paid @elseif($net_balance < 0 ) Negative @elseif($net_balance < $feemaster->fee_amount) Partial @else Due @endif @if($net_balance > 0 && is_int($net_balance)) {{--@include('account.fees.payment.online-payment')--}} {!! Form::open(['route' => 'account.fees.khalti-payment','method' => 'post', 'class' => 'form-horizontal', "enctype" => "multipart/form-data"]) !!} {!! Form::hidden('student_id', encrypt($data['student']->id)) !!} {!! Form::hidden('fee_head', encrypt($feeHead)) !!} {!! Form::hidden('amount', encrypt($net_balance)) !!} {!! Form::hidden('website_url', encrypt($generalSetting->website)) !!} {!! Form::hidden('return_url', encrypt(route('account.fees.khalti-payment-success'))) !!} {{--Request::fullUrl()--}} {!! Form::close() !!} @endif
{{ $fee_collection->payment_mode }} {{ \Carbon\Carbon::parse()->format('Y-m-d')}} {{ $fee_collection->discount?$fee_collection->discount:'-' }} {{ $fee_collection->fine?$fee_collection->fine:'-' }} {{ $fee_collection->paid_amount?$fee_collection->paid_amount:'-' }} {{ $fee_collection->note }}
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:'-' }} @if($data['student']->balance == 0) Paid @elseif($data['student']->balance < 0 ) Negative @elseif($data['student']->balance < $data['student']->fee_amount) Partial @else Due @endif