@extends('backEnd.master') @section('title') @lang('fees.collect_fees') @endsection @section('mainContent') @php $setting = generalSetting(); if(!empty($setting->currency_symbol)){ $currency = $setting->currency_symbol; }else{ $currency = '$'; } $total_fees = 0; $total_due = 0; $total_paid = 0; $total_disc = 0; $total_balance = 0; $record = $student; @endphp

@lang('fees.student_fees')

@lang('common.name')
{{@$student->studentDetail->full_name}}
@if(moduleStatusCheck('University')) @lang('university::un.semester_label') @else @lang('student.father_name') @endif
@if(moduleStatusCheck('University')) {{@$student->unSemesterLabel->name }} @else {{@$student->studentDetail->parents != ""? @$student->studentDetail->parents->fathers_name:""}} @endif
@lang('fees.mobile')
{{@$student->studentDetail->mobile}}
@lang('student.category')
{{@$student->studentDetail->category !=""?@$student->studentDetail->category->category_name:""}}
@if(moduleStatusCheck('University')) @lang('university::un.department') @else @lang('common.class_sec') @endif
@if(moduleStatusCheck('University')) {{@$student->unDepartment->name}} @else {{@$student->class->class_name .'('.@$student->section->section_name.')'}} @endif
@lang('student.admission_no')
{{@$student->studentDetail->admission_no}}
@lang('student.roll_no')
{{@$student->roll_no}}

@lang('fees.add_fees')

@if(moduleStatusCheck('University')) {{-- --}} @foreach($feesInstallments as $key=> $feesInstallment ) @php $total_fees += discountFeesAmount($feesInstallment->id); $total_paid += $feesInstallment->paid_amount; $total_disc += $feesInstallment->discount_amount; $total_balance += discountFeesAmount($feesInstallment->id) - ( $feesInstallment->paid_amount ); @endphp {{-- --}} @foreach($feesInstallment->payments as $payment) {{-- --}} @endforeach @if(moduleStatusCheck('University')) @endif @endforeach @if($record->credit && $record->credit->amount > 0) @include('university::include.fees_credit_view') @endif {{-- --}}
@lang('fees.add_fees') @lang('fees.invoice_print')
## @lang('university::un.installment') @lang('fees.amount') ({{@generalSetting()->currency_symbol}}) @lang('common.status') @lang('fees.due_date') @lang('fees.payment_ID') @lang('fees.mode') @lang('university::un.payment_date') @lang('fees.discount') ({{@generalSetting()->currency_symbol}}) @lang('fees.paid') ({{@generalSetting()->currency_symbol}}) @lang('fees.balance') @lang('common.action')
{{@$feesInstallment->installment->title}} {{@$feesInstallment->installment->title}} @if($feesInstallment->discount_amount > 0) {{$feesInstallment->amount}} {{$feesInstallment->amount - $feesInstallment->discount_amount}} @else {{$feesInstallment->amount}} @endif @if($feesInstallment->active_status == 1) @elseif( $feesInstallment->active_status == 2) @else @endif {{@dateConvert($feesInstallment->due_date)}} @if($feesInstallment->active_status == 1) @if (moduleStatusCheck('University')) {{@universityFeesInvoice($feesInstallment->invoice_no)}} @else {{@$feesInstallment->fees_type_id.'/'.@$feesInstallment->id}} @endif @endif @if(is_null($feesInstallment->payment_mode)) -- @else {{ $feesInstallment->payment_mode}} @endif {{@dateConvert($feesInstallment->payment_date)}} {{$feesInstallment->discount_amount}} {{$feesInstallment->paid_amount}} {{discountFeesAmount($feesInstallment->id) - ($feesInstallment->paid_amount) }}
@if($payment->active_status == 1) @if (moduleStatusCheck('University')) {{@universityFeesInvoice($feesInstallment->invoice_no)}} @else {{@$payment->fees_type_id.'/'.@$payment->id}} @endif @endif {{$payment->payment_mode}} {{@dateConvert($payment->payment_date)}} {{$payment->discount_amount}} {{$payment->paid_amount}} {{$payment->balance_amount}}
@lang('fees.grand_total') ({{@$currency}}) {{currency_format($total_fees)}} {{currency_format($total_disc)}} {{currency_format($total_paid)}} @if(@$record->credit->amount) {{currency_format($total_balance + @$record->credit->amount )}} @else {{currency_format($total_balance)}} @endif
@elseif(directFees()) @foreach($feesInstallments as $key=> $feesInstallment) @php $total_fees += discount_fees($feesInstallment->amount, $feesInstallment->discount_amount); $total_paid += $feesInstallment->paid_amount; $total_disc += $feesInstallment->discount_amount; @endphp @foreach($feesInstallment->payments as $payment) @endforeach @endforeach
@lang('fees.add_fees') @lang('fees.invoice_print')
# @lang('fees.installment') @lang('fees.amount') ({{@generalSetting()->currency_symbol}}) @lang('common.status') @lang('fees.due_date') @lang('fees.payment_ID') @lang('fees.mode') @lang('fees.payment_date') @lang('fees.discount') ({{@generalSetting()->currency_symbol}}) @lang('fees.paid') ({{@generalSetting()->currency_symbol}}) @lang('fees.balance') @lang('common.action')
{{@$feesInstallment->installment->title}} @if($feesInstallment->discount_amount > 0) {{$feesInstallment->amount}} {{$feesInstallment->amount - $feesInstallment->discount_amount}} @else {{$feesInstallment->amount}} @endif @if($feesInstallment->active_status == 1) @elseif( $feesInstallment->active_status == 2) @else @endif {{@dateConvert($feesInstallment->due_date)}} {{$feesInstallment->discount_amount}} {{$feesInstallment->paid_amount}} {{discount_fees($feesInstallment->amount, $feesInstallment->discount_amount) - ($feesInstallment->payments->sum('total_paid') + $feesInstallment->paid_amount) }}
@if($payment->active_status == 1) {{@sm_fees_invoice($payment->invoice_no, $invoice_settings)}} @endif {{$payment->payment_mode}} {{@dateConvert($payment->payment_date)}} {{$payment->discount_amount}} {{$payment->paid_amount}} {{$payment->balance_amount}}
@lang('fees.grand_total') ({{@$currency}}) {{currency_format($total_fees)}} {{currency_format($total_disc)}} {{currency_format($total_paid)}} {{ currency_format($total_fees - ($total_paid))}}
@if(moduleStatusCheck('University'))
@if(moduleStatusCheck('University')) @endif @if(directFees()) @endif @endsection @include('backEnd.partials.date_picker_css_js') @push('script') @endpush