Edit Assignment
@csrf
@include('components.input', [ 'id' => 'title', 'name' => 'title', 'label' => 'Title', 'type' => 'text', 'mandatory' => true, 'class' => '', 'readonly' => false, 'maxlength' => '255', 'value' => isset($assignment->title) ? $assignment->title : '', 'placeholder' => 'Title', ])
@include('components.input', [ 'id' => 'attempts', 'name' => 'attempts', 'label' => 'Number of Attempts', 'type' => 'number', 'mandatory' => true, 'class' => 'unsignedNumber', 'readonly' => false, 'maxlength' => '255', 'value' => isset($assignment->attempts) ? $assignment->attempts : '', 'placeholder' => 'Attempts', ])
@include('components.input', [ 'id' => 'duration', 'name' => 'duration', 'label' => 'Duration(In Minutes)', 'type' => 'number', 'mandatory' => true, 'class' => 'unsignedNumber', 'readonly' => false, 'maxlength' => '255', 'value' => isset($assignment->duration) ? $assignment->duration : '', 'placeholder' => 'Duration(In Minutes)', ])
@if($assignment->type !=0)
@include('components.input', [ 'id' => 'pass_score', 'name' => 'pass_score', 'label' => 'Passing Score', 'type' => 'number', 'mandatory' => true, 'class' => 'unsignedNumber', 'readonly' =>isset($assignment->pass_score) ?false : true, 'maxlength' => '255', 'value' => isset($assignment->pass_score) ? $assignment->pass_score : '', 'placeholder' => 'Passing Score', ])
@include('components.input', [ 'id' => 'max_score', 'name' => 'max_score', 'label' => 'Maximum Score', 'type' => 'number', 'mandatory' => true, 'class' => 'unsignedNumber', 'readonly' =>isset($assignment->max_score)?false:true, 'maxlength' => '255', 'value' => isset($assignment->max_score) ? $assignment->max_score : '', 'placeholder' => 'Maximum Score', ])
@endif {{--
--}}