<?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"><?php echo e($adresse->libelle); ?></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">
					<form method="POST" class=""
						action="<?php echo e(route('adresses.update',$adresse->id)); ?>">
						<?php echo csrf_field(); ?>
						<?php echo e(method_field('patch')); ?>

						<!-- <div class="col-12">
							<div class="input-group input-group-lg mb-3">
								<div class="input-group-prepend">
									<label for="date_depart" class="input-group-text"><i
										class="fas fa-arrow-right"></i></label>
								</div>
								<input type="date" min="2019-08-28"
									value="2019-08-28" id="date_test" name="date_test"
									placeholder="Date de départ*" class="form-control"/>
								<input type="time" class="form-control"/>
							</div>
						</div> -->
						<div class="form-group">
							<label class="" for="libelle">Libellé</label> <input id="libelle" name="libelle"
								class="form-control form-control-lg" type="text"
								placeholder="ex: chez vous ou chez vos parents" value="<?php echo e($adresse->libelle); ?>" />
						</div>
						<fieldset>
							<legend>
								<i class="fas fa-tag"></i> Adresse
							</legend>
							<div class="form-group">
    							<label class="" for="adresse">Adresse</label> <input id="adresse" name="adresse"
    								class="form-control form-control-lg" type="text"
    								placeholder="ex:1, route de l'union" value="<?php echo e($adresse->adresse); ?>" />
    						</div>
    						
							<div class="form-group">
								<label class="col-form-label col-form-label-lg"
									for="adresse_id">Commune</label>
								<select id="commune_id" name="commune_id"
									class="form-control"> <?php $__currentLoopData = $communes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $commune): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($commune->id); ?>"
										<?php if($commune->id==$adresse->commune_id): ?> selected
										<?php endif; ?>><?php echo e($commune->nom); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</select>
							</div>
						</fieldset>
						<div class="col-12">
							<div class="form-group row">
								<div class="col">
									<a data-toggle="confirmation" data-title="Confirmer?"
										href="javascript:history.back();"
										class="btn btn-info pull-right form-group"><?php echo e(__('Cancel')); ?></a>
								</div>
								<div class="col">
									<button type="submit" class="btn btn-primary"><?php echo e(__('Create')); ?></button>
								</div>
							</div>
						</div>
					</form>
                </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 C:\xampp\htdocs\HelloDjo_Source\resources\views/adresses/edit.blade.php ENDPATH**/ ?>