@extends('organizations.layouts.default') @section('content')
@include('organizations.layouts.partials.breadcrumb')

@include('organizations.rosters.partials.nav')
{{ html()->modelForm($model, getMethod($model), getMethod($model) == 'POST' ? route('organization.' . $route . '.store') : route('organization.' . $route . '.update', $model->id))->id('form-validator')->acceptsFiles()->open() }}
{{ ym_input([ 'label' => __('form.Notice Title'), 'type' => 'text', 'name' => 'roster_title', 'required' => true, 'value' => $model->roster_title, ]) }}
{{ ym_date([ 'label' => __('form.Start Date'), 'name' => 'start_date', 'required' => true, 'value' => $model->start_date, 'min' => now()->format('Y-m-d'), ]) }} {{ ym_input([ 'type' => 'datetime', 'label' => __('form.End Date'), 'name' => 'end_date', 'required' => true, 'value' => $model->end_date, 'min' => now()->format('Y-m-d H:i'), ]) }} {{ ym_select(['label'=>__('form.Language'), 'name'=>'lang', 'id'=>'notice_lang', 'options'=>['en'=>'EN','np'=>'NP'], 'placeholder'=> __('form.Select Language'), 'value' => $model->lang ?? null, ]), }}
apply_online ?? '') ? 'checked' : '' }}>
apply_offline ?? '') ? 'checked' : '' }}>
apply_email ?? '') ? 'checked' : '' }}>
@error('apply_method')
{{ $message }}
@enderror
@error('submission_address')
{{ $message }}
@enderror
@error('submission_email')
{{ $message }}
@enderror
@if(!$model->id>0)

@endif
{{ ym_textarea([ 'label' => __('form.Notice Details'), 'name' => 'roster_details', 'editor' => 'editor', 'value' => $model->roster_details, 'required' => true, 'enlarge' => true, ]) }}
@if($model->medias) @if(is_image($model->medias)) Current file @else @endif @else Current file @endif
{{ ym_input([ 'label' => __('form.External Links'), 'type' => 'text', 'name' => 'external_links', 'value' => $model->external_links, ]) }}
{{ __('form.Cancel') }}
{{ html()->closeModelForm() }}
@endsection