{{ html()->modelForm($model, getMethod($model), getMethod($model) == 'POST' ? route('organization.rosters.wizard2.store') : route('organization.rosters.update', $model->id))->id('form-validator')->acceptsFiles()->open() }}
{{ ym_input([
'label' => __('form.Notice Title'),
'type' => 'text',
'name' => 'roster_title',
'id' => 'roster_title',
'required' => true,
'value' => $model->roster_title,
]) }}
{{ ym_date([
'label' => __('form.Start Date'),
'min' => now()->format('Y-m-d'),
'name' => 'start_date',
'required' => true,
'value' => $model->start_date,
'id'=>'sdate'
]) }}
{{ ym_input([
'type' => 'datetime',
'label' => __('form.End Date'),
'min' => now()->format('Y-m-d'),
'name' => 'end_date',
'required' => true,
'value' => $model->end_date,
'id'=>'edate'
]) }}
{{
ym_select(['label'=>__('form.Language'),
'name'=>'lang',
'id'=>'notice_lang',
'options'=>['en'=>'EN','np'=>'NP'],
'placeholder'=> __('form.Select Language'),
'value' => $model->lang ?? null,
]),
}}
@error('apply_method')
{{ $message }}
@enderror
@error('submission_address')
{{ $message }}
@enderror
@error('submission_email')
{{ $message }}
@enderror
{{ ym_textarea([
'label' => __('form.Notice Details'),
'name' => 'roster_details',
'editor' => 'editor',
'value' => $model->roster_details,
'required' => true,
'enlarge' => true,
'id'=>'roster_details'
]) }}
@if($model->medias)
@if(is_image($model->medias))
@else
@endif
@else
@endif
@error('medias')
{{ $message }}
@enderror
{{ ym_input([
'label' => __('form.External Links'),
'type' => 'text',
'name' => 'external_links',
'value' => $model->external_links,
]) }}
{{ html()->closeModelForm() }}