51 lines
2.1 KiB
PHP
51 lines
2.1 KiB
PHP
<form action="{{ route('instructor.course.project.store') }}" method="post">@csrf
|
|
|
|
<input type="hidden" name="course_id" value="{{ $id }}">
|
|
<div class="fpb7 mb-3">
|
|
<label class="form-label ol-form-label" for="title">
|
|
{{ get_phrase('Title') }}
|
|
<span class="text-danger ms-1">*</span>
|
|
</label>
|
|
<input class="form-control ol-form-control" type="text" id="title" name="title" required>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-sm-12 fpb-7">
|
|
<label class="form-label ol-form-label">
|
|
{{ get_phrase('Section') }}
|
|
<span class="text-danger ms-1">*</span>
|
|
</label>
|
|
<select class="form-control ol-form-control ol-select2" data-toggle="select2" name="section">
|
|
<option value="">{{ get_phrase('Select an option') }}</option>
|
|
@foreach (App\Models\Section::where('course_id', $id)->get() as $section)
|
|
<option value="{{ $section->id }}">{{ $section->title }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="fpb-7 mb-3">
|
|
<label for="description"
|
|
class="form-label ol-form-label col-form-label">{{ get_phrase('Project Assignment') }}</label>
|
|
<textarea name="description" rows="5" class="form-control ol-form-control text_editor"></textarea>
|
|
</div>
|
|
|
|
<div class="fpb-7 mb-3">
|
|
<label for="attachment"
|
|
class="form-label ol-form-label col-form-label">{{ get_phrase('Assessment Criteria') }}</label>
|
|
<textarea name="attachment" rows="5" class="form-control ol-form-control text_editor"></textarea>
|
|
</div>
|
|
|
|
<div class="fpb-7 mb-6">
|
|
<label for="attachment"
|
|
class="form-label ol-form-label col-form-label">{{ get_phrase('Summary') }}</label>
|
|
<textarea name="attachment" rows="5" class="form-control ol-form-control text_editor"></textarea>
|
|
</div>
|
|
|
|
<div class="fpb7">
|
|
<button type="submit" class="btn ol-btn-primary">{{ get_phrase('Add Project') }}</button>
|
|
</div>
|
|
</form>
|
|
|
|
@include('instructor.init')
|