@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==0 ? ($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($type) && $type == 0 ? ($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($type) && $type == 0 ? ($duration ?? '') : '',
'placeholder' => 'Duration(In Minutes)',
])
{{--
--}}