@extends('backEnd.master') @section('title') @lang('fees.search_fees_due') @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' => 'fees_due_searches', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if (moduleStatusCheck('University')) @includeIf( 'university::common.session_faculty_depart_academic_semester_level', ['mt' => 'mt-30', 'hide' => ['USUB'], 'required' => ['USL']] )
@if ($errors->has('fees_group')) {{ $errors->first('fees_group') }} @endif
@else
@if ($errors->has('fees_group')) {{ $errors->first('fees_group') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@endif
{{ Form::close() }}
{{ Form::open(['class' => 'form-horizontal', 'route' => 'send-dues-fees-email', 'method' => 'POST']) }}

@lang('fees.fees_due_list')

@if(moduleStatusCheck('University')) @php $totalAmount = 0; $totalDiscount = 0; $totalPaid = 0; $totalBalance = 0; @endphp @foreach($fees_dues as $fees_due) {{-- @dd($fees_due) --}} @endforeach
@lang('student.admission_no') @lang('common.name') @lang('university::un.installment') @lang('fees.due_date') @lang('fees.amount') ({{generalSetting()->currency_symbol}}) @lang('fees.discount') ({{generalSetting()->currency_symbol}}) @lang('fees.paid') ({{generalSetting()->currency_symbol}}) @lang('fees.balance') ({{generalSetting()->currency_symbol}}) @lang('common.action')
{{$fees_due->recordDetail->studentDetail !=""?$fees_due->recordDetail->studentDetail->admission_no:""}} {{$fees_due->recordDetail->studentDetail !=""?$fees_due->recordDetail->studentDetail->full_name:""}} {{@$fees_due->installment->title}} {{@dateConvert($fees_due->due_date)}} @php $totalAmount += $fees_due->amount; @endphp {{$fees_due->amount}} @php $totalDiscount += $fees_due->discount_amount; @endphp {{$fees_due->discount_amount}} @php $totalPaid += $fees_due->paid_amount; @endphp {{$fees_due->paid_amount}} @php $balance = discountFeesAmount($fees_due->id) - $fees_due->paid_amount; $totalBalance += $balance; @endphp {{$balance}}
{{$totalAmount}} {{$totalDiscount}} {{$totalPaid}} {{$totalBalance}}
@elseif(directFees()) @php $totalAmount = 0; $totalDiscount = 0; $totalPaid = 0; $totalBalance = 0; @endphp @foreach($fees_dues as $fees_due) @endforeach
@lang('student.admission_no') @lang('common.name') @lang('fees.installment') @lang('fees.due_date') @lang('fees.amount') ({{generalSetting()->currency_symbol}}) @lang('fees.discount') ({{generalSetting()->currency_symbol}}) @lang('fees.paid') ({{generalSetting()->currency_symbol}}) @lang('fees.balance') ({{generalSetting()->currency_symbol}}) @lang('common.action')
{{@$fees_due->recordDetail->studentDetail !=""?$fees_due->recordDetail->studentDetail->admission_no:""}} {{@$fees_due->recordDetail->studentDetail !=""?$fees_due->recordDetail->studentDetail->full_name:""}} {{@$fees_due->installment->title}} {{@dateConvert($fees_due->due_date)}} @php $totalAmount += $fees_due->amount; @endphp {{$fees_due->amount}} @php $totalDiscount += $fees_due->discount_amount; @endphp {{$fees_due->discount_amount}} @php $totalPaid += $fees_due->paid_amount; @endphp {{$fees_due->paid_amount}} @php $balance = discountFees($fees_due->id) - $fees_due->paid_amount; $totalBalance += $balance; @endphp {{$balance}}
{{$totalAmount}} {{$totalDiscount}} {{$totalPaid}} {{$totalBalance}}
@else @foreach($fees_dues as $fees_due) @endforeach
@lang('student.admission_no') @lang('student.roll_no') @lang('common.name') @lang('fees.due_date') @lang('fees.amount') ({{generalSetting()->currency_symbol}}) @lang('fees.deposit') ({{generalSetting()->currency_symbol}}) @lang('fees.discount') ({{generalSetting()->currency_symbol}}) @lang('fees.fine') ({{generalSetting()->currency_symbol}}) @lang('fees.balance') ({{generalSetting()->currency_symbol}}) @lang('common.action')
{{$fees_due->recordDetail->studentDetail !=""?$fees_due->recordDetail->studentDetail->admission_no:""}} {{$fees_due->recordDetail->studentDetail !=""? $fees_due->recordDetail->roll_no:""}} {{$fees_due->recordDetail->studentDetail !=""?$fees_due->recordDetail->studentDetail->full_name:""}} @if($fees_due->feesGroupMaster !="") {{$fees_due->feesGroupMaster->date != ""? dateConvert($fees_due->feesGroupMaster->date):''}} @endif @php echo $fees_due->feesGroupMaster->amount; @endphp @php $amount = App\SmFeesAssign::discountSum($fees_due->student_id, $fees_due->feesGroupMaster->feesTypes->id, 'amount', $fees_due->recordDetail->id); echo $amount; @endphp @php $discount_amount = $fees_due->applied_discount; if ($discount_amount>0) { echo $discount_amount; } else { echo 0.00; } @endphp @php $fine = App\SmFeesAssign::discountSum($fees_due->student_id, $fees_due->feesGroupMaster->feesTypes->id, 'fine', $fees_due->recordDetail->id); echo $fine; @endphp @php echo $fees_due->feesGroupMaster->amount - $discount_amount - $amount+$fine; $dues_amount = $fees_due->feesGroupMaster->amount - $discount_amount - $amount; @endphp
@endif
{{ Form::close() }}
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_range_picker_css_js')