@extends('layouts.app')
@section('morecss')
<style>
.flex-item{width:120px}
</style>
@endsection 
@section('content')
<div class="container mt-5">
            <div class="row">
               <div class="col-lg-8 col-sm-12 col-12">
                  <div class="mendas-data">
                     <h4 class="mb-5"><span class="text-dark mr-2" style="font-size: 16px;"><sup>Le Presme</sup></span>Modifier</h4>
					 @if(session()->has('message'))
    				<div class="alert alertToolsBar alert-info alert-dismissible fade show }}"> 
                    {!! session('message') !!}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                      </button>
                    </div>
    			@endif
                     <div class="row">
                        <div class="col-lg-5 col-sm-12 col-12">
						<form method="post" action="{{route('config.update')}}">
						{{ csrf_field() }} 
						{{ method_field('patch') }}
                              <h6 class="text-color">SOCIETE LE PRISME</h6>

                              <div class="form-group">
                                 <label>Raison sociale</label>
                                 <input type="text" class="form-control form-text-field" placeholder="Le Prisme" name="raison_sociale" id="raison_sociale" value="{{$societe->raison_sociale}}">
                              </div>

                              <div class="form-group">
                                 <label>Enseigne/nom commercial</label>
                                 <input type="text" class="form-control form-text-field" placeholder="Le Prisme" name="enseigne" id="enseigne" value="{{$societe->enseigne}}">
                              </div>

                              <div class="form-group">
                                 <label>Siret</label>
                                 <input type="text" class="form-control form-text-field" placeholder="XXXXX" name="siret" id="siret" value="{{$societe->siret}}">
                              </div>

                              <div class="form-group">
                                 <label>Adresse</label>
                                 <input type="text" class="form-control form-text-field" placeholder="All&eacute;e Hermann Litt&eacute;e Quartier Bac" name="adresse" id="adresse" value="{{$societe->adresse}}">
                              </div>

                              <div class="form-group">
                                 <label>Code Postal</label>
                                 <input type="text" class="form-control form-text-field" placeholder="97224" name="code_postal" id="code_postal" value="{{$societe->code_postal}}">
                              </div>

                              <div class="form-group">
                                 <label>Commune</label>
                                 <input type="text" class="form-control form-text-field" placeholder="Ducos" name="commune" id="commune" value="{{$societe->commune}}">
                              </div>

                              <h6 class="text-color">TARIFS</h6>

                              <div class="form-group">
                                 <label>Tarif frais administratifs (AMO)</label>
                                 <input type="text" class="form-control form-text-field {{ $errors->has('tarif_prestation_ht') ? ' is-invalid' : '' }}" name="tarif_prestation_ht" id="tarif_prestation_ht" value="{{$societe->tarif_prestation_ht}}" placeholder="445">
								 @if ($errors->has('tarif_prestation_ht')) 
										<span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('tarif_prestation_ht') }}</strong>
									</span> 
									@endif
                              </div>

                              <div class="form-group">
                                 <label>Tva frais administratifs</label>
                                 <select id="tva_id" name="tva_id"
    									class="form-control form-text-field"> @foreach ($tvas as $tva)
    									<option value="{{$tva->id}}"
    										@if ($tva->id==$societe->tva_id) selected
    										@endif>{{$tva->libelle}}</option> @endforeach
    								</select>
								</div>
								<div class="form-group">
                                 <label>Tva travaux</label>
                                 <select id="tva_travaux_id" name="tva_travaux_id"
    									class="form-control form-text-field"> @foreach ($tvas as $tva)
    									<option value="{{$tva->id}}"
    										@if ($tva->id==$societe->tva_travaux_id) selected
    										@endif>{{$tva->libelle}}</option> @endforeach
    								</select>
								</div>

                              <h6 class="text-color">INFOMATIONS</h6>

                              <div class="form-group">
                                 <label>Texte r&eacute;glementairet</label>
								 
                                 <input type="text" class="form-control form-text-field" placeholder="445">
                              </div>

                              <div class="form-group">
                                 <label>Tva frais administratifs</label>
								 
                                 <textarea class="form-control form-text-field rounded" rows="3"   id="texte_reglementaire" name="texte_reglementaire" placeholder="T&edot;l: XCC - Fax: XXX SARL au capital de XXXXX &euro; - SIRET XXX XXX XXX XXXX">{{$societe->texte_reglementaire}}</textarea>
                              </div>

                              <div class="form-group">
                                 <label>CGV</label>
                                 <textarea class="form-control form-text-field rounded" rows="8" placeholder="Conditions g&eacute;n&eacute;rales de vante" id="cgv" name="cgv" >{{$societe->cgv}}</textarea>
                              </div>

                              <h6 class="text-color">S&Eacute;CURIT&Eacute;</h6>

                              <div class="form-bg-mid">
                                 <div class="form-group mb-1 email-overlay">
                                    <input type="text" class="form-control form-text-field {{ $errors->has('email_uniskip') ? ' is-invalid' : '' }}" placeholder="Address email Unskip"  name="email_uniskip" id="email_uniskip" value="{{$societe->email_uniskip}}">
                                    <i class="fas fa-envelope"></i>
									@if ($errors->has('email_uniskip')) 
    										<span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('email_uniskip') }}</strong>
    									</span> 
    									@endif
                                 </div>
                              <div class="form-group mb-0 email-overlay">
									<input type="password" class="form-control {{ $errors->has('motdepasse_uniskip') ? ' is-invalid' : '' }} form-text-field"  name="motdepasse_uniskip" id="motdepasse_uniskip" value="{{$societe->motdepasse_uniskip}}" placeholder="Mot de passe Unskip"/>
                                    <i class="fas fa-lock"></i>
									@if ($errors->has('motdepasse_uniskip')) 
    										<span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('motdepasse_uniskip') }}</strong>
    									</span> 
    									@endif
                                 </div>
                              </div>

                              <p class="mt-3"><a href="javascript:history.back()" class="text-dark mr-5"><i class="fas fa-times mr-2"></i>{{__('Cancel')}}</a> 
							  <i class="fas fa-edit mr-2"></i> <button type="submit" class="text-dark modifier">{{ __('Update') }}
								
</button>
							</p>

                              
                           </form>
                        </div>
                     </div>
					 <!-- <div class="container mt-5 bg-secondary p-3">
					<h4 class="text-white">Changer la bannière</h4>
    					<img src="{{asset('images/banniere.gif')}}" class="mb-3"/>
    					<form action="{{route('changebanniere')}}" enctype="multipart/form-data" method="post">
    						@csrf
    						<input type="file" name="banniere">
    						<button type="submit" class="btn btn-info" value="changer">Changer</button>
    					</form>
					</div>
				</div>  -->

                     <p><a href="{{route('home')}}" class="text-dark"><i class="fas fa-chevron-left mr-2"></i>Retour</a></p>
                  </div>
               </div>
            </div>
         </div>

         <img src="{{asset('image/PersonnageMecanicien.png')}}" class="comman-image-all4">
      </div>
@endsection
