<form class="row g-3 auto-width edit_semesters" id="edit_semesters_form" enctype='multipart/form-data' action="{{route('semesters-update' , $semesters->id) }}">
    @csrf
    @method('post')
    <div class="col-md-6">
        <div>
            <label for="name" class="form-label">Semesters Name <span class="text-danger"><b>*</b></span></label>
                <input type="text" class="form-control" id="name" name="name" value="{{$semesters->name}}">
        </div>
    </div>

    <div class="col-md-6">
        <label for="course_id" class="form-label">Courses</label>
        <select class="single-select form-control" name="course_id" id="course_id">
            <option value="">Select Courses</option>
            @foreach($courses as $list)
            <option value="{{ $list->id }}" {{ $list->id == $semesters->course_id ? 'selected' : '' }}>
            {{ $list->course_title }}
            </option>
            @endforeach
        </select>
    </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" value="{{$semesters->priority}}">
        </div>
    </div>
</form>

