@php use App\Models\eims\settings\academic\ContentType; @endphp @extends('layouts/eims_layout') @section('title', '| ' . $pageTitle) @section('content') @include('successMsg')
Add {{ $pageTitle }}
{!! Form::open(['id' => 'feesFineConfigForm','class' => 'form-horizontal']) !!}
@if($companyType === 'UNV') {{-- Faculty --}}
{!! Form::label('faculty_id', 'Faculty: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::select('faculty_id', $faculties, null, [ 'class' => 'form-control custom-select2', 'id' => 'faculty_id', 'placeholder' => 'Select Faculty', 'required', 'autocomplete' => 'off']) !!}
{{-- Department --}}
{!! Form::label('department_id', 'Department: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::select('department_id', $departments, null, [ 'class' => 'form-control custom-select2', 'id' => 'department_id', 'placeholder' => 'Select Department', 'required', 'autocomplete' => 'off']) !!}
@endif {{-- Program/Medium/Version --}}
@php($programMediumLabel = $companyType == 'UNV' ? 'Program' : 'Medium/Version') {!! Form::label( 'program_medium_id', $programMediumLabel .': *', ['class' => 'control-label text-gray col-sm-4'], false, ) !!}
{!! Form::select('program_medium_id', $programs, $value = null, [ 'class' => 'form-control custom-select2', 'id' => 'program_medium_id', 'placeholder' => "Select $programMediumLabel", 'autocomplete' => 'off', ]) !!}

{{-- session_id --}}
{!! Form::label('session_id', 'Session: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::select('session_id', $sessions, null, [ 'class' => 'form-control custom-select2', 'id' => 'session_id', 'placeholder' => 'Select Session', 'required', 'autocomplete' => 'off' ]) !!}
{{-- Effective Date --}}
{!! Form::label('effective_date', 'Effective Date: *', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::text('effective_date', $branch_campus_active_date , [ 'id' => 'effective_date', 'class' => 'form-control', 'placeholder' => 'Enter Effective Date', 'readonly' => 'readonly', ]) !!}

{{-- Fees Fine config name --}}
{!! Form::label('name', 'Fees fine config name:', [ 'class' => 'control-label text-gray col-sm-4', ], false) !!}
{!! Form::text('name', null, [ 'id' => 'name', 'class' => 'form-control', 'placeholder' => 'Enter Fees fine config name/Title', 'required', ]) !!}



@foreach($feesCategories as $feesCategory)
{!! Form::hidden('fees_category_id[]', $feesCategory->id) !!}
{{$feesCategory->name}}
{{-- Regular --}}
{!! Form::label("regular_date_$feesCategory->id", 'Regular Fees date', [ 'class' => 'control-label text-gray col-md-2 regular-date-label', ], false) !!}
{!! Form::text("regular_date[$feesCategory->id]", null , [ 'class' => 'form-control regular-date', 'data-fees-fine-count' => 0, 'data-fees-category-id' => $feesCategory->id, 'readonly']) !!}
{{-- add more button --}}
{{-- Fine Type --}}
{{-- Monthly Fine --}}
{!! Form::label('fine_amount_'.$feesCategory->id.'_'. 0, 'Month wise Fine: ', [ 'class' => 'control-label text-gray col-md-2', ], false) !!} {!! Form::hidden("fine_type_id[$feesCategory->id][]", ContentType::FINE_TYPE_MONTH_WISE, ['class' => 'fine-type']) !!} {!! Form::hidden("fine_day[$feesCategory->id][]", null, ['class' => 'fine-date']) !!}
{!! Form::text("fine_amount[$feesCategory->id][]", null, [ 'class' => 'form-control fine-amount', 'placeholder' => 'Month wise fine amount', 'step' => '0.01', 'data-fees-category-id' => $feesCategory->id, 'required', ]) !!}
{{-- Advance month field --}}

@endforeach
{{-- Submit Button --}}
Cancel
{!! Form::close() !!}
@endsection