@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Admin | Fee Mangements @section('styles') @endsection @include('datepicker') @section('main-content')

Records / Fee Details

@if(session('success'))
{{ session('success') }}
@endif
@if(!isset($feedetails) && count($feedetails)) @foreach($feedetails as $feedetail) @if($feedetail->payment_status == 'Pending') @break {{-- Stop the loop if at least one payment has 'Pending' status --}} @endif @endforeach @endif
@if(isset($student->profile_photo_path)) user @else user @endif
Student Details
{{ isset($student->first_name)?ucwords($student->first_name):" " }} {{ isset($student->last_name)?ucwords($student->last_name):" " }}
{{ isset($student->gender)?ucwords($student->gender):" Gender not included yet " }}
{{ isset($student->dob)?(calculate_age($student->dob)."y/o ( ".dateformatter($student->dob)." )"):" Date of birth not include yet " }}
@if (isset($parent) && $parent!=null)
Parent Details
{{ isset($parent->first_name)?ucwords($parent->first_name):" " }} {{ isset($parent->last_name)?ucwords($parent->last_name):" " }}
{{ isset($parent->email)?ucwords($parent->email):" Mail not included yet " }}
{{ isset($parent->phone)?$parent->phone:" Mobile number not included yet " }}
{{ isset($parent->gender)?ucwords($parent->gender):" Gender not included yet " }}
{{ isset($parent->dob)?(calculate_age($parent->dob)."y/o ( ".dateformatter($parent->dob)." )"):" Date of birth not include yet " }}
@else

Parent information not available might be a old user.

@endif @if (isset($fee_history))
@endif
Class {{$feedetails->class_name}}
Duration 12 Months
Start Date 17-04-{{$year}}
End Date 18-03-{{$year+1}}
@if(!isset($fee_plans))
Fee plan for {{$feedetails->class_name}} not found.
@else {{-- --}} {{-- Only Show when there is some payment pending --}}
Fee plan for {{$feedetails->class_name}}
Class {{ $feedetails->class_name }}
Monthly ₹{{ $fee_plans->monthly_fee ? $fee_plans->monthly_fee : 0 }}
Quarterly ₹{{ $fee_plans->monthly_fee? 3*$fee_plans->monthly_fee : 0 }}
Semi Annual ₹{{ $fee_plans->monthly_fee? 6*$fee_plans->monthly_fee : 0 }}
Annual ₹{{ $fee_plans->monthly_fee? 12*$fee_plans->monthly_fee : 0 }}
Discount ₹{{ $fee_plans->discount? $fee_plans->discount : 0 }}
@if ($feedetails->remaining_fee!=0)
@endif @if ($additional_fee_charges) @endif
Select Plan
Want Transport Facility ?
@endif
@if (isset($upcoming_fee_list) && count($upcoming_fee_list)>0) @foreach ($upcoming_fee_list as $key=>$u_fee) @endforeach
Upcoming Payments
Class Dates Amount
{{$u_fee->class_name}} {{dateformatter($u_fee->next_payment_date)}} ₹{{$fee_plans->discounted_monthly_fee}}
Total Upcoming Amount: ₹{{$total_upcoming}}
@endif @if (isset($pending_fee_list) && count($pending_fee_list)>0) @foreach ($pending_fee_list as $key=>$p_fee) @endforeach
Pending Payments
Class Dates Due
{{$p_fee->class_name}} {{dateformatter($p_fee->next_payment_date)}} ₹{{$fee_plans->discounted_monthly_fee}}
Total Overdue: ₹{{$total_due}}
@endif @if(!$upcoming_fee_list && !$pending_fee_list)

Bravo! All bills Cleared.

@endif
@if (isset($fee_history) && count($fee_history)>0) @foreach ($fee_history as $ind => $fee_data) {{-- if(!$ind){ $remaining_fee = $feedetails->fullpayment - $fee_history[$ind]->total_amount; } else if($ind<$total_fee_history_count){ $remaining_fee = $remaining_fee - $fee_history[$ind]->total_amount; } --}} @if($fee_data->status==1) @elseif($fee_data->next_payment_datestatus==0) @else @endif @endforeach
Transaction History
Payment
Date
Class Mode Chosen
Plan
Tution Fee
Paid
Tranport Fee
Paid
Total
Amount Paid
Tution Fee
Pending
Status Payments
Recieved
{{date('d-m-y',strtotime($fee_data->fee_paid_on))}} {{$fee_data->class_name}} @if ($fee_data->payment_mode==1) Online @else Offline @endif @if ($fee_data->payment_type==0) Monthly @elseif($fee_data->payment_type==1) Quarterly @elseif($fee_data->payment_type==2) Semi Annual @elseif($fee_data->payment_type==3) Annual @endif ₹{{$fee_data->total_amount}}₹{{$fee_data->transport_charges}} ₹{{$fee_data->total_amount}} ₹{{$remaining_fee_student}}DoneLatePending @if ($fee_data->start_date==$fee_data->end_date) Jan 70 @else Jan 70 - Jan 70 @endif
@else
Transactions not found.
@endif
@endsection