Viewing file: 909d9aa0ccd8a205b2f3a858b89353ba0d3aaed4.php (15.17 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('page_title', __('Edit :x', ['x' => __('Pages')])); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('public/datta-able/plugins/summer-note/summernote.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('Modules/MediaManager/Resources/assets/css/media-manager.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="col-sm-12" id="page-container">
<div class="card">
<div class="card-header">
<h5><a
href="<?php echo e(isset($isHome) ? route('page.home') : route('page.index')); ?>"><?php echo e(isset($isHome) ? __('Homepage') : __('Page')); ?></a>
>> <a href="<?php echo e(route('site.page', $page->slug)); ?>" target="_blank"><?php echo e($page->name); ?></a> >>
<?php echo e(__('Edit')); ?></h5>
</div>
<div class="card-body p-0" id="no_shadow_on_card">
<div class="col-sm-12 m-t-20 form-tabs">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active text-uppercase fw-bold" id="home-tab" data-bs-toggle="tab" href="#home"
role="tab" aria-controls="home"
aria-selected="true"><?php echo e(__(':x Information', ['x' => __('Page')])); ?></a>
</li>
<li class="nav-item">
<a class="nav-link text-uppercase fw-bold" id="profile-tab" data-bs-toggle="tab" href="#profile"
role="tab" aria-controls="profile" aria-selected="false"><?php echo e(__('SEO Fields')); ?></a>
</li>
</ul>
<form action='<?php echo e(route('page.update', ['id' => $page->id, 'type' => $page->type])); ?>' method="post"
class="form-horizontal" id="userEdit" enctype="multipart/form-data">
<div class="col-sm-12 tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel"
aria-labelledby="home-tab">
<input type="hidden" value="<?php echo e(csrf_token()); ?>" name="_token" id="token">
<input type="hidden" value="<?php echo e($page->id); ?>" name="id">
<input type="hidden" name="type" value="<?php echo e($page->type); ?>">
<div class="row">
<div class="col-sm-12">
<div class="form-group row">
<label for="first_name"
class="col-sm-2 col-form-label require <?php echo e(languageDirection() == 'ltr' ? 'pe-0' : 'ps-0'); ?>"><?php echo e(__('Name')); ?>
</label>
<div class="col-sm-6">
<input type="text" placeholder="<?php echo e(__('Name')); ?>"
class="form-control inputFieldDesign" id="name" name="name" required
value="<?php echo e(!empty(old('name')) ? old('name') : $page->name); ?>"
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row">
<label for="first_name"
class="col-sm-2 col-form-label require <?php echo e(languageDirection() == 'ltr' ? 'pe-0' : 'ps-0'); ?>"><?php echo e(__('Slug')); ?>
</label>
<div class="col-sm-6">
<input type="text" placeholder="<?php echo e(__('Slug')); ?>"
class="form-control inputFieldDesign" id="slug" name="slug" required
value="<?php echo e(!empty(old('name')) ? old('name') : $page->slug); ?>"
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row mb-15">
<label for="meta_title"
class="col-sm-2 text-left col-form-label"><?php echo e(__('Layout')); ?></label>
<div class="col-sm-6">
<select class="form-control select2-hide-search" name="layout">
<?php $__currentLoopData = $layouts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $layout): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option <?php echo e($page->layout == $layout ? 'selected' : ''); ?>
value="<?php echo e($layout); ?>">
<?php echo e(ucFirst(str_replace('_', ' ', $layout))); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<?php if($page->default != 1): ?>
<div class="form-group row">
<label for="Status"
class="col-sm-2 col-form-label"><?php echo e(__('Status')); ?></label>
<div class="col-sm-6">
<input type="hidden" name="status" value="Inactive">
<div class="switch switch-bg d-inline m-r-10">
<input class="status status_c" type="checkbox" value="Active"
name="status" id="is_private"
<?php echo e($page->status == 'Active' ? 'checked' : ''); ?>>
<label for="is_private" class="cr"></label>
</div>
</div>
</div>
<?php endif; ?>
<?php if($page->type == 'home' && $page->default != 1): ?>
<div class="form-group row">
<label for="Status"
class="col-sm-2 col-form-label"><?php echo e(__('Default')); ?></label>
<div class="col-sm-6 d-flex">
<input type="hidden" name="default" value="0">
<div class="switch switch-bg d-inline m-r-10 mt-1">
<input class="is_private default_c" type="checkbox"
value="1" name="default" id="default"
<?php echo e($page->default == 1 ? 'checked' : ''); ?>>
<label for="default" class="cr"></label>
</div>
<div class="mt-2">
<span class="badge badge-danger mt-1"><?php echo e(__('Note')); ?>!</span>
<small
class="mt-1 <?php echo e(languageDirection() == 'ltr' ? 'ms-2' : 'me-2'); ?>"><?php echo e(__('Status must be active to make it default.')); ?></small>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<div class="row">
<div class="col-sm-9">
<div class="form-group row">
<label for="meta_title"
class="col-sm-2 text-left col-form-label"><?php echo e(__('Meta Title')); ?></label>
<div class="col-sm-8">
<input type="text" class="form-control inputFieldDesign" name="meta_title"
placeholder="<?php echo e(__('Meta Title')); ?>"
value="<?php echo e(!empty(old('meta_title')) ? old('meta_title') : $page->meta_title); ?>">
</div>
</div>
<div class="form-group row mb-1">
<label for="meta_description"
class="col-sm-2 text-left col-form-label"><?php echo e(__('Meta Description')); ?></label>
<div class="col-sm-8">
<textarea class="form-control" name="meta_description"><?php echo e(!empty(old('meta_description')) ? old('meta_description') : $page->meta_description); ?></textarea>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 control-label"><?php echo e(__('Meta Image')); ?></label>
<div class="col-sm-8">
<div data-toggle="modal" data-target="#exampleModalCenter"
class="custom-file" data-val="single" id="image-status">
<input class="form-control up-images attachment d-none" name="attachment"
id="validatedCustomFile" accept="image/*">
<label class="custom-file-label overflow_hidden position-relative d-flex align-items-center"
for="validatedCustomFile"><?php echo e(__('Upload image')); ?></label>
</div>
<div id="img-container">
<!-- img will be shown here -->
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<div class="col-sm-3">
<div class="fixSize">
<a class="cursor_pointer" href='<?php echo e($page->fileUrl()); ?>'
data-lightbox="image-1"> <img
class="profile-user-img img-responsive fixSize neg-transition-scale"
src='<?php echo e($page->fileUrl()); ?>' alt="<?php echo e(__('Image')); ?>"
class="img-thumbnail attachment-styles"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 px-0">
<a href="<?php echo e(route(isset($isHome) ? 'page.home' : 'page.index')); ?>"
class="py-2 custom-btn-cancel <?php echo e(languageDirection() == 'ltr' ? 'me-2' : 'ms-2'); ?>"><?php echo e(__('Cancel')); ?></a>
<button class="btn custom-btn-submit page-submit <?php echo e(languageDirection() == 'ltr' ? 'me-2' : 'ms-2'); ?>" type="submit"
id="btnSubmit1"><?php echo e(__('Update')); ?></button>
<a href="<?php echo e(route($page->type == 'home' ? 'builder.edit' : 'pb.edit', ['slug' => $page->slug])); ?>"
class="btn btn-warning has-spinner-loader"><?php echo e(__('Page Builder')); ?></a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php echo $__env->make('mediamanager::image.modal_image', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset('public/dist/js/custom/validation.min.js')); ?>"></script>
<script src="<?php echo e(asset('Modules/CMS/Resources/assets/js/page.min.js')); ?>"></script>
<script src="<?php echo e(asset('Modules/CMS/Resources/assets/js/app.min.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/Modules/CMS/Resources/views/edit.blade.php ENDPATH**/ ?>
|