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/framework/views/ |
<?php $__env->startSection('content'); ?>
<div class="page-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.users.therapists.index'); ?>"><?php echo e(trans('users::therapists.breadcrumbs_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="<?php echo route('admin.users.therapists.index'); ?>"><?php echo e(trans('users::therapists.page_title')); ?></a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="#"><?php echo e(trans('users::therapists.show_title')); ?></a>
</li>
</ul>
<div class="page-toolbar">
<a href="<?php echo e(route('admin.users.therapists.index')); ?>" class="btn blue">
<i class="fa fa-angle-left"></i>
<?php echo e(trans('general.action_back')); ?>
</a>
</div>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row margin-top-20">
<div class="col-md-12">
<!-- BEGIN PROFILE SIDEBAR -->
<div class="profile-sidebar">
<!-- PORTLET MAIN -->
<div class="portlet light profile-sidebar-portlet">
<!-- SIDEBAR USERPIC -->
<div class="profile-userpic">
<?php if($obj->avatar): ?>
<img src="data:image/jpeg;base64,<?php echo e(base64_encode($obj->avatar)); ?>" class="img-responsive" alt="">
<?php endif; ?>
</div>
<!-- END SIDEBAR USERPIC -->
<!-- SIDEBAR USER TITLE -->
<div class="profile-usertitle">
<div class="profile-usertitle-name">
<?php echo e($obj->name); ?>
</div>
<div class="profile-usertitle-job">
<?php echo e($obj->role); ?>
</div>
</div>
<!-- END SIDEBAR USER TITLE -->
<!-- SIDEBAR MENU -->
<div class="profile-usermenu">
<ul class="nav">
<li class="active">
<a href="<?php echo e(route('admin.users.therapists.show',['id'=>$obj->id])); ?>">
<i class="icon-home"></i>
<?php echo e(trans('users::therapists.overview_title')); ?>
</a>
</li>
<li>
<a href="<?php echo e(route('admin.users.therapists.edit',['id'=>$obj->id])); ?>">
<i class="icon-settings"></i>
<?php echo e(trans('users::therapists.settings_title')); ?>
</a>
</li>
</ul>
</div>
<!-- END MENU -->
<div class="portlet light">
<div>
<h4 class="profile-desc-title">About <?php echo e($obj->name); ?></h4>
<div class="margin-top-10 profile-desc-link">
<i class="fa fa-phone"></i>
<a href="tel:<?php echo e($obj->profile->mobile_number); ?>"><?php echo e($obj->profile->mobile_number); ?></a>
</div>
<div class="margin-top-10 profile-desc-link">
<i class="fa fa-envelope"></i>
<a href="mailto:<?php echo e($obj->email); ?>"><?php echo e($obj->email); ?></a>
</div>
<div class="margin-top-20">
<span class="profile-desc-text"><?php echo e(str_limit($obj->profile->about,200)); ?></span>
</div>
</div>
</div>
</div>
<!-- END PORTLET MAIN -->
</div>
<!-- END BEGIN PROFILE SIDEBAR -->
<!-- BEGIN PROFILE CONTENT -->
<div class="profile-content">
<!--Bookings-->
<div class="row">
<div class="col-md-12">
<!-- BEGIN PORTLET -->
<div class="portlet light ">
<div class="portlet-title">
<div class="caption caption-md">
<i class="icon-bar-chart theme-font hide"></i>
<span class="caption-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_bookings')); ?></span>
</div>
<div class="actions">
</div>
</div>
<div class="portlet-body">
<table class="table table-striped table-bordered table-advance table-hover table-condensed">
<thead>
<tr>
<th>
<?php echo e(trans('users::therapists.col_client')); ?>
</th>
<th>
<?php echo e(trans('users::therapists.col_location')); ?>
</th>
<th>
<?php echo e(trans('users::therapists.col_date_hour')); ?>
</th>
<th>
<?php echo e(trans('users::therapists.col_duration')); ?>
</th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($bookings as $bo): ?>
<?php $booking = $bo->booking;?>
<?php /*<?php echo e(dd($booking->user->name)); ?>*/ ?>
<tr>
<td>
<?php if($booking->user): ?>
<?php echo e($booking->user->name); ?>
<?php endif; ?>
</td>
<td><?php echo e($booking->address); ?> <?php if($booking->address != $booking->location): ?>, <?php echo e($booking->location); ?> <?php endif; ?></td>
<td><?php echo e($booking->date_to_human); ?> <?php echo e($booking->hour_to_human); ?></td>
<td><?php echo e($booking->duration); ?></td>
<td>
<?php /*<a href="<?php echo e(route('admin.schedules.bookings.show',['bookings'=>$booking->id])); ?>" title="details" class="btn btn-xs default tooltips"><i class="fa fa-eye"></i> <?php echo e(trans('general.action_view')); ?></a>*/ ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<!-- END PORTLET -->
</div>
</div>
<!--End Bookings-->
<div class="row">
<div class="col-md-6">
<!--Working days-->
<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-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_working_days')); ?></span>
</div>
</div>
<div class="portlet-body">
<table class="table table-striped table-bordered table-advance table-hover table-condensed">
<thead>
<tr>
<th width="30%"><?php echo e(trans('schedules::bo.col_name')); ?></th>
<th width="20%"><?php echo e(trans('schedules::bo.col_bo_start')); ?></th>
<th width="20%"><?php echo e(trans('schedules::bo.col_bo_end')); ?></th>
</tr>
</thead>
<tbody>
<?php foreach($workingdays as $workday): ?>
<tr>
<td>
<?php echo e($workday->name); ?>
</td>
<?php if($workday->dayoff): ?>
<td colspan="2">
<label class="label label-danger col-md-12">
<?php /*<div class="pull-left"></div>*/ ?>
<i class="fa fa-coffee"></i>
DAY OFF
</label>
</td>
<?php else: ?>
<td><?php echo e($workday->bo_start); ?></td>
<td><?php echo e($workday->bo_end); ?></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<!--END Working days-->
<!--Service duration commisions-->
<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-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_services_duration_commisions')); ?></span>
</div>
</div>
<div class="portlet-body">
<table class="table table-striped table-bordered table-advance table-hover table-condensed">
<thead>
<tr>
<th width="30%"><?php echo e(trans('users::therapists.tabel_services_duration_name')); ?></th>
<th width="30%"><?php echo e(trans('users::therapists.tabel_services_duration_price')); ?></th>
<th width="20%"><?php echo e(trans('users::therapists.tabel_services_duration_commision_co')); ?></th>
<th width="20%"><?php echo e(trans('users::therapists.tab_services_duration_commision_th')); ?></th>
</tr>
</thead>
<tbody>
<?php foreach($services_duration_commisions as $item): ?>
<tr>
<td <?php if(!$item['is_custom']): ?> class="danger" <?php endif; ?>>
<?php echo e($item['name']); ?>
<?php if($item['is_default']): ?>
<span class='badge badge-primary badge-roundless'><?php echo e(trans('services::duration.text_default_session')); ?></span>
<?php elseif($item['is_extra']): ?>
<span class='badge badge-warning badge-roundless'><?php echo e(trans('services::duration.text_extra_session')); ?></span>
<?php endif; ?>
</td>
<td <?php if(!$item['is_custom']): ?> class="danger" <?php endif; ?>><?php echo e($item['price']); ?></td>
<td <?php if(!$item['is_custom']): ?> class="danger" <?php endif; ?>><?php echo e($item['commision_co']); ?></td>
<td <?php if(!$item['is_custom']): ?> class="danger" <?php endif; ?>><?php echo e($item['commision_th']); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<!--END Service duration commisions-->
</div>
<div class="col-md-6">
<!-- Massage me now -->
<?php $status = trans('users::therapists.portlet_massage_now_opt')?>
<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-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_massage_now')); ?>:</span>
<?php /*<span class="label label-<?php echo e($status[$obj->profile->massage_me_now]['css']); ?>">*/ ?>
<?php /*<?php echo e($status[$obj->profile->massage_me_now]['text']); ?>*/ ?>
<?php /*</span>*/ ?>
</div>
</div>
<div class="portlet-body">
<div class="row">
<?php echo Form::model($obj, array('url' => URL::to('admin/users/therapists/updatemassagemenow').'/'.$obj->id, 'method' => 'put', 'class' => 'form-inline')); ?>
<div class="col-md-12">
<?php echo Form::select('massage_me_now',[0=>'Inactive','1'=>'Active'], $obj->profile->massage_me_now,['class'=>'form-control col-md-12']); ?>
<button class="btn green" name="save" value="save"><i class="fa fa-check"></i> <?php echo e(trans('general.action_save')); ?></button>
</div>
<?php echo Form::close(); ?>
</div>
</div>
</div>
<!-- END Massage me now -->
<!-- Table massage -->
<div class="portlet light massage-table-status">
<div class="portlet-title tabbable-line">
<div class="caption caption-md">
<i class="icon-globe theme-font hide"></i>
<span class="caption-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_massage_table_status')); ?>:
<?php if($obj->has_massage_table): ?>
<i class="fa fa-check-circle"></i>
<?php else: ?>
<i class="fa fa-times-circle"></i>
<?php endif; ?>
</span>
</div>
</div>
</div>
<!-- END Table massage -->
<!-- Holidays -->
<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-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_days_off')); ?></span>
</div>
<div class="actions">
<button type="button" id="add_schedule" class="btn blue btn-sm"><i class="fa fa-plus"></i> </button>
</div>
</div>
<div class="portlet-body">
<table class="table table-striped table-bordered table-advance table-hover table-condensed">
<thead>
<tr>
<th>
<?php echo e(trans('users::therapists.col_date_start')); ?>
</th>
<th>
<?php echo e(trans('users::therapists.col_date_end')); ?>
</th>
<th>
<?php echo e(trans('users::therapists.col_actions')); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach($daysoff as $dayoff): ?>
<tr>
<td><?php echo e($dayoff->date_start); ?></td>
<td><?php echo e($dayoff->date_end); ?></td>
<td width="30%">
<button type="button" class="btn default btn-xs edit_schedule" data-toggle="modal" data-target="#edit_schedule_modal_<?php echo e($dayoff->id); ?>">
<i class="fa fa-edit"></i> <?php echo e(trans('general.action_edit')); ?>
</button>
<?php echo $__env->make('users::admin.edit_schedule_modal',['schedule'=>$dayoff], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<button type="button" class="btn default btn-xs delete_schedule" url="<?php echo e(route('admin.users.therapists.schedule.delete',['id'=>$dayoff->id])); ?>">
<i class="fa fa-trash-o"></i> <?php echo e(trans('general.action_delete')); ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<!-- END Holidays -->
</div>
</div>
<!--chats-->
<div class="row">
<div class="col-md-12">
<!-- BEGIN PORTLET -->
<div class="portlet light">
<div class="portlet-title tabbable-line">
<div class="caption caption-md">
<i class="icon-bubble"></i>
<span class="caption-subject font-blue-madison bold uppercase"><?php echo e(trans('users::therapists.portlet_chats')); ?></span>
</div>
<div class="actions">
<a href="<?php echo e(route('admin.users.therapist.messages.create',['userid'=>$obj->id])); ?>" class="btn btn-sm blue"><i class="fa fa-plus"></i></a>
</div>
</div>
<div class="portlet-body">
<?php if($threads->count() > 0): ?>
<div class="scroller" style="max-height: 600px;" data-always-visible="0" data-rail-visible="0" data-handle-color="#dae3e7">
<div class="todo-tasklist">
<?php foreach($threads as $thread): ?>
<div class="todo-tasklist-item">
<a href="<?php echo e(route('admin.users.therapist.messages.show',['user_id'=>$obj->id,'id'=>$thread->id])); ?>" style="text-decoration:none;">
<?php /*<img class="todo-userpic pull-left" width="40" src="data:image/jpeg;base64,<?php echo e(base64_encode($thread->user->getAvatar())); ?>" data-pagespeed-url-hash="2816098985" onload="pagespeed.CriticalImages.checkImageForCriticality(this);">*/ ?>
<div class="todo-tasklist-item-title">
<?php echo e($thread->subject); ?>
</div>
<div class="todo-tasklist-item-text">
<?php echo e($thread->latestMessage->body); ?>
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> <?php echo e($thread->created_at->format('d M Y h:i A')); ?> </span>
<?php /*<span class="todo-tasklist-badge badge badge-roundless"><?php echo e($thread->creator()->name); ?></span>*/ ?>
</div>
</a>
</div>
<?php endforeach; ?>
</div>
</div>
<?php else: ?>
<p>Sorry, no threads.</p>
<?php endif; ?>
</div>
</div>
<!-- END PORTLET -->
</div>
</div>
<!--end chats-->
</div>
<!-- END PROFILE CONTENT -->
</div>
<!-- END PAGE CONTENT-->
</div>
<?php echo $__env->make('users::admin.add_schedule_modal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?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>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts_custom2'); ?>
<script>
var CSRF_TOKEN = $('input[name="_token"]').val();
$('#modal_error').hide();
$("#add_schedule").click(function(){
$("#add_schedule_modal").modal('show');
});
$("#cancel_add_schedule").click(function(){
//reset error message
$("#modal_error").text('');
$("#modal_error").hide();
//close modal form
$("#add_schedule_modal").modal('hide');
//reset modal form
$('#form_add_schedule')[0].reset();
});
$(document).on('submit','#form_add_schedule', function(e){
e.preventDefault();
var url = $(this).attr('action');
var $html = $(this);
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: $(this).serialize(),
beforeSend : function(){
$html.find('#modal_error').text('');
$html.find('#modal_error').hide();
},
error: function(data) {
var response = jQuery.parseJSON(data.responseText);
$html.find('#modal_error').text('');
$html.find('#modal_error').removeClass('hidden');
$.each(response,function(index,value){
$html.find('#modal_error').append('<div>'+value[0]+'</div>');
});
$html.find('#modal_error').show();
},
success: function(data) {
location.reload();
}
}); //end ajax
});
//edit modal
$('.modal_edit_error').hide();
$(document).on('submit','.form_edit_schedule', function(e){
e.preventDefault();
var url = $(this).attr('action');
var $html = $(this);
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: $(this).serialize(),
beforeSend : function(){
$html.find('.modal_edit_error').text('');
$html.find('.modal_edit_error').hide();
},
error: function(data) {
var response = jQuery.parseJSON(data.responseText);
$html.find('.modal_edit_error').text('');
$html.find('.modal_edit_error').removeClass('hidden');
$.each(response,function(index,value){
$html.find('.modal_edit_error').append('<div>'+value[0]+'</div>');
});
$html.find('.modal_edit_error').show();
},
success: function(data) {
location.reload();
}
}); //end ajax
});
//delete schedule
$(".delete_schedule").click(function(){
//remove from doom
$(this).closest('tr').remove();
var del_url = $(this).attr('url');
//remove from db
$.ajax({
url: del_url,
type: 'get',
success: function(data) {
// location.reload();
}
}); //end ajax
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.profile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>