
<?php $__env->startSection('morecss'); ?>
<style>
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header"><h1>Intervention</h1></div>
 				<?php if(session('status')): ?>
                        <div class="alert alert-success" role="alert">
                            <?php echo e(session('status')); ?>

                        </div>
                    <?php endif; ?>
                    <?php if($errors->any()): ?>
        				<ul class="alert alert-warning">
        					<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        					<li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        				</ul>
        				<?php endif; ?> 
        				<?php if(session()->has('message')): ?>
        				<div class="alert alertToolsBar alert-info alert-dismissible fade show }}"> 
                        <?php echo session('message'); ?>

                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                          </button>
                        </div>
    			<?php endif; ?>
					
                <div class="card-body">
                	<h2>Descriptif détaillé de l'intervention</h2>
                	<h3> <?php echo e($intervention->scheduled_at?\Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $intervention->scheduled_at)->isoFormat('LLLL'):''); ?></h3>
                	<p><?php echo e($intervention['descriptif']); ?></p>	
					
					<h2>Prestataire</h2> 
					<?php if($intervention->user): ?>
					<p><?php echo e($intervention->user->fullname); ?></p>
					<?php else: ?>
					<p><em>Prestataire supprimé</em></p>
					<?php endif; ?>
					<p>Montant : <?php echo e($intervention->montant_prestation_ht); ?> eur HT</p>
					<h2>Client</h2>
					<?php if($intervention->demande->user): ?>
					<p><?php echo e($intervention->demande->user->fullname); ?></p>
					<p>Téléphone <?php echo e($intervention->demande->user->telephone); ?></p>
					<p><?php echo e($intervention->demande->adresse->adresse); ?><br/>
					<?php else: ?>
					<p><em>Client supprimé</em></p>
					<?php endif; ?>
					<?php echo e($intervention->demande->adresse->commune->nom); ?></p>
					<p><a href="<?php echo e(route('demandes.show',$intervention->demande->id)); ?>"><i class="fas fa-eye"></i> Voir la demande client</a></p>
        			<?php if(count($intervention->demande->messages)): ?> 
        				<span>(<?php echo e(count($intervention->demande->messages)); ?> messages dont <?php echo e(count($intervention->demande->messages->where('lu','=',null))); ?> non lus)</span>
        			<?php endif; ?>
				</div>
                <div class="card-footer">
					<a href="javascript:history.back()" class="btn btn-info">Retour</a>
				</div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/younguxc/hellodjo.younggeeks.co.in/resources/views/interventions/show.blade.php ENDPATH**/ ?>