<?php $__env->startSection('morecss'); ?>
<style>
.highlight{background:rgba(255,125 ,125,0.2); padding:0.5em;border:solid rgba(255,125 ,125,0.2) 1px}
.highlight{background:rgba(255,125 ,125,0.2); padding:0.5em;border:solid rgba(255,125 ,125,0.2) 1px}
.message h4{
    font-size:small;
    font-weight:300;
    margin-bottom:0;
}
.message{margin-bottom:1em;
           }
.message p{
    border:solid 1px ddd;
    padding:0.5em;
    background-color:#ff9966;
    margin-bottom:0;
    border-radius:0 5px 10px 5px;
    box-shadow: 3px 3px 5px 1px rgba(100,100,100, .2);
}
.message p.mesmessages{
    background-color: #ffcc66;
}
.message p.admrapport{background-color:red;color:white}

.message strong{font-weight:400}
.form-control-file{border-bottom:1px solid #ddd;padding-bottom:0.5em;margin-bottom:0.5em}
.reponse{padding:0.5em;background-color:#efefef;background-image: linear-gradient(to top left, #ffcc66 20%, #f1f1f1 100%);
border-radius:0 5px 10px 5px;
    box-shadow: 1px 2px 7px 5px rgba(100,100,100, .2);margin-bottom:2em}
.devis{background:#FBE3FF;margin:-1.25rem -1.25rem 0 -1.25rem;padding:1.25rem}
.devis .table{background-color:#fff}
.devis .table p{padding: .75rem;}
.devis .table th, .devis .table td{text-align:right}
#scoring i{color:#ddd;}
.txt-center {
    text-align: -webkit-center;
}
#scoring p{padding:0;margin:1em 0 0 0;font-size:small;font-weight:600;color:#999}
</style>

<link href="<?php echo e(asset('signature-pad-master-smooth/assets/jquery.signaturepad.css')); ?>" rel="stylesheet">
<style>
.sigPad{width:300px;height:200px}
.sigPad input{width:300px;}

.sigWrapper{height:157px}
canvas, .sigPad, .sigWrapper{border-radius:0.25em}
.debug a{font-size:small;color:red;font-weight:600;margin:0;padding:0;display:block}
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-10">
            <div class="card">
                <div class="card-header">
                    <div class="<?php if($demande->current_status_id=='LIVREE' || $demande->current_status_id=='SOLDEE'): ?> row <?php endif; ?>">
                    	<div class="<?php if($demande->current_status_id=='LIVREE' || $demande->current_status_id=='SOLDEE'): ?> col-8 <?php endif; ?>">
                    		<h1>Devis <?php echo e($demande->user->fullname); ?></h1>
                    		<h2 class="small">Demande lancée par <em><?php echo e($demande->user->fullname); ?></em> le <?php echo e($demande->created_at_date); ?> à <?php echo e($demande->created_at_time); ?> </h2>
                    	</div>
                    	
                    </div>
                    
                </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">
                 	<div id="devis" class="devis mb-3">
               			<?php if($demande->statuts()->find('EN_PAIEMENT')): ?>
    						<p>Le paiement n'a pas abouti.
    						</p>
    						<?php endif; ?>
    						<div class="table">
        						<table class="table">
        							<p class="small"><?php echo nl2br($demande->intervention->descriptif); ?></p>
        							<thead>
        								<tr>
        									<th class="text-left">Designation</th>
        									<th>PUHT</th>
        									<th>Taux</th>
        									<th>TVA</th>
        									<th>Montant TTC</th>
    									</tr>
        							</thead>
        							<tbody>
        								<?php $__currentLoopData = $ligne_demandes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ligne_demande): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        								<tr>
        									<td class="text-left"><?php echo e($ligne_demande['libelle']); ?></td>
        									<td><?php echo e(number_format($ligne_demande['montant_ht'],2,',',' ')); ?></td>
        									<td><?php echo e($ligne_demande['taux_tva']); ?>%</td>
        									<td><?php echo e(number_format($ligne_demande['montant_tva'],2,',',' ')); ?></td>
        									<td><?php echo e(number_format($ligne_demande['montant_ttc'],2,',',' ')); ?></td>
    									</tr>
    									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    									<tr>
    									<td>Total HT</td><td><?php echo e(number_format($totalDemandeHT,2,',',' ')); ?></td><td></td><td><strong>Total TTC</strong></td><td><strong><?php echo e(number_format($totalDemandeTTC,2,',',' ')); ?></strong></td>
    									</tr>
    									<tr>
    									<td>Acompte </td><td><?php echo e($demande->pcent_acompte); ?> %</td><td></td><td><strong>Acompte à régler</strong></td><td><strong><?php echo e(number_format($demande->montant_acompte,2,',',' ')); ?></strong></td>
    									</tr>
        							</tbody>
        						</table>
    						</div>
    						
                   </div>
            </div>
            <div class="card-footer">
				<a href="javascript:history.back()" class="btn btn-info">Retour</a>
			</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 C:\xampp\htdocs\HelloDjo_Source\resources\views/demandes/showdevis.blade.php ENDPATH**/ ?>