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/www/storage-old/framework/views/ |
<?php $__env->startSection('title'); ?>
<?php if(isset($label)): ?>
<?php echo e(trans("corporate::clients.edit_label_title")); ?>
<?php else: ?>
<?php echo e(trans("corporate::clients.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.corporate.events.index'); ?>"><?php echo e(trans('corporate::events.breadcrumbs_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.corporate.events.index'); ?>"><?php echo e(trans('corporate::events.page_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<?php if(isset($obj)): ?>
<a href="#"><?php echo e(trans('corporate::events.edit_title')); ?></a>
<?php else: ?>
<a href="#"><?php echo e(trans('corporate::events.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/corporate/events') . '/' . $obj->id, 'method' => 'put', 'class' => 'bf form-horizontal', 'files'=> true)); ?>
<?php else: ?>
<?php echo Form::open(array('url' => URL::to('admin/corporate/events'), '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('corporate::events.edit_title')); ?>
<?php else: ?>
<?php echo e(trans('corporate::events.create_new_title')); ?>
<?php endif; ?>
</div>
<div class="actions btn-set">
<a href="<?php echo e(route('admin.corporate.events.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(); ?>
<?php /*<?php if(count($errors) > 0): ?>*/ ?>
<?php /*<div class="alert alert-danger">*/ ?>
<?php /*<ul>*/ ?>
<?php /*<?php foreach($errors->all() as $error): ?>*/ ?>
<?php /*<li><?php echo e($error); ?></li>*/ ?>
<?php /*<?php endforeach; ?>*/ ?>
<?php /*</ul>*/ ?>
<?php /*</div>*/ ?>
<?php /*<?php endif; ?>*/ ?>
<!--GENERAL-->
<div class="portlet">
<div class="portlet-title">
<div class="caption"><h4>General details</h4></div>
</div>
<div class="portlet-body">
<div class="row">
<div class="col-md-6">
<!--account-->
<div class="form-group <?php echo e($errors->has('account_id') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_account_new')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::select('account_id',$form['accounts_opt'],null,['class' => 'form-control']); ?>
<span class="help-block"><?php echo e($errors->first('account_id', ':message')); ?></span>
</div>
</div>
<!--end account-->
<!--client-->
<div class="form-group <?php echo e($errors->has('client_id') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_client')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::select('client_id',$form['clients_opt'],null,['class' => 'form-control select2','placeholder'=>'']); ?>
<span class="help-block"><?php echo e($errors->first('client_id', ':message')); ?></span>
</div>
</div>
<!--end client-->
<!--title-->
<div class="form-group <?php echo e($errors->has('title') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.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-->
<!--amount-->
<div class="form-group <?php echo e($errors->has('amount_value') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_amount')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<div class="input-group tooltips" title="Event value">
<span class="input-group-addon">
<i class="fa fa-gbp"></i>
</span>
<?php echo Form::text('amount_value', null, array('class' => 'form-control','placeholder'=>'')); ?>
</div>
<span class="help-block"><?php echo e($errors->first('amount_value', ':message')); ?></span>
</div>
</div>
<!--end amount-->
<!--zen commision-->
<div class="form-group <?php echo e($errors->has('commision_value') ? 'has-error' : ''); ?>" style="display: none;">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_account_commision')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<div class="input-group tooltips" title="Company commision">
<span class="input-group-addon">
<i class="fa fa-gbp"></i>
</span>
<?php echo Form::text('commision_value', null, array('class' => 'form-control addvalues','placeholder'=>'')); ?>
</div>
<span class="help-block"><?php echo e($errors->first('commision_value', ':message')); ?></span>
</div>
</div>
<!--end zen commision-->
</div>
<!--end row left-->
<!--col right-->
<div class="col-md-6">
<!--duration-->
<div class="form-group <?php echo e($errors->has('duration') ? 'has-error' : ''); ?>" style="display: none;">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_duration')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('duration', null, array('class' => 'form-control')); ?>
<span class="help-block"><?php echo e($errors->first('duration', ':message')); ?></span>
</div>
</div>
<!--end duration-->
<!--date-->
<div class="form-group <?php echo e(($errors->has('event_date') || $errors->has('event_hour')) ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_date')); ?> & <?php echo e(trans('corporate::events.form_hour')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-5">
<div class="input-group date form_meridian_datetime" data-date-format="yyyy-mm-dd">
<span class="input-group-btn">
<button class="btn default date-set" type="button"><i class="fa fa-calendar"></i></button>
</span>
<?php echo Form::text('event_date',@$obj?$obj->event_date->format('Y-m-d'):null, array('class'=>'form-control','size'=>16)); ?>
</div>
<span class="help-block"><?php echo e($errors->first('event_date', ':message')); ?></span>
</div>
<div class="col-md-4">
<div class="input-group">
<span class="input-group-btn">
<button class="btn default date-set" type="button"><i class="fa fa-clock-o"></i></button>
</span>
<?php echo Form::text('event_hour',null, array('class'=>'form-control', 'placeholder'=>date('H:i'))); ?>
</div>
<span class="help-block"><?php echo e($errors->first('event_hour', ':message')); ?></span>
</div>
</div>
<!--end date-->
<!--postcode-->
<div class="form-group <?php echo e($errors->has('addr_postcode') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_addr_postcode')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('addr_postcode', null, array('class' => 'form-control')); ?>
<span class="help-block"><?php echo e($errors->first('addr_postcode', ':message')); ?></span>
</div>
</div>
<!--end postcode-->
<!--address-->
<div class="form-group <?php echo e($errors->has('addr_address') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_addr_address')); ?>
<span class="required" aria-required="true">*</span>
</label>
<div class="col-md-9">
<?php echo Form::text('addr_address', null, array('class' => 'form-control')); ?>
<span class="help-block"><?php echo e($errors->first('addr_address', ':message')); ?></span>
</div>
</div>
<!--end address-->
<!--state-->
<div class="form-group <?php echo e($errors->has('addr_state') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_addr_state')); ?>
<?php /*<span class="required" aria-required="true">*</span>*/ ?>
</label>
<div class="col-md-9">
<?php echo Form::text('addr_state', null, array('class' => 'form-control')); ?>
<span class="help-block"><?php echo e($errors->first('addr_state', ':message')); ?></span>
</div>
</div>
<!--end state-->
<!--city-->
<div class="form-group <?php echo e($errors->has('addr_city') ? 'has-error' : ''); ?>">
<label class="control-label col-md-3">
<?php echo e(trans('corporate::events.form_addr_city')); ?>
<?php /*<span class="required" aria-required="true">*</span>*/ ?>
</label>
<div class="col-md-9">
<?php echo Form::text('addr_city', null, array('class' => 'form-control')); ?>
<span class="help-block"><?php echo e($errors->first('addr_city', ':message')); ?></span>
</div>
</div>
<!--end city-->
</div>
<!--end col right-->
</div>
</div>
</div>
<!--END GENERAL-->
<!--Therapists-->
<div class="portlet" style="display: none;">
<div class="portlet-title">
<div class="caption"><h4>Therapist</h4></div>
<div class="actions">
<button type="button" class="btn btn-xs blue tooltips add_therapist" title="" data-original-title="Add"><i class="fa fa-plus"></i></button>
</div>
</div>
<div class="portlet-body" id="therapists">
<?php /*no therapists error*/ ?>
<?php if($errors->has('therapists')): ?>
<div class="form-group has-error">
<div class="col-md-9">
<span class="help-block"><i class="fa fa-info-circle"></i> <?php echo e($errors->first('therapists', ':message')); ?></span>
</div>
</div>
<?php endif; ?>
<?php /*end no therapists error*/ ?>
<?php /*saved therapists: edit page*/ ?>
<?php if(isset($form['saved_therapists'])): ?>
<?php foreach($form['saved_therapists'] as $throw): ?>
<?php echo $__env->make('corporate::admin.events.partial_saved_therapist',['throw'=>$throw,'form'=>$form], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endforeach; ?>
<?php endif; ?>
<?php /*end saved therapists: edit page*/ ?>
<?php /*page therapists*/ ?>
<?php if(isset($form['therapists']['therapist_id'])): ?>
<?php foreach(@$form['therapists']['therapist_id'] as $key=>$val): ?>
<?php echo $__env->make("corporate::admin.events.partial_new_therapist",['fields'=>$form['therapists'],'key'=>$key,'form'=>$form], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endforeach; ?>
<?php endif; ?>
<?php /*end page therapists*/ ?>
</div>
</div>
<!--END Therapists-->
</div>
<!--/form-->
<!--actions-->
<div class="portlet-title">
<div class="actions btn-set">
<a href="<?php echo e(route('admin.corporate.events.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>
jQuery(document).ready(function(){
$(".form_meridian_datetime").datepicker({
isRTL: Metronic.isRTL(),
format: "yyyy-mm-dd",
autoclose: true,
});
//add new address
$('.add_therapist').click(function(){
$.ajax({
url: "<?php echo e(route('admin.corporate.events.addtherapist')); ?>",
method: "GET",
dataType: "html",
cache: false,
})
.done(function(html) {
$("#therapists").append(html);
$(".tooltips").tooltip();
});
});
//delete address
$("body").on('click','.delete_therapist', function(){
$(this).closest('.throw').remove();
var delId = $(this).attr('evth_id');
if (delId != undefined){
$.ajax({
url: "<?php echo e(route('admin.corporate.events.deltherapist',['id'=>''])); ?>/"+delId,
method: "GET",
cache: false,
});
} //endif
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>