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/dev/storage/framework/views/ |
<?php $__env->startSection('content'); ?>
<div class="text-zone">
<div class="row">
<?php /*start left content*/ ?>
<div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
<?php /*start article*/ ?>
<div class="treatment">
<div class="treatment-info">
<div class="treatment-title"><?php echo e($post->title); ?></div>
<div class="note">
<?php echo e($post->created_at->format('M d, Y')); ?> in <?php echo e($post->category->title); ?> by <?php echo e($post->user->name); ?>
</div>
<div class="treatment-text"><?php echo $post->body; ?></div>
<?php if(isset($post->image_body)): ?>
<div class="treatment-image"> <img src="<?php echo e(asset('/images/'. $post->image_body)); ?>" /></div>
<?php endif; ?>
<a href="<?php echo e($post->category->url); ?>" class="btn-book-treatment">BACK TO ARTICLES</a>
</div>
</div>
<?php /*end article*/ ?>
<?php /*start comments*/ ?>
<div>
<div class="treatment-title">
Comments
</div>
<?php $__empty_1 = true; foreach($comments as $comment): $__empty_1 = false; ?>
<div class="text-zone-description">
<div class="treatment-text"><?php echo e($comment->body); ?></div>
<div class="note">
<?php echo e($comment->created_at->format('M d, Y')); ?>, posted by <?php echo e(ucwords(strtolower($comment->user_name))); ?>
</div>
</div>
<?php endforeach; if ($__empty_1): ?>
<div class="text-zone-description">
<div class="treatment-title">No comments yet</div>
</div>
<?php endif; ?>
<p class="bottom-border"></p>
</div>
<?php /*end comments*/ ?>
<?php /*start form*/ ?>
<div class="comments_container comments-container-custom loginpage-sec contact-sec">
<div class="black-box-inner">
<div class="box-border box-background">
<div class="treatment-title">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/heading-new.png')); ?>">
<span> Add a new comment</span>
</div>
<div id="form_contact" class="text-zone-description">
</div>
<div id="form_contact" class="text-zone-description">
<?php echo e(Form::open(array('url' => URL::to('blog.addcomment'), 'method' => 'post', 'id'=>'sendComment'))); ?>
<div class="form-group">
<div class="filds flex-container">
<div class="filds-label">
<span class="img-d">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/form-bg.png')); ?>">
</span>
<label>Full Name <span class="red-star">*</span></label>
</div>
<div class="filds-input form-group">
<?php echo e(Form::text('name',null,['class'=>'form-control','id'=>'name','placeholder'=>'Full name *'])); ?>
<span class="text-error" id="error_name"></span>
</div>
</div>
</div>
<div class="form-group">
<div class="filds flex-container">
<div class="filds-label">
<span class="img-d">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/form-bg.png')); ?>">
</span>
<label>Email <span class="red-star">*</span></label>
</div>
<div class="filds-input form-group">
<?php echo e(Form::email('email',null,['class'=>'form-control','id'=>'email','placeholder'=>'Email *'])); ?>
<span class="text-error" id="error_email"></span>
</div>
</div>
</div>
<div class="form-group">
<div class="filds flex-container">
<div class="filds-label">
<span class="img-d">
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/form-bg.png')); ?>">
</span>
<label>Message <span class="red-star">*</span></label>
</div>
<div class="filds-input form-group">
<?php echo e(Form::textarea('message',null,['class'=>'form-control','id'=>'message','style'=>'height:70px;','placeholder'=>'Your comment *'])); ?>
<span class="text-error" id="error_message"></span>
</div>
</div>
</div>
<div class="form-group">
<div class="star-mention text-center">
<span class="red-star">*</span> All fields Required
</div>
</div>
<div class="clearfix text-center">
<div class="login-reg-sec1">
<div class="button-sec-left">
<div class="btn-com">
<span>
<img src="<?php echo e(asset('/themes/frontend_new/assets/img/btn.png')); ?>">
</span>
<?php echo e(Form::hidden('slug',$post->slug)); ?>
<button type="submit" id="send" class="btn update-btn button-login-trans">SUBMIT</button>
</div>
</div>
</div>
</div>
</div>
<?php echo e(Form::close()); ?>
<!-- <div class="text-zone-description">
<?php echo e(Form::open(array('url' => URL::to('blog.addcomment'), 'method' => 'post', 'id'=>'sendComment'))); ?>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="form-group">
<?php echo e(Form::text('name',null,['class'=>'form-control','id'=>'name','placeholder'=>'Full name *'])); ?>
<span class="text-error" id="error_name"></span>
</div>
<div class="form-group">
<?php echo e(Form::email('email',null,['class'=>'form-control','id'=>'email','placeholder'=>'Email *'])); ?>
<span class="text-error" id="error_email"></span>
</div>
<div class="form-group">
<?php echo e(Form::textarea('message',null,['class'=>'form-control','id'=>'message','style'=>'height:70px;','placeholder'=>'Your comment *'])); ?>
<span class="text-error" id="error_message"></span>
</div>
</div>
</div>
<div class="form-mention"><span class="star-mention">*</span> all fields are required</div>
<?php echo e(Form::hidden('slug',$post->slug)); ?>
<div class="clearfix">
<button type="submit" id="send" class="btn update-btn btn-book-treatment col-md-12">SUBMIT</button>
</div>
<?php echo e(Form::close()); ?>
</div> -->
</div>
</div>
</div>
<?php /*end form*/ ?>
</div>
<?php /*end left content*/ ?>
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
<div class="treatment-info">
<div class="treatment-title">Categories</div>
<?php foreach($categories as $key=>$cat): ?>
<div class="treatment-text">
<a class="blog-link" href="<?php if($cat->posts->count()): ?> <?php echo e($cat->url); ?> <?php else: ?> # <?php endif; ?>"><?php echo e($cat->title); ?>
(<?php echo e($cat->posts->count()); ?>)
</a>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('custom_scripts'); ?>
<script>
$(document).ready(function () {
$("#sendComment").submit(function(e){
e.preventDefault();
var sendBtn = $("#send");
$.ajax({
type: "POST",
url: '<?php echo e(route('blog.addcomment')); ?>',
data: $(this).serialize(),
dataType: 'json',
beforeSend: function(){
$('.error-text').text('');
sendBtn.prop('disabled',true);
sendBtn.html('<i class="fa fa-spin fa-spiner"></i> SENDING...');
}
})
.fail(function(data) {
var errors = $.parseJSON(data.responseText);
$.each(errors,function( index, value ){
$("#error_"+index).text(value[0]);
});
sendBtn.prop('disabled',false);
sendBtn.html('SUBMIT');
})
.done(function(data){
var response = data;
sendBtn.prop('disabled',false);
sendBtn.html('SUBMIT');
$("#sendComment").html("<h3 class='text-center title'>"+response.message+"</h3>");
});
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('blog::frontend_new.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>