@isset($site->sit_id)
@method('PATCH') @else @endisset @csrf
{{ __('Informations') }}
@isset($site->sit_id) @component('components.cb_ouinon',[ 'title' => 'Actif', 'name' => 'sit_active', 'value' => $site->sit_active ]) @endcomponent @endisset
@component('components.dates.select_simple',['label' => 'Date ouverture', 'value' => @$site->sit_openDate, 'name' => 'sit_openDate','required' => 'false','disabled' => 'false']) @endcomponent
@error('sit_name') {{ $message }} @enderror
@error('sit_code') {{ $message }} @enderror
@error('sit_code1') {{ $message }} @enderror
@if (Session::get('site_authWithCodes')=='oui')

@endif
@component('components.select.select_sign',['signs' => @$signs,'value' => @$site->sig_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent
@component('components.select.select_secteur',['secteurs' => @$secteurs,'value' => @$site->sec_id, 'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent
@component('components.select.select_region',['regions' => @$regions,'value' => @$site->reg_id, 'search' => 'false','emptyValue' => 'true', 'required' => 'false']) @endcomponent
@component('components.select.select_billingcompany',['bilCompanies' => @$billingCompanies,'value' => @$site->bil_id,'search' => 'false','emptyValue' => 'true', 'required' => 'false']) @endcomponent
@if ( Auth::user()->role=='admin')
@endif
{{ __('Localisation') }}
@error('sit_address1') {{ $message }} @enderror
@error('sit_address2') {{ $message }} @enderror
@error('sit_zipCode') {{ $message }} @enderror
@error('sit_city') {{ $message }} @enderror
@component('components.select.select_country',['countries' => @$countries,'value' => @$site->cou_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent
@if (isset($site->sit_id))
{{ __('Latitude') }} {{ @$site->sit_lat }}
{{ __('Longitude') }} {{ @$site->sit_lng }}
{{ __('Adresse formatée') }} {{ @$site->sit_formattedAddress }}

@endif
{{-- ********************* ONGLET CONTACT *********************************************** --}}
@error('sit_siret') {{ $message }} @enderror
@error('sit_respName') {{ $message }} @enderror
@error('sit_dirCoName') {{ $message }} @enderror
@error('sit_phone') {{ $message }} @enderror
@error('sit_portable') {{ $message }} @enderror
@error('sit_email') {{ $message }} @enderror
@error('sit_emailDirector') {{ $message }} @enderror
@error('sit_emailCopy') {{ $message }} @enderror
@error('sit_emailCopyCreateDI') {{ $message }} @enderror
{{-- **************************ONGLET TYPOLOGIE / AGENCEMANT --}}
@component('components.select.select_site_implantations',['implantations' => @$implantations,'value' => @$site->sitImp_id,'search' => 'false','emptyValue' => 'true', 'required' => 'false']) @endcomponent
@error('sit_surface') {{ $message }} @enderror
@error('sit_conceptType') {{ $message }} @enderror
@error('sit_surfaceReserve') {{ $message }} @enderror
@error('sit_conceptTypeComment') {{ $message }} @enderror
{{-- **********************************ONGLET HORAIRES************************************ --}}
{{-- **********************************ONGLET COMMISSIONS DE SECURITE************************************ --}}
@component('components.dates.select_simple',['label' => 'Date de la dernière CS', 'value' => @$site->sit_lastDateCs, 'name' => 'sit_lastDateCs','required' => 'false','disabled' => 'false']) @endcomponent
@error('sit_comFrequency') {{ $message }} @enderror
{{-- **********************************ONGLET CHAMPS DYNAMIQUES************************************ --}} {{-- @if(Session::get('gestion_dynfields')=='oui')
@foreach($champs_dynfields as $champ_dyn)
@if ($champ_dyn->dyn_datatype=='text') @elseif ($champ_dyn->dyn_datatype=='booleen') @component('components.cb_ouinon',[ 'title' => $champ_dyn->dyn_description, 'name' => $champ_dyn->dyn_field, 'value' => @$dynfields_site[$champ_dyn->dyn_field] ]) @endcomponent @elseif ($champ_dyn->dyn_datatype=='date')
@component('components.dates.select_simple',['label' => $champ_dyn->dyn_description, 'value' => @$dynfields_site[$champ_dyn->dyn_field], 'name' => $champ_dyn->dyn_field, 'required' => 'false', 'disabled' => 'false']) @endcomponent
@elseif ($champ_dyn->dyn_datatype=='integer')
@elseif ($champ_dyn->dyn_datatype=='number')
@elseif ($champ_dyn->dyn_datatype=='string')
@endif
@endforeach
@endif --}}
@include('modales.map_standard')