<!-- Modal -->
<div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel"><?php echo e($pageTitle); ?></h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
        <?php if(isset($id)): ?>
            <?php echo Form::model($data, ['route' => ['defaultkeyword.update', $id], 'method' => 'patch']); ?>

        <?php else: ?>
            <?php echo Form::open(['route' => ['defaultkeyword.store'], 'method' => 'post']); ?>

        <?php endif; ?>
        <div class="modal-body">
            <div class="form-group">
                <div class="form-group col-md-12">
                    <?php echo e(Form::label('keyword_id', __('message.keyword_id') . ' <span class="text-danger">*</span>', ['class' => 'form-control-label'], false)); ?>

                    <?php echo e(Form::number('keyword_id', isset($id) ? $data->keyword_id : $lastKeywordId, ['placeholder' => __('message.keyword_id'), 'class' => 'form-control', 'required' => true, 'readonly' => true])); ?>

                </div>
                <div class="form-group col-md-12">
                    <?php echo e(Form::label('keyword_name', __('message.keyword_title') . ' <span class="text-danger">*</span>', ['class' => 'form-control-label'], false)); ?>

                    <?php echo e(Form::text('keyword_name', old('keyword_name'), ['placeholder' => __('message.keyword_title'), 'class' => 'form-control', 'required', 'readonly' => true])); ?>

                </div>
                <div class="form-group col-md-12">
                    <?php echo e(Form::label('keyword_value', __('message.keyword_value') . ' <span class="text-danger">*</span>', ['class' => 'form-control-label'], false)); ?>

                    <?php echo e(Form::text('keyword_value', old('keyword_value'), ['placeholder' => __('message.keyword_value'), 'class' => 'form-control', 'required'])); ?>

                </div>
                <div class="form-group col-md-12">
                    <?php echo e(Form::label('screen_id', __('message.screen_name') . ' <span class="text-danger">*</span>', ['class' => 'form-control-label'], false)); ?>

                    <?php echo e(Form::select(
                        'screen_id',
                        isset($id) ? [optional($data->screen)->screenId => optional($data->screen)->screenName] : [],
                        old('screen_id'),
                        [
                            'class' => 'select2 form-group',
                            'id' => 'screenName',
                            'data-placeholder' => __('message.select_name', ['select' => __('message.screen_name')]),
                            'data-ajax--url' => route('ajax-list', ['type' => 'screen']),
                            'required',
                        ],
                    )); ?>

                </div>
            </div>
        </div>
        <div class="modal-footer">
            <?php echo e(Form::submit(__('message.save'), ['class' => 'btn btn-md btn-primary float-right', 'id' => 'btn_submit', 'data-form' => 'ajax'])); ?>

            <button type="button" class="btn btn-md btn-secondary float-right mr-1"
                data-dismiss="modal"><?php echo e(__('message.close')); ?></button>
        </div>
        <?php echo e(Form::close()); ?>

    </div>
</div>
<script>
    $('#screenName').select2({
        width: '100%',
        placeholder: "<?php echo e(__('message.select_name', ['select' => __('message.screen_name')])); ?>",
    });
</script>
<?php /**PATH /www/wwwroot/mxunzo.mimeld.com/resources/views/app-language-setting/defaultkeyword/form.blade.php ENDPATH**/ ?>