@extends('admin::layouts.plane') @section('content')

Student Report Card Pending Fees


Note: If you do not want pending-fee filtering for any exam type, delete that exam type value. If a value exists for an exam type, students will be filtered by that amount and students with total pending fees greater than the configured value will be excluded from the result.
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Save / Update Pending Fee

{!! Form::open(['route' => 'student-report-card-pending-fees.save', 'method' => 'POST', 'id' => 'pending-fees-form']) !!}
{!! Form::label('exam_type', 'Exam Type', ['class' => 'control-label']) !!} {!! Form::select('exam_type', ['' => 'Select Exam Type'] + $examTypes, old('exam_type'), [ 'class' => 'form-control required', 'id' => 'exam_type' ]) !!}
{!! Form::label('pending_amount', 'Pending Fee Amount', ['class' => 'control-label']) !!} {!! Form::number('pending_amount', old('pending_amount'), [ 'class' => 'form-control required', 'id' => 'pending_amount', 'min' => '0', 'step' => '0.01', 'placeholder' => 'Enter pending fee amount' ]) !!}
{!! Form::button(' Save / Update Pending Fee', [ 'type' => 'submit', 'class' => 'btn btn-primary', 'id' => 'save-btn' ]) !!}
{!! Form::close() !!}

Current Pending Fee Configuration

@foreach($examTypes as $examTypeKey => $examTypeLabel) @php $hasConfiguredValue = array_key_exists($examTypeKey, $pendingFeesMap ?? []); @endphp @endforeach
Exam Type Pending Amount Action
{{ $examTypeLabel }} {{ $hasConfiguredValue ? $pendingFeesMap[$examTypeKey] : '-' }} @if($hasConfiguredValue) {!! Form::open([ 'route' => 'student-report-card-pending-fees.delete', 'method' => 'POST', 'style' => 'display:inline-block;', 'onsubmit' => "return confirm('Delete pending fee for {$examTypeLabel}?');" ]) !!} {!! Form::close() !!} @else No value @endif
@endsection