
<?php $__env->startSection('content'); ?>
<script src="https://cdn.ckeditor.com/ckeditor5/28.0.0/classic/ckeditor.js"></script>

<!-- BEGIN: Content-->
<div class="app-content content ">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper container-xxl p-0">
        <div class="content-header row">
            <div class="content-header-left col-md-9 col-12 mb-2">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h2 class="content-header-title float-start mb-0"><?php echo e(__('lang.admin_menu_cms')); ?></h2>
                        <div class="breadcrumb-wrapper">
                            <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo route('dashboard'); ?>"><?php echo e(__('lang.admin_menu_dashboard')); ?></a>
                                </li>
                                <li class="breadcrumb-item"><a href="<?php echo route('site_contents.index'); ?>"><?php echo e(__('lang.admin_cms_pages_list')); ?></a>
                                </li>
                                <li class="breadcrumb-item active"><?php echo e(__('lang.admin_cms_pages_info')); ?>

                                </li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <section class="app-user-edit">
                <div class="card">
                    <div class="card-body">
                        <div class="tab-content">
                            <div class="tab-pane active" id="account" aria-labelledby="account-tab" role="tabpanel">
                                <?php echo Form::model($data, ['method' => 'PATCH','enctype'=>'multipart/form-data', 'route' => ['site_contents.update', $data->id]]); ?>

                                <?php echo csrf_field(); ?>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="mb-1">
                                            <label class="form-label" for="name"><?php echo e(__('lang.admin_cms_page_title')); ?></label>
                                            <input type="text" class="form-control " placeholder="<?php echo e(__('lang.admin_cms_page_title')); ?>" value="<?php echo e($data->page_title); ?>" name="page_title" id="page_title" />
                                        </div>
                                    </div>

                                    <div class="col-md-12">
                                        <div class="mb-1">
                                            <label class="form-label" for="name"><?php echo e(__('lang.admin_cms_page_description')); ?></label>
                                            <textarea class="form-control" name="description" id="editor" name="<?php echo e(__('lang.admin_cms_page_description')); ?>" value="<?php echo e($data->description); ?>"><?php echo e($data->description); ?></textarea>
                                        </div>
                                    </div>
                                    <div class="col-12 d-flex flex-sm-row flex-column mt-2">
                                        <button type="submit" class="btn btn-primary mb-1 mb-sm-0 me-0 me-sm-1"><?php echo e(__('lang.admin_button_save_changes')); ?></button>
                                        <a href="<?php echo route('site_contents.index'); ?>" class="btn btn-outline-secondary"><?php echo e(__('lang.admin_button_back')); ?></a>
                                    </div>
                                </div>
                                <?php echo Form::close(); ?>

                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
<script type="text/javascript">
    ClassicEditor
    .create( document.querySelector( '#editor' ), {} )
    .catch( error => {
        console.log( error );
    } );
</script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/waterfl/public_html/resources/views/site_contents/edit.blade.php ENDPATH**/ ?>