<form class="row g-3 auto-width create_study_materials" id="create_study_materials_form" enctype='multipart/form-data' action="{{route('study-materials-store') }}">
    @csrf
    @method('POST')
    <input type="hidden" name="course_id" value="{!! $course_id !!}">
    <input type="hidden" name="material_type_id" value="{!! $material_type_id !!}">
    <div class="col-md-6">
        <div>
            <label for="title" class="form-label">Study Material Name <span class="text-danger"><b>*</b></span></label>
                <input type="text" class="form-control" id="title" name="title" placeholder="Study Material Name">
        </div>
    </div>

    <div class="col-md-6">
        <div>
            <label for="semester_id" class="form-label">Class / Semesters </label>
        </div>
        <div class="input-group">
            <select class="form-control" name="semester_id" id="semester_id">
                <option value="">Select Class / Semesters</option>
                @foreach($semesters as $list)
                <option value="{{ $list->id }}">{{ $list->class_name }}</option>
                @endforeach
            </select>
        </div>
    </div>

    
    <div class="col-md-12">
        <div>
            <label for="description" class="form-label">Description </label>
                <textarea class="form-control" id="description" name="description" placeholder="Description"></textarea>
        </div>
    </div>
    <div class="col-md-6">
        <div>
            <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
                <input type="text" class="form-control" id="priority" name="priority" placeholder="Priority" value="{{$priority +1}}">
        </div>
    </div>

    <div class="col-md-6">
        <div>
            <label for="financial_year_id" class="form-label">Financial Year <span class="text-danger"><b></b></span></label>
                <select class="form-control" name="financial_year_id">
                    <option value=" ">Select Financial Year</option>
                    @foreach($financialYear as $row)
                        <option value="{!! $row->financialyearid !!}" {!! $row->is_default=='1'?'selected':'' !!}>{!! $row->financial_year_name !!}</option>
                    @endforeach
                </select>
        </div>
    </div>

</form>
