@include('components.input', [
'id' => 'data_' . $id . '_title',
'name' => 'data[' . $id . '][title]',
'label' => 'Title',
'type' => 'text',
'mandatory' => true,
'class' => '',
'readonly' => false,
'maxlength' => '255',
'value' => isset($title) && $type==1 ? ($title ?? '') : '',
'placeholder' => 'Title',
])
@include('components.input', [
'id' => 'data_' . $id . '_attempts',
'name' => 'data[' . $id . '][attempts]',
'label' => 'Number of Attempts',
'type' => 'number',
'mandatory' => true,
'class' => 'unsignedNumber',
'readonly' => false,
'maxlength' => '255',
'value' => isset($attempts) && $type==1 ? ($attempts ?? '') : '',
'placeholder' => 'Attempts',
])
@include('components.input', [
'id' => 'data_' . $id . '_duration',
'name' => 'data[' . $id . '][duration]',
'label' => 'Duration(In Minutes)',
'type' => 'number',
'mandatory' => true,
'class' => 'unsignedNumber',
'readonly' => false,
'maxlength' => '255',
'value' => isset($duration) && $type==1 ? ($duration ?? '') : '',
'placeholder' => 'Duration(In Minutes)',
])
@include('components.input', [
'id' => 'data_' . $id . '_pass_score',
'name' => 'data[' . $id . '][pass_score]',
'label' => 'Passing Score',
'type' => 'number',
'mandatory' => true,
'class' => 'unsignedNumber',
'readonly' => false,
'maxlength' => '255',
'value' => isset($pass_score) && $type==1 ? ($pass_score ?? '') : '',
'placeholder' => 'Passing Score',
])
@include('components.input', [
'id' => 'data_' . $id . '_max_score',
'name' => 'data[' . $id . '][max_score]',
'label' => 'Maximum Score',
'type' => 'number',
'mandatory' => true,
'class' => 'unsignedNumber',
'readonly' => false,
'maxlength' => '255',
'value' => isset($max_score) && $type==1 ? ($max_score ?? '') : '',
'placeholder' => 'Maximum Score',
])
{{--
--}}