
<?php $__env->startSection('morecss'); ?>
<style>
.flex-item{width:120px}
</style>
<?php $__env->stopSection(); ?> 
<?php $__env->startSection('content'); ?>
<div class="container">
	<div class="justify-content-center">
		<div class="">
			<div class="card">
				<div class="card-header">
					<h1>Modifier</h1>
				</div>
				<div class="card-body">
				<?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; ?>
					<form method="post" action="<?php echo e(route('config.update')); ?>">
						<?php echo e(csrf_field()); ?> 
						<?php echo e(method_field('patch')); ?>

							<fieldset>
    							<legend>La société Le Prisme</legend>
    							<div class="form-group">
                                    <label for="raison_sociale">Raison sociale</label>
                                    <input class="form-control" name="raison_sociale" id="raison_sociale" value="<?php echo e($societe->raison_sociale); ?>"/>
                                </div>
                                <div class="form-group">
                                    <label for="enseigne">Enseigne/nom commercial</label>
                                    <input class="form-control" name="enseigne" id="enseigne" value="<?php echo e($societe->enseigne); ?>"/>
                                </div>
                                <div class="form-group">
                                    <label for="siret">Siret</label>
                                    <input class="form-control" name="siret" id="siret" value="<?php echo e($societe->siret); ?>"/>
                                </div>
                                <div class="form-group">
                                    <label for="adresse">Adresse</label>
                                    <input class="form-control" name="adresse" id="adresse" value="<?php echo e($societe->adresse); ?>"/>
                                </div>
                                <div class="form-group">
                                    <label for="adresse">Code postal</label>
                                    <input class="form-control" name="code_postal" id="code_postal" value="<?php echo e($societe->code_postal); ?>"/>
                                </div>
                                <div class="form-group">
                                    <label for="adresse">Commune</label>
                                    <input class="form-control" name="commune" id="commune" value="<?php echo e($societe->commune); ?>"/>
                                </div>
                            </fieldset>
                            <fieldset>
                            	<legend>Tarifs</legend>
                                <div class="form-group">
                                    <label for="adresse">Tarif frais administratifs (AMO)</label>
                                    <input class="form-control <?php echo e($errors->has('tarif_prestation_ht') ? ' is-invalid' : ''); ?>" name="tarif_prestation_ht" id="tarif_prestation_ht" value="<?php echo e($societe->tarif_prestation_ht); ?>"/>
                                    <?php if($errors->has('tarif_prestation_ht')): ?> 
										<span class="invalid-feedback" role="alert"> <strong><?php echo e($errors->first('tarif_prestation_ht')); ?></strong>
									</span> 
									<?php endif; ?>
                                </div>
                                <div class="form-group">
    								<label class="col-form-label col-form-label"
    									for="tva_id">Tva frais administratifs</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==$societe->tva_id): ?> selected
    										<?php endif; ?>><?php echo e($tva->libelle); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    								</select>
    							</div>
    							<div class="form-group">
    								<label class="col-form-label col-form-label"
    									for="tva_travaux_id">Tva travaux</label>
    								<select id="tva_travaux_id" name="tva_travaux_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==$societe->tva_travaux_id): ?> selected
    										<?php endif; ?>><?php echo e($tva->libelle); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    								</select>
    							</div>
							</fieldset>
							<fieldset>
								<legend>Informations</legend>
                                <div class="form-group">
                                    <label for="texte_reglementaire">Texte réglementaire</label>
                                    <textarea class="form-control" id="texte_reglementaire" name="texte_reglementaire" rows="2"><?php echo e($societe->texte_reglementaire); ?></textarea>
                                </div>
                                <div class="form-group">
                                    <label for="cgv">CGV</label>
                                    <textarea class="form-control" id="cgv" name="cgv" rows="20"><?php echo e($societe->cgv); ?></textarea>
                                </div>
                            </fieldset>
                            <fieldset class="container bg-warning border rounded border-secondary mb-5">
                            	<legend class="w-auto px-2 border bg-white rounded border-secondary ">Sécurité</legend>
                            	<div class="row">
                                	<div class="col-md-6 form-group">
                                        <label for="email_uniskip">Email compte Uniskip</label>
                                        <input class="form-control <?php echo e($errors->has('email_uniskip') ? ' is-invalid' : ''); ?>" name="email_uniskip" id="email_uniskip" value="<?php echo e($societe->email_uniskip); ?>"/>
                                        <?php if($errors->has('email_uniskip')): ?> 
    										<span class="invalid-feedback" role="alert"> <strong><?php echo e($errors->first('email_uniskip')); ?></strong>
    									</span> 
    									<?php endif; ?>
                                    </div>
                                    <div class="col-md-6 form-group">
                                        <label for="motdepasse_uniskip">Mot de passe compte Uniskip</label>
                                        <input type="password" class="form-control <?php echo e($errors->has('motdepasse_uniskip') ? ' is-invalid' : ''); ?>" name="motdepasse_uniskip" id="motdepasse_uniskip" value="<?php echo e($societe->motdepasse_uniskip); ?>"/>
                                        <?php if($errors->has('motdepasse_uniskip')): ?> 
    										<span class="invalid-feedback" role="alert"> <strong><?php echo e($errors->first('motdepasse_uniskip')); ?></strong>
    									</span> 
    									<?php endif; ?>
                                    </div>
                                </div>
                                
                            </fieldset>
    						
    					<div class="form-group row mb-0">
							<div class="col">
								<a href="javascript:history.back()" class="btn btn-primary"> <span
									class="glyphicon glyphicon-circle-arrow-left"></span>
									<?php echo e(__('Cancel')); ?>

								</a>
							</div>
							<div class="col">
								<button type="submit" class="btn btn-primary"><?php echo e(__('Update')); ?>

								</button>
							</div>
						</div>
					</form>
					<div class="container mt-5 bg-secondary p-3">
					<h4 class="text-white">Changer la bannière</h4>
    					<img src="<?php echo e(asset('images/banniere.gif')); ?>" class="mb-3"/>
    					<form action="<?php echo e(route('changebanniere')); ?>" enctype="multipart/form-data" method="post">
    						<?php echo csrf_field(); ?>
    						<input type="file" name="banniere">
    						<button type="submit" class="btn btn-info" value="changer">Changer</button>
    					</form>
					</div>
				</div>
				<div class="card-footer">
					<a href="<?php echo e(route('home')); ?>" class="btn">Retour à l'accueil</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 /var/www/hellodjo/resources/views/admin/config.blade.php ENDPATH**/ ?>