@extends('backEnd.master') @section('title') @lang('fees.collection_report') @endsection @section('mainContent') @php $setting = generalSetting(); if(!empty($setting->currency_symbol)){ $currency = $setting->currency_symbol; }else{ $currency = '$'; } @endphp

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'transaction_report_searches', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if(moduleStatusCheck('University')) @includeIf('university::common.session_faculty_depart_academic_semester_level', ['hide'=>['USUB'],'required'=> ['US','UF','UD','UA','USN','US','USL']])
@else
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@endif
{{ Form::close() }}
@if(isset($fees_payments))

@lang('fees.fees_collection_details')

{{dateConvert($date_from). "-" . dateConvert($date_to)}}
@if (moduleStatusCheck('University')) @php $totalPaidAmountGrup = 0; $totalPaidAmount = 0; $totalDiscount = 0; $totalDiscountGrup = 0; @endphp @foreach($fees_payments as $fees_payment) @if (!count($fees_payment->payments)) @endif @foreach($fees_payment->payments as $payment) @endforeach @endforeach
@lang('student.admission_no') @lang('common.name') @lang('university::un.installment') @lang('fees.mode') @lang('fees.payment_date') @lang('fees.paid_amount') ({{generalSetting()->currency_symbol}}) @lang('fees.discount') ({{generalSetting()->currency_symbol}}) @lang('common.action')
{{$fees_payment->recordDetail->studentDetail !=""?$fees_payment->recordDetail->studentDetail->admission_no:""}} {{$fees_payment->recordDetail->studentDetail !=""?$fees_payment->recordDetail->studentDetail->full_name:""}} {{@$fees_payment->installment->title}} {{$fees_payment->payment_mode}} {{@dateConvert($fees_payment->payment_date)}} @php $totalPaidAmountGrup += $fees_payment->amount; @endphp {{$fees_payment->amount}} @php $totalDiscountGrup += $fees_payment->discount_amount; @endphp {{$fees_payment->discount_amount}}
{{$fees_payment->recordDetail->studentDetail !=""?$fees_payment->recordDetail->studentDetail->admission_no:""}} {{$fees_payment->recordDetail->studentDetail !=""?$fees_payment->recordDetail->studentDetail->full_name:""}} {{@$fees_payment->installment->title}} {{$payment->payment_mode}} {{@dateConvert($payment_date)}} @php $totalPaidAmount += $payment->paid_amount; @endphp {{$payment->paid_amount}} @php $totalDiscount += $payment->discount_amount; @endphp {{$payment->discount_amount}}
@lang('fees.grand_total') ({{generalSetting()->currency_symbol}}) {{currency_format($totalPaidAmountGrup + $totalPaidAmount)}} {{currency_format($totalDiscountGrup + $totalDiscount)}}
@elseif(directFees()) @php $totalPaidAmountGrup = 0; $totalPaidAmount = 0; $totalDiscount = 0; $totalDiscountGrup = 0; @endphp @foreach($fees_payments as $fees_payment) @endforeach
@lang('student.admission_no') @lang('common.name') @lang('fees.installment') @lang('fees.mode') @lang('fees.payment_date') @lang('fees.paid_amount') ({{generalSetting()->currency_symbol}}) @lang('fees.discount') ({{generalSetting()->currency_symbol}}) @lang('common.action')
{{@$fees_payment->installmentAssign->recordDetail->studentDetail->admission_no}} {{$fees_payment->installmentAssign->recordDetail->studentDetail->full_name}} {{@$fees_payment->installmentAssign->installment->title}} {{$fees_payment->payment_mode}} {{@dateConvert($fees_payment->payment_date)}} @php $totalPaidAmountGrup += $fees_payment->amount; @endphp {{$fees_payment->amount}} @php $totalDiscountGrup += $fees_payment->installmentAssign->discount_amount; @endphp {{$fees_payment->installmentAssign->discount_amount}}
@lang('fees.grand_total') ({{generalSetting()->currency_symbol}}) {{currency_format($totalPaidAmountGrup + $totalPaidAmount)}} {{currency_format($totalDiscountGrup + $totalDiscount)}}
@else @php $grand_amount = 0; $grand_total = 0; $grand_discount = 0; $grand_fine = 0; $total = 0; @endphp @foreach($fees_payments as $students) @foreach($students as $key=>$fees_payment) @php if(is_array($fees_payment)){ $fees_payment = $fees_payment[$key]; } @endphp @php $total = 0; @endphp @if($fees_payment->recordDetail) @endif @endforeach @endforeach
@lang('fees.payment_id') @lang('common.date') @lang('common.name') @lang('common.class') @lang('fees.fees_type') @lang('fees.mode') @lang('fees.amount') @lang('fees.fine') @lang('fees.total')
{{$fees_payment->fees_type_id.'/'.$fees_payment->id}} {{$fees_payment->payment_date != ""? dateConvert($fees_payment->payment_date):''}} {{@$fees_payment->recordDetail->studentDetail ? $fees_payment->recordDetail->studentDetail->full_name:""}} @if(@$fees_payment->recordDetail->studentDetail && @$fees_payment->recordDetail->class) {{$fees_payment->recordDetail->class->class_name}} @endif {{$fees_payment->feesType!=""?$fees_payment->feesType->name:""}} {{@$fees_payment->payment_mode}} @php $total = $total + $fees_payment->amount; $grand_amount = $grand_amount + $fees_payment->amount; echo currency_format($fees_payment->amount); @endphp @php $total = $total + $fees_payment->fine; $grand_fine = $grand_fine + $fees_payment->fine; echo currency_format($fees_payment->fine); @endphp @php $grand_total = $grand_total + $total; echo currency_format($total); @endphp
@lang('fees.grand_total') ({{generalSetting()->currency_symbol}}) {{currency_format($grand_amount)}} {{currency_format($grand_fine)}} {{currency_format($grand_total)}}
@endif
@endif
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_range_picker_css_js')