@if(isset($id)) {{ html()->modelForm($data, 'PATCH', route('defaultkeyword.update', $id) )->open() }} @else {{ html()->form('POST', route('defaultkeyword.store'))->open() }} @endif
{{ html()->label(__('message.keyword_id') . ' *', 'keyword_id')->class('form-control-label') }} {{ html()->number('keyword_id') ->value(isset($id) ? $data->keyword_id : $lastKeywordId) ->placeholder(__('message.keyword_id')) ->class('form-control') ->attribute('required', 'required') ->attribute('readonly', 'readonly') }}
{{ html()->label(__('message.keyword_title') . ' *', 'keyword_name')->class('form-control-label') }} @if(isset($id))

{{ $data->keyword_name }}

@else {{ html()->text('keyword_name') ->placeholder(__('message.keyword_title')) ->class('form-control') ->attribute('required', 'required') }} @endif
{{ html()->label(__('message.keyword_value') . ' *', 'keyword_value')->class('form-control-label') }} {{ html()->text('keyword_value') ->placeholder(__('message.keyword_value')) ->class('form-control') ->attribute('required', 'required') }}
{{ html()->label(__('message.screen_name') . ' *', 'screen_id')->class('form-control-label') }} {{ html()->select('screen_id', isset($id) ? [optional($data->screen)->screenId => optional($data->screen)->screenName] : [], old('screen_id')) ->class('select2 form-group') ->id('screenName') ->attribute('data-placeholder', __('message.select_name', ['select' => __('message.screen_name')])) ->attribute('data-ajax--url', route('ajax-list', ['type' => 'screen'])) ->attribute('required', 'required') }}
@if(isset($id)) {{ html()->closeModelForm() }} @else {{ html()->form()->close() }} @endif