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-old/framework/views/ |
<?php $__env->startSection('title'); ?>
<?php if(isset($label)): ?>
<?php echo e(trans("services::services.edit_label_title")); ?>
<?php else: ?>
<?php echo e(trans("services::services.create_label_title")); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css_page'); ?>
<link href="<?php echo e(asset('/themes/admin/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css')); ?>"
rel="stylesheet">
<?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.services.typeofmassage.index'); ?>"><?php echo e(trans('services::services.breadcrumbs_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.services.typeofmassage.index'); ?>"><?php echo e(trans('services::services.page_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<?php if(isset($obj)): ?>
<a href="#"><?php echo e(trans('services::services.edit_title')); ?></a>
<?php else: ?>
<a href="#"><?php echo e(trans('services::services.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/services/typeofsalontreatment') . '/' . $obj->id, 'method' => 'put', 'class' => 'bf form-horizontal', 'files'=> true)); ?>
<?php else: ?>
<?php echo Form::open(array('url' => URL::to('admin/services/typeofsalontreatment'), '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('services::services.edit_title')); ?>
<?php else: ?>
<?php echo e(trans('services::services.create_new_title')); ?>
<?php endif; ?>
</div>
<div class="actions btn-set">
<a href="<?php echo e(route('admin.services.typeofsalontreatment.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', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<!--GENERAL-->
<div class="portlet">
<div class="portlet-body">
<div class="row">
<div class="col-md-8">
<?php if(isset($user_id)): ?>
<!--Parent Category-->
<div class="form-group <?php echo e($errors->has('parent_category_id') ? 'has-error' : ''); ?> parent-category">
<label class="control-label col-md-3">
Parent Category
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php if(isset($obj->parent_category_id)): ?>
<?php echo Form::select('parent_category_id', $parent_category, $obj->parent_category_id,array('class' => 'form-control select2 parent_category_id' ));; ?>
<?php else: ?>
<?php echo Form::select('parent_category_id', $parent_category, 0,array('class' => 'form-control select2 parent_category_id' ));; ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('parent_category_id', ':message')); ?></span>
</div>
</div>
<!--end Parent Category-->
<?php endif; ?>
<!--end row left-->
</div>
</div>
<input type="hidden" name="click_id" value="<?php echo e($click_id); ?>">
<div class="row">
<h1>Sub Category</h1>
<div class="col-md-8">
<!--name-->
<div class="form-group <?php echo e($errors->has('subcategory_name') ? 'has-error' : ''); ?> sub_category_name">
<label class="control-label col-md-3">
<?php echo e(trans('services::services.form_name')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php if(isset($obj->name)): ?>
<?php echo Form::text('subcategory_name', $obj->name, array('class' => 'form-control','placeholder'=>'')); ?>
<?php else: ?>
<?php echo Form::text('subcategory_name', null, array('class' => 'form-control','placeholder'=>'')); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('name', ':message')); ?></span>
</div>
</div>
<!--end name-->
<!--is_existing_sub_category-->
<div class="form-group <?php echo e($errors->has('is_existing_sub_category') ? 'has-error' : ''); ?>" style="<?php echo e($is_edit ? 'display: none;' : ''); ?>">
<label class="control-label col-md-3">
Is Existing
</label>
<div class="col-md-9 checkbox-list">
<label class="checkbox-inline">
<?php echo Form::checkbox('is_existing_sub_category', 1, null ,array('class' => 'form-control is-massage is-existing-sub-category' ));; ?>
</label>
<span class="help-block"><?php echo e($errors->first('is_existing_sub_category', ':message')); ?></span>
</div>
</div>
<!--end is_existing_sub_category-->
<?php if(isset($user_id)): ?>
<!--Parent Category-->
<div class="form-group <?php echo e($errors->has('sub_category_id') ? 'has-error' : ''); ?> sub_category_id" style="display: none;">
<label class="control-label col-md-3">
Sub Category
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php if(isset($obj->sub_category_id)): ?>
<?php echo Form::select('sub_category_id', $parent_category, $obj->parent_category_id,array('class' => 'form-control select2' ));; ?>
<?php else: ?>
<?php echo Form::select('sub_category_id', [], 0,array('class' => 'form-control select2' ));; ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('sub_category_id', ':message')); ?></span>
</div>
</div>
<!--end Parent Category-->
<?php endif; ?>
<!--end row left-->
</div>
</div>
<div class="row">
<h1>Sub Sub Category</h1>
<div class="col-md-8">
<?php if(isset($obj->subCategory[0]->id)): ?>
<input type="hidden" name="subsubcategory_id" value="<?php echo e($obj->subCategory[0]->id); ?>">
<?php endif; ?>
<!--name-->
<div class="form-group <?php echo e($errors->has('subsubcategory_name') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('services::services.form_name')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php if(isset($obj->subCategory[0]->name)): ?>
<?php echo Form::text('subsubcategory_name', $obj->subCategory[0]->name, array('class' => 'form-control','placeholder'=>'')); ?>
<?php else: ?>
<?php echo Form::text('subsubcategory_name', null, array('class' => 'form-control','placeholder'=>'')); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('name', ':message')); ?></span>
</div>
</div>
<!--end name-->
<!--body-->
<div class="form-group <?php echo e($errors->has('subsubcategory_body') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('services::services.form_body')); ?>
</label>
<div class="col-md-9">
<?php if(isset($obj->subCategory[0]->body)): ?>
<?php echo Form::textarea('subsubcategory_body', $obj->subCategory[0]->body, array('class' => 'form-control ckeditor','placeholder'=>'')); ?>
<?php else: ?>
<?php echo Form::textarea('subsubcategory_body', null, array('class' => 'form-control ckeditor','placeholder'=>'')); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('body', ':message')); ?></span>
</div>
</div>
<!--end body-->
<?php
$condition = false;
if($is_edit && isset($count_subsubcategory) && $count_subsubcategory == 0){
$condition = true;
}
?>
<!--duration-->
<div class="form-group <?php echo e($errors->has('subsubcategory_duration') ? 'has-error' : ''); ?> subsubcategory_hs" style="<?php echo e($condition ? '' : 'display: none;'); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('services::duration.form_duration')); ?>
<!-- <span class="required" aria-required="true">*</span> -->
</label>
<div class="col-md-9">
<?php if(isset($obj->subCategory[0]->duration)): ?>
<?php echo Form::number("subsubcategory_duration", $obj->subCategory[0]->duration->duration, array('class' => 'form-control','placeholder'=>trans('services::duration.form_duration_placeholder'))); ?>
<?php else: ?>
<?php echo Form::number('subsubcategory_duration', null, array('class' => 'form-control','placeholder'=>trans('services::duration.form_duration_placeholder'),'min'=>15)); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('subsubcategory_duration', ':message')); ?></span>
</div>
</div>
<!--end duration-->
<!--price-->
<div class="form-group <?php echo e($errors->has('subsubcategory_price') ? 'has-error' : ''); ?> subsubcategory_hs" style="<?php echo e($condition ? '' : 'display: none;'); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('services::duration.form_price')); ?>
<!-- <span class="required" aria-required="true">*</span> -->
</label>
<div class="col-md-9">
<?php if(isset($obj->subCategory[0]->duration)): ?>
<?php echo Form::text("subsubcategory_price", $obj->subCategory[0]->duration->price, array('class' => 'form-control','placeholder'=>'')); ?>
<?php else: ?>
<?php echo Form::text('subsubcategory_price', null, array('class' => 'form-control','placeholder'=>'')); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('subsubcategory_price', ':message')); ?></span>
</div>
</div>
<!--end price-->
<!--price-->
<div class="form-group <?php echo e($errors->has('subsubcategory_discounted_price') ? 'has-error' : ''); ?> subsubcategory_hs" style="<?php echo e($condition ? '' : 'display: none;'); ?>">
<label class="control-label col-md-3">
Discounted price
<!-- <span class="required" aria-required="true">*</span> -->
</label>
<div class="col-md-9">
<?php if(isset($obj->subCategory[0]->duration)): ?>
<?php echo Form::text("subsubcategory_discounted_price", $obj->subCategory[0]->duration->discounted_price, array('class' => 'form-control','placeholder'=>'')); ?>
<?php else: ?>
<?php echo Form::text("subsubcategory_discounted_price", null, array('class' => 'form-control','placeholder'=>'')); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('subsubcategory_discounted_price', ':message')); ?></span>
</div>
</div>
<!--end price-->
<!--price-->
<div class="form-group <?php echo e($errors->has('website_redirect_url') ? 'has-error' : ''); ?> subsubcategory_hs" style="<?php echo e($condition ? '' : 'display: none;'); ?>">
<label class="control-label col-md-3">
Website Redirect URL
<!-- <span class="required" aria-required="true">*</span> -->
</label>
<div class="col-md-9">
<?php if(isset($obj->subCategory[0]->duration)): ?>
<?php echo Form::text("website_redirect_url", $obj->subCategory[0]->duration->website_redirect_url, array('class' => 'form-control','placeholder'=>'')); ?>
<?php else: ?>
<?php echo Form::text("website_redirect_url", null, array('class' => 'form-control','placeholder'=>'')); ?>
<?php endif; ?>
<span class="help-block"><?php echo e($errors->first('website_redirect_url', ':message')); ?></span>
</div>
</div>
<!--end price-->
<!--is package-->
<div class="form-group <?php echo e($errors->has('add_pricing_&_duration') ? 'has-error' : ''); ?> subsubcategory_hs" style="<?php echo e($condition ? '' : 'display: none;'); ?>">
<label class="control-label col-md-3">
Is Package
</label>
<div class="col-md-9 checkbox-list">
<label class="checkbox-inline">
<?php if(isset($obj->subCategory[0]->duration)): ?>
<?php echo Form::checkbox('is_package', 1, $obj->subCategory[0]->duration->is_package ,array('class' => 'form-control is-package' ));; ?>
<?php else: ?>
<?php echo Form::checkbox('is_package', 1, 0 ,array('class' => 'form-control is-package' ));; ?>
<?php endif; ?>
</label>
<span class="help-block"><?php echo e($errors->first('add-pricing-duration', ':message')); ?></span>
</div>
</div>
<!--end is package-->
<!--add_pricing_&_duration-->
<div class="form-group <?php echo e($errors->has('add_pricing_&_duration') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
Add pricing & duration
</label>
<div class="col-md-9 checkbox-list">
<label class="checkbox-inline">
<?php if($condition): ?>
<?php echo Form::checkbox('add_pricing_duration', 1, 1 ,array('class' => 'form-control is-massage add-pricing-duration' ));; ?>
<?php else: ?>
<?php echo Form::checkbox('add_pricing_duration', 1, 0 ,array('class' => 'form-control is-massage add-pricing-duration' ));; ?>
<?php endif; ?>
</label>
<span class="help-block"><?php echo e($errors->first('add-pricing-duration', ':message')); ?></span>
</div>
</div>
<!--end add_pricing_&_duration-->
<!--end row left-->
</div>
</div>
<div class="row subsubsubcategory" style="<?php echo e(!$condition ? '' : 'display: none;'); ?>">
<?php if(isset($obj->subCategory[0]->subsubCategory) && !$condition): ?>
<?php echo $__env->make('services::admin.salon_sub_sub_sub_category', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>
</div>
<button id="addRow" type="button" class="btn btn-success add_new_time">
<i class="fa fa-plus"></i>
</button>
</div>
<!--END GENERAL-->
</div>
<!--/form-->
<!--actions-->
<div class="portlet-title">
<div class="actions btn-set">
<a href="<?php echo e(route('admin.services.typeofsalontreatment.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'); ?>
@parent
<script src="<?php echo e(asset('/themes/admin/assets/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js')); ?>"
type="text/javascript"></script>
<script src="<?php echo e(asset('/themes/admin/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js')); ?>"
type="text/javascript"></script>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> -->
<!-- JavaScript and JQuery -->
<!-- <script>
$(document).ready(function(e){
$(".is-massage").change(function(){
if($('.is-massage').is(':checked')){
$(".parent-category").hide();
} else {
$(".parent-category").show();
}
});
});
</script> -->
<script>
// console.log(sessionStorage.getItem("current_values"), typeof(sessionStorage.getItem("current_values")));
var count;
var current_values;
if(sessionStorage.getItem("current_values")){
current_values = JSON.parse(sessionStorage.getItem("current_values"));
count = current_values.length;
current_values.forEach((item, index) => {
$.ajax({
type: 'GET',
url: "<?php echo e(route('admin.services.salon_sub_sub_sub_caetgory', ['count' => ''])); ?>"+ "/" + item,
cache: false,
beforeSend: function () {},
dataType: "html",
}).done(function (data) {
// el.parents('row').next('subsubsubcategory').after(data);
$(".subsubsubcategory").append(data);
});
});
} else {
current_values = [];
count = 0;
}
$('button.add_new_time').click(function() {
var el = $(this);
count++;
current_values.push(count);
sessionStorage.setItem("current_values", JSON.stringify(current_values));
console.log(sessionStorage.getItem("current_values"));
// var url = "admin/services/salon-sub-sub-sub-category"+ "/" + count;
// alert(url);
$.ajax({
type: 'GET',
url: "<?php echo e(route('admin.services.salon_sub_sub_sub_caetgory', ['count' => ''])); ?>"+ "/" + count,
cache: false,
beforeSend: function () {},
dataType: "html",
}).done(function (data) {
// el.parents('row').next('subsubsubcategory').after(data);
$(".subsubsubcategory").append(data);
});
});
// remove row
$(document).on('click', '.remove_item', function () {
var el = $(this);
var value = Number($(this).val());
// console.log(typealue)), typeof(current_values));
count--;
const index = current_values.indexOf(value);
console.log("index: ", index);
if (index > -1) { // only splice array when item is found
current_values.splice(index, 1); // 2nd parameter means remove one item only
}
sessionStorage.setItem("current_values", JSON.stringify(current_values));
console.log(sessionStorage.getItem("current_values"));
el.parent("div").remove();
// console.log(el);
// sessionStorage.removeItem("current_values");
});
// delete_item
$(document).on('click', '.delete_item', function () {
var el = $(this);
var value = Number($(this).val());
$.ajax({
type: 'GET',
url: "<?php echo e(route('admin.services.salon_sub_sub_sub_caetgory_delete', ['id' => ''])); ?>"+ "/" + value,
cache: false,
beforeSend: function () {},
dataType: "html",
}).done(function (data) {
console.log(data);
if(data.success){
el.parent("div").remove();
}
});
// el.parent("div").remove();
});
//is-existing-sub-category
$(document).on('click', '.is-existing-sub-category', function () {
element = $('.sub_category_name');
element2 = $('.sub_category_id');
console.log($(this).checked);
if ($(this).prop('checked') == false){
//hide the element
element.show();
element2.hide();
} else {
element2.show()
//show the element
element.hide();
}
});
//add-pricing-&-duration
$(document).on('click', '.add-pricing-duration', function () {
element = $('.subsubsubcategory');
element2 = $('.subsubcategory_hs');
if ($(this).prop('checked') == false){
//hide the element
element.show();
element2.hide();
} else {
element2.show()
//show the element
element.hide();
}
});
// parent_category_id
$(document).on('change', '.parent_category_id', function () {
console.log("here",$(this).val());
var el = $('[name=sub_category_id]');
$.ajax({
type: 'GET',
url: "<?php echo e(route('admin.services.get-sub-categories', ['id' => ''])); ?>"+ "/" + $(this).val(),
cache: false,
beforeSend: function () {},
dataType: "json",
}).done(function (data) {
// el.parents('row').next('subsubsubcategory').after(data);
var newOption0 = new Option('----select subcategory----', 0, false, false);
el.html(newOption0).trigger('change');
console.log(data);
Object.keys(data).forEach(function(res) {
console.log(res, data[res]);
var newOption = new Option(data[res], res, false, false);
el.append(newOption);
})
// el.add(new Option('Text', 'value'));
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>