Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/public_html/storage/framework/views/ |
<?php $__env->startSection('title'); ?>
<?php if(isset($label)): ?>
<?php echo e(trans("pages::pages.edit_label_title")); ?>
<?php else: ?>
<?php echo e(trans("pages::pages.create_label_title")); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- BEGIN PAGE HEADER-->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<i class="fa fa-home"></i>
<a href="<?php echo url(''); ?>"><?php echo e(trans('general.breadcrumbs_home')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.pages.index'); ?>"><?php echo e(trans('pages::pages.breadcrumbs_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.pages.index'); ?>"><?php echo e(trans('pages::pages.page_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<?php if(isset($obj)): ?>
<a href="#"><?php echo e(trans('pages::pages.edit_title')); ?></a>
<?php else: ?>
<a href="#"><?php echo e(trans('pages::pages.create_new_title')); ?></a>
<?php endif; ?>
</li>
</ul>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
<div class="col-md-12">
<?php if(isset($obj)): ?>
<?php echo Form::model($obj, array('url' => URL::to('admin/pages') . '/' . $obj->id, 'method' => 'put', 'class' => 'bf form-horizontal', 'files'=> true)); ?>
<?php else: ?>
<?php echo Form::open(array('url' => URL::to('admin/pages'), 'method' => 'post', 'class' => 'bf form-horizontal', 'files'=> true)); ?>
<?php endif; ?>
<div class="portlet">
<div class="portlet-title">
<div class="caption">
<?php if(isset($obj)): ?>
<?php echo e(trans('pages::pages.edit_title')); ?>
<?php else: ?>
<?php echo e(trans('pages::pages.create_new_title')); ?>
<?php endif; ?>
</div>
<div class="actions btn-set">
<a href="<?php echo e(route('admin.pages.index')); ?>" name="back" class="btn default"><i class="fa fa-angle-left"></i> <?php echo e(trans('general.action_back')); ?></a>
<button class="btn default" type="reset"><i class="fa fa-reply"></i> <?php echo e(trans('general.action_reset')); ?></button>
<button class="btn green" name="save" value="save"><i class="fa fa-check"></i> <?php echo e(trans('general.action_save')); ?></button>
<button class="btn blue" name="save_exit" value="save_exit"><?php echo e(trans('general.action_save_exit')); ?> <i class="fa fa-arrow-circle-right"></i></button>
</div>
</div>
<!--form-->
<div class="portlet-body">
<?php echo $__env->make('flash::message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!--GENERAL-->
<div class="portlet light">
<div class="portlet-title tabbable-line">
<div class="caption caption-md">
<i class="icon-globe theme-font hide"></i>
<span class="caption uppercase"></span>
</div>
<ul class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#tab_general" data-toggle="tab">General</a>
</li>
<li>
<a href="#tab_layout" data-toggle="tab">Layout</a>
</li>
<li>
<a href="#tab_seo" data-toggle="tab">Seo</a>
</li>
</ul>
</div>
<div class="portlet-body">
<div class="tab-content">
<!--general-->
<div role="tabpanel" class="tab-pane active" id="tab_general">
<div class="row">
<div class="col-md-8">
<!--parent_id-->
<div class="form-group <?php echo e($errors->has('parent_id') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_parent_id')); ?>
</label>
<div class="col-md-9">
<?php echo Form::select('parent_id', $form['parents'], @$obj?$obj->parent_id:0, ['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('parent_id', ':message')); ?></span>
</div>
</div>
<!--end parent_id-->
<!--title-->
<div class="form-group <?php echo e($errors->has('title') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_title')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('title', null, array('class' => 'form-control','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('title', ':message')); ?></span>
</div>
</div>
<!--end title-->
<!--subtitle-->
<div class="form-group <?php echo e($errors->has('subtitle') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_subtitle')); ?>
</label>
<div class="col-md-9">
<?php echo Form::textarea('subtitle', null, array('class' => 'form-control','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('subtitle', ':message')); ?></span>
</div>
</div>
<!--end subtitle-->
<!--body-->
<div class="form-group <?php echo e($errors->has('body') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_body')); ?>
</label>
<div class="col-md-9">
<?php echo Form::textarea('body', null, array('class' => 'form-control ckeditor','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('body', ':message')); ?></span>
</div>
</div>
<!--end body-->
<!--link_title-->
<div class="form-group <?php echo e($errors->has('link_title') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_link_title')); ?>
</label>
<div class="col-md-9">
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-info-circle"></i>
</span>
<?php echo Form::text('link_title', null, array('class' => 'form-control','placeholder'=>'')); ?>
</div>
<span class="help-block"><?php echo e($errors->first('link_title', ':message')); ?></span>
</div>
</div>
<!--end link_title-->
<!--link-->
<div class="form-group <?php echo e($errors->has('link') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_link')); ?>
</label>
<div class="col-md-9">
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-link"></i>
</span>
<?php echo Form::text('link', null, array('class' => 'form-control','placeholder'=>'')); ?>
</div>
<span class="help-block"><?php echo e($errors->first('link', ':message')); ?></span>
</div>
</div>
<!--end link-->
<!--feature image-->
<div class="form-group <?php echo e($errors->has('image_feature') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3"><?php echo e(trans('pages::pages.form_image_feature')); ?></label>
<div class="col-md-9">
<?php if(@$obj->image_feature): ?>
<div class="fileinput fileinput-exists" data-provides="fileinput">
<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px; line-height: 150px;">
<img src="data:image/jpeg;base64,<?php echo e(base64_encode($obj->image_feature_file)); ?>" alt=""/>
</div>
<div>
<span class="btn default btn-file">
<span class="fileinput-new">Select image </span>
<span class="fileinput-exists">Change </span>
<input type="hidden" value="" name="">
<input type="file" name="image_feature">
</span>
<a href="#" class="btn red fileinput-exists" data-dismiss="fileinput">Remove </a>
</div>
</div>
<?php else: ?>
<div class="fileinput fileinput-new" data-provides="fileinput">
<div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">
<img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=feature+image" alt=""/>
</div>
<div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;"></div>
<div>
<span class="btn default btn-file">
<span class="fileinput-new">Select image </span>
<span class="fileinput-exists">Change </span>
<input type="file" name="image_feature">
</span>
<a href="#" class="btn default fileinput-exists" data-dismiss="fileinput">Remove </a>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!--end feature image-->
<!--logo image-->
<div class="form-group <?php echo e($errors->has('image_logo') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3"><?php echo e(trans('pages::pages.form_image_logo')); ?></label>
<div class="col-md-9">
<?php if(@$obj->image_logo): ?>
<div class="fileinput fileinput-exists" data-provides="fileinput">
<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px; line-height: 150px;">
<img src="data:image/jpeg;base64,<?php echo e(base64_encode($obj->image_logo_file)); ?>" alt=""/>
</div>
<div>
<span class="btn default btn-file">
<span class="fileinput-new">Select image </span>
<span class="fileinput-exists">Change </span>
<input type="hidden" value="" name="">
<input type="file" name="image_logo">
</span>
<a href="#" class="btn red fileinput-exists" data-dismiss="fileinput">Remove </a>
</div>
</div>
<?php else: ?>
<div class="fileinput fileinput-new" data-provides="fileinput">
<div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">
<img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=feature+image" alt=""/>
</div>
<div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;"></div>
<div>
<span class="btn default btn-file">
<span class="fileinput-new">Select image </span>
<span class="fileinput-exists">Change </span>
<input type="file" name="image_logo">
</span>
<a href="#" class="btn default fileinput-exists" data-dismiss="fileinput">Remove </a>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!--end logo image-->
</div>
<div class="col-md-4">
<!--is_default-->
<div class="form-group <?php echo e($errors->has('is_active') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_is_active')); ?>
</label>
<div class="col-md-9 checkbox-list">
<label class="checkbox-inline">
<?php echo Form::checkbox('is_active', 1, @$obj?null:1); ?>
</label>
<span class="help-block"><?php echo e($errors->first('is_active', ':message')); ?></span>
</div>
</div>
<!--end is_default-->
</div>
<!--end row left-->
</div>
</div>
<!--end general-->
<!--layout-->
<div role="tabpanel" class="tab-pane" id="tab_layout">
<div class="row">
<div class="col-md-8">
<!--layout-->
<div class="form-group <?php echo e($errors->has('layout') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_layout')); ?>
</label>
<div class="col-md-9">
<?php echo Form::select('layout',$form['layouts'],null,['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('layout', ':message')); ?></span>
</div>
</div>
<!--end layout-->
<!--partial-->
<div class="form-group <?php echo e($errors->has('partial') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_partial')); ?>
</label>
<div class="col-md-9">
<?php echo Form::select('partial',$form['partials'],null,['class'=>'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('partial', ':message')); ?></span>
</div>
</div>
<!--end partial-->
</div>
</div>
</div>
<!--end layout-->
<!--seo-->
<div role="tabpanel" class="tab-pane" id="tab_seo">
<div class="row">
<div class="col-md-8">
<!--slug-->
<div class="form-group <?php echo e($errors->has('slug') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_slug')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('slug', null, array('class' => 'form-control','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('slug', ':message')); ?></span>
</div>
</div>
<!--end slug-->
<!--meta_title-->
<div class="form-group <?php echo e($errors->has('meta_title') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_meta_title')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('meta_title', null, array('class' => 'form-control','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('meta_title', ':message')); ?></span>
</div>
</div>
<!--end meta_title-->
<!--meta_desc-->
<div class="form-group <?php echo e($errors->has('meta_description') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_meta_description')); ?>
</label>
<div class="col-md-9">
<?php echo Form::text('meta_description', null, array('class' => 'form-control','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('meta_description', ':message')); ?></span>
</div>
</div>
<!--end meta_desc-->
<!--meta_keywords-->
<div class="form-group <?php echo e($errors->has('meta_keywords') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('pages::pages.form_meta_keywords')); ?>
</label>
<div class="col-md-9">
<?php echo Form::text('meta_keywords', null, array('class' => 'form-control','placeholder'=>'')); ?>
<span class="help-block"><?php echo e($errors->first('meta_keywords', ':message')); ?></span>
</div>
</div>
<!--end meta_keywords-->
</div>
</div>
</div>
<!--end seo-->
</div>
</div>
<div>
<!--END GENERAL-->
</div>
<!--/form-->
<!--actions-->
<div class="portlet-title">
<div class="actions btn-set">
<a href="<?php echo e(route('admin.pages.index')); ?>" name="back" class="btn default"><i class="fa fa-angle-left"></i> <?php echo e(trans('general.action_back')); ?></a>
<button class="btn default" type="reset"><i class="fa fa-reply"></i> <?php echo e(trans('general.action_reset')); ?></button>
<button class="btn green" name="save" value="save"><i class="fa fa-check"></i> <?php echo e(trans('general.action_save')); ?></button>
<button class="btn blue" name="save_exit" value="save_exit"><?php echo e(trans('general.action_save_exit')); ?> <i class="fa fa-arrow-circle-right"></i></button>
</div>
</div>
<!--/actions-->
</div>
<?php echo Form::close(); ?>
</div>
</div>
<!-- END PAGE CONTENT-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_page'); ?>
<?php echo \Illuminate\View\Factory::parentPlaceholder('scripts_page'); ?>
<script>
var CSRF_TOKEN = $('input[name="_token"]').val();
var title = $("input[name='title']");
var meta_title = $("input[name='meta_title']");
var slug = $("input[name='slug']");
obj_id=0;
<?php if(isset($obj)): ?>
var obj_id=<?php echo $obj->id; ?>;
<?php endif; ?>
title.keyup(function(){
//update meta title
if (obj_id==0)
meta_title.val(title.val());
//create slug
$.ajax({
headers: {
'X-CSRF-TOKEN': CSRF_TOKEN
},
url: "<?php echo e(route('admin.pages.create_slug')); ?>",
method: "POST",
data: {
'string':title.val(),
},
cache: false,
dataType: "text"
}).done(function(data) {
slug.val(data);
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradze/public_html/app/Modules/Pages/Resources/Views/admin/pages_create_edit.blade.php ENDPATH**/ ?>