@component('components.forms.radiochecks', [
'name' => 'status',
'label' => trans('bdd.studies.status.s'),
'type' => 'radio',
'required' => true,
'value' => $item->status,
'datas' => $status,
'inline' => true,
])
@endcomponent
@component('components.forms.date', [
'name' => 'published_at',
'label' => trans('bdd.studies.published_at.s'),
'placeholder' => trans('bdd.studies.published_at.s'),
'value' => $item->published_at,
'min' => date('d/m/Y', strtotime('+ 2 days')),
'minYear' => date('Y'),
'maxYear' => date('Y', strtotime('+ 4 years')),
])
@endcomponent
@else
@component('components.forms.input', [
'name' => 'status',
'type' => 'hidden',
'value' => 0,
])
@endcomponent
@endif
@component('components.forms.radiochecks', [
'name' => 'study_type_id',
'required' => true,
'label' => trans('bdd.studies.type.s'),
'type' => 'radio',
'value' => $item->study_type_id,
'datas' => $type,
'inline' => true,
])
@endcomponent