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('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="#">Chats</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="#"><?php echo e($thread->subject); ?></a>
</li>
</ul>
</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">
<img src="data:image/jpeg;base64,<?php echo e(base64_encode($therapist->avatar)); ?>" class="img-responsive" alt="">
</div>
<!-- END SIDEBAR USERPIC -->
<!-- SIDEBAR USER TITLE -->
<div class="profile-usertitle">
<div class="profile-usertitle-name">
<?php echo e($therapist->name); ?>
</div>
<div class="profile-usertitle-job">
<?php echo e($therapist->role); ?>
</div>
</div>
<!-- END SIDEBAR USER TITLE -->
<!-- SIDEBAR MENU -->
<div class="profile-usermenu">
<ul class="nav">
<li>
<a href="<?php echo e(route('admin.users.therapists.show',['id'=>$therapist->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'=>$therapist->id])); ?>">
<i class="icon-settings"></i>
<?php echo e(trans('users::therapists.settings_title')); ?>
</a>
</li>
</ul>
</div>
<!-- END MENU -->
</div>
<!-- END PORTLET MAIN -->
</div>
<!-- END BEGIN PROFILE SIDEBAR -->
<!-- BEGIN PROFILE CONTENT -->
<div class="profile-content">
<div class="row">
<div class="col-md-12">
<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($thread->subject); ?></span>
</div>
<div class="actions">
<a href="<?php echo e(route('admin.users.therapists.show',['id'=>$therapist->id])); ?>" class="btn default">
<i class="fa fa-angle-left"></i>
<?php echo e(trans('general.action_back')); ?>
</a>
</div>
</div>
<!--portlet body-->
<div class="portlet-body" id="chats">
<div class="scroller" style="height: 352px;" data-always-visible="1" data-rail-visible1="1">
<ul class="chats">
<?php $i=0; $cUser=0; $lastUser=0; $side='in'; $lastSide='';?>
<?php foreach($thread->messages()->latest()->get() as $message): ?>
<?php
$cUser = $message->user->id;
if ($i>0 && $cUser>0 && $lastUser>0) {
if ($cUser == $lastUser){
$side = $lastSide;
}
else{
$side = ($lastSide=="in")?'out':'in';
}
} //endif
$i++;
$lastUser = $cUser;
$lastSide = $side;//
?>
<li class="<?php echo e($side); ?>">
<img class="avatar" alt="" src="data:image/jpeg;base64,<?php echo e(base64_encode($message->user->avatar)); ?>"/>
<div class="message">
<span class="arrow"></span>
<span href="#" class="name"><?php echo e($message->user->name); ?></span>
<span class="datetime">at <?php echo e($message->created_at->format('h:i A')); ?></span>
<span class="body">
<?php echo e($message->body); ?>
</span>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
<!--form-->
<?php if($errors->has('message')): ?>
<div class="alert alert-danger"><?php echo e($errors->first('message', ':message')); ?></div>
<?php endif; ?>
<div class="chat-form">
<?php echo Form::open(array('url' => URL::to('admin/users/messages/'.$therapist->id.'/'.$thread->id), 'method' => 'put', 'class' => 'bf')); ?>
<div class="input-cont">
<input class="form-control" type="text" name="message" placeholder="Type a message here..."/>
</div>
<div class="btn-cont">
<span class="arrow"></span>
<button class="btn blue icn-only">
<i class="fa fa-check icon-white"></i>
</button>
</div>
<?php echo e(Form::close()); ?>
</div>
<!--end form-->
</div>
<!--end portlet body-->
</div>
</div>
</div>
</div>
<!-- END PROFILE CONTENT -->
</div>
<!-- END PROFILE CONTENT -->
</div>
<!-- END PAGE CONTENT-->
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.profile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>