 
<?php $__env->startSection('content'); ?>
<div class="col-sm-9 col-lg-10">
	<div class="justify-content-center">
		<div>
			<div class="card">
				<div class="card-header">
					<h1>Modifier</h1>
				</div>
				<?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('communes.update',$commune->id)); ?>">
						<?php echo csrf_field(); ?> <?php echo e(method_field('PUT')); ?>

						<!-- <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> -->
						
						<fieldset>
							<legend>
								<i class="fas fa-tag"></i> Informations commune
							</legend>
							<div class="form-group">
								<label class="" for="code_postal">Code postal</label> 
								<input id="code_postal"
									name="code_postal" class="form-control form-control-lg" type="text"
									placeholder="code_postal" value="<?php echo e($commune->code_postal); ?>" />
							</div>
							<div class="form-group">
								<label class="" for="libelle">Nom</label> 
								<input id="nom"
									name="nom" class="form-control form-control-lg" type="text"
									placeholder="nom" value="<?php echo e($commune->nom); ?>" />
							</div>
							<div class="form-group">
								<label class="" for="libelle">Tarif déplacement</label> 
								<input id="tarif"
									name="tarif" class="form-control form-control-lg" type="number" step="0.05"
									placeholder="tarif" value="<?php echo e($commune->tarif); ?>" />
							</div>
							 <div class="form-group">
								<label class="col-form-label col-form-label"
									for="tva_id">Tva</label>
								<select id="tva_id" name="tva_id"
									class="form-control"> <?php $__currentLoopData = $tvas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tva): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($tva->id); ?>"
										<?php if($tva->id==$commune->tva_id): ?> selected
										<?php endif; ?>><?php echo e($tva->libelle); ?></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(__('Update')); ?></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 /home2/younguxc/hellodjo.younggeeks.co.in/resources/views/communes/edit.blade.php ENDPATH**/ ?>