@include('components.input', [ 'id' => 'data_' . $id . '_name', 'name' => 'data[' . $id . '][name]', 'label' => 'Material Name', 'type' => 'text', 'mandatory' => true, 'class' => '', 'readonly' => false, 'maxlength' => '255', 'value' => isset($name) ? $name : '', 'placeholder' => 'Enter Material Name', 'margin' => false, ])
@include('components.select', [ 'id' => 'data_' . $id . '_reading', 'name' => 'data[' . $id . '][reading]', 'class' => 'materialType', 'mandatory' => true, 'multiple' => false, 'margin' => false, 'disabled' => false, 'default' => '', 'label' => 'Material Type', 'options' => config('constants.materialTypes'), 'selected' => isset($reading) ? $reading : '', ])
@include('components.input', [ 'id' => 'data_' . $id . '_duration', 'name' => 'data[' . $id . '][duration]', 'label' => 'Duration(In Minutes)', 'type' => 'number', 'mandatory' => true, 'class' => 'duration', 'readonly' => isset($reading) && !$reading, 'maxlength' => '255', 'value' => isset($duration) ? $duration : '', 'placeholder' => 'Enter Duration in Minutes', 'margin' => false, ])
@if(isset($value->ppt)) @elseif(isset($value->pdf)) @else
@if (isset($reading) && !$reading && file_exists(public_path('uploads/materialVideo/' . $content)))
@else @endif
@endif