@isset($intervention->int_id)
@method('PATCH') @csrf @else @csrf @endisset

{{ __('Localisation') }}

@component('components.select.select_sig_sec_site',[ 'customers' => @$customers, 'signs' => @$signs, 'secteurs' => @$secteurs, 'sites' => @$sites, 'sig_value' => @$intervention->sig_id, 'sec_value' => @$intervention->sec_id, 'sit_value' => @$intervention->sit_id, 'required' => array(true,false,true), 'search' => array(true,true,true), 'multiples' => array(false,false,false), 'emptyValues' => array(false,true,true), 'initialiser' => true, 'mode_creation_di' => true, ]) @endcomponent @if (Session::get('gestion_entites_sites') == 'oui') @component('components.select.select_entity',[ 'entites' => @$entites, 'value' => @$intervention->sitEnt_id, 'search' => 'true', 'emptyValue' => 'true', 'required' => 'true' ]) @endcomponent @endif

{{ __('Détails de l\'intervention') }}

@component('components.select.select_act_actDet',[ 'activities' => @$activities, 'activities_details' => @$activities_details, 'act_value' => @$intervention->act_id, 'actDet_value' => @$intervention->actDet_id, 'required' => array(true,false), 'search' => array(true,true), 'multiples' => array(false,false), 'emptyValues' => array(false,false), ]) @endcomponent
@if(isset($intervention->con_id) && $intervention->con_typeContratPeriod =='T')

{{ __('Contrat à temps') }}

{{__('Heures')}}
@endif @if(Session::get('gestion_chantiers')=='oui') @isset($intervention->int_id)
@endif @endif
@if (!isset($intervention->int_id)) @if (Session::get('equipment_management')=='oui')
{{ __('Equipements du site') }}
{{ __('Nom') }} {{ __('Localisation') }} {{ __('N° de série') }} {{ __('N° interne') }} {{ __('Fin garantie') }} {{ __('Sélection') }}
@endif @endif
@if ( (strpos(Session()->get('optional_di_fields'),'int_desiredPlanningDate') !== false) || (strpos(Session()->get('optional_di_fields'),'int_datePossible') !== false) || (strpos(Session()->get('optional_di_fields'),'int_dateLater') !== false) )

{{ __('Planification') }}

@isset($intervention->int_id)
@component('components.dates.select_datetime',[ 'label' => 'Créée le', 'value' => @$intervention->int_createdDate, 'name' => 'int_createdDate', 'required' => 'false', 'disabled' => 'true' ]) @endcomponent
@if(strpos(Session()->get('optional_di_fields'),'int_datePossible') !== false)
@component('components.dates.select_simple',[ 'label' => 'Intervention possible à partir du', 'value' => @$intervention->int_datePossible, 'name' => 'int_datePossible', 'required' => 'false' ]) @endcomponent
@endif @if(strpos(Session()->get('optional_di_fields'),'int_dateLater') !== false)
@component('components.dates.select_simple',[ 'label' => 'A terminer au plus tard le', 'value' => @$intervention->int_dateLater, 'name' => 'int_dateLater', 'required' => 'false' ]) @endcomponent
@endif @if ( ($intervention->use_idAssigned!='') && (Session::get('active_techniciens')=='oui') && (Session::get('tech_google_calendar')=='oui') )
@component('components.dates.select_simple',[ 'label' => 'Planifiée le', 'value' => @$intervention->int_planningDate, 'name' => 'int_planningDate', 'required' => 'false' ]) @endcomponent
{{ __('Voir planning') }}
@else
@component('components.dates.select_with_hour',[ 'label' => 'Planifiée le', 'value' => @$intervention->int_planningDate, 'value_hour' => @$intervention->int_planningHour, 'name' => 'int_planningDate', 'name_hour' => 'int_planningHour', 'required' => 'false' ]) @endcomponent
@endif
@component('components.dates.select_simple',[ 'label' => 'Réalisée le', 'value' => @$intervention->int_achievementDate, 'name' => 'int_achievementDate', 'required' => 'false' ]) @endcomponent
@component('components.dates.select_simple',[ 'label' => 'Clôturée le', 'value' => @$intervention->int_closingDate, 'name' => 'int_closingDate', 'required' => 'false', 'disabled' => 'true' ]) @endcomponent
@else @if ( (strpos(Session()->get('optional_di_fields'),'int_desiredPlanningDate') !== false) || (strpos(Session()->get('optional_di_fields'),'int_datePossible') !== false) || (strpos(Session()->get('optional_di_fields'),'int_dateLater') !== false) ) @if(strpos(Session()->get('optional_di_fields'),'int_desiredPlanningDate') !== false)
@component('components.dates.select_simple',[ 'label' => 'Date planification souhaitée', 'value' => '', 'name' => 'int_desiredPlanningDate', 'required' => 'false' ]) @endcomponent
@endif @if(strpos(Session()->get('optional_di_fields'),'int_datePossible') !== false)
@component('components.dates.select_simple',[ 'label' => 'Intervention possible à partir du', 'value' => '', 'name' => 'int_datePossible', 'required' => 'false' ]) @endcomponent
@endif @if(strpos(Session()->get('optional_di_fields'),'int_dateLater') !== false)
@component('components.dates.select_simple',[ 'label' => 'A terminer au plus tard le', 'value' => '', 'name' => 'int_dateLater', 'required' => 'false' ]) @endcomponent
@endif @endif @endisset
@endif @if ((strpos(Session()->get('optional_di_fields'),'int_astreinte') !== false) || (strpos(Session()->get('optional_di_fields'),'int_urgency') !== false))

{{ __('Spécificités') }}

@if(strpos(Session()->get('optional_di_fields'),'int_astreinte') !== false)
@component('components.cb_ouinon',[ 'title' => 'Astreinte', 'name' => 'int_astreinte', 'value' => @$intervention->int_astreinte ]) @endcomponent
@endif @if(strpos(Session()->get('optional_di_fields'),'int_urgency') !== false)
@component('components.cb_ouinon',[ 'title' => 'Urgence', 'name' => 'int_urgency', 'value' => @$intervention->int_urgency ]) @endcomponent
@endif
@endif @if (Route::currentRouteName() == 'interventions.create')

{{ __('Documents') }}

@endif @if(Session()->get('type_gestion_budgets') != '0')

{{ __('Budget') }}

@if(Session()->get('type_gestion_budgets') == '1')
@if(Session()->get('budget_family') == 'oui') @component('components.select.select_bud_budFam',[ 'budget_families' => @$budget_families, 'budgets' => @$sous_budgets, 'type' => @$intervention->int_budType == '' ? 'OPEX' : @$intervention->int_budType, 'budFam_value' => @$intervention->budFam_id, 'bud_value' => @$intervention->bud_id, 'required' => array(false,false), 'search' => array(true,true), 'multiples' => array(false,false), 'emptyValues' => array(false,false), ]) @endcomponent @else @component('components.select.select_budgetCapex',[ 'budgets' => @$budgetsCapex, 'value' => @$intervention->bud_id, 'search' => 'false', 'emptyValue' => 'true', 'multiple' => 'false', 'pref_name'=> 'CAPEX' ]) @endcomponent @component('components.select.select_budgetOpex',[ 'budgets' => @$budgetsOpex, 'value' => @$intervention->bud_id, 'search' => 'false', 'emptyValue' => 'true', 'multiple' => 'false', 'pref_name'=> 'OPEX' ]) @endcomponent @endif @elseif(Session()->get('type_gestion_budgets') == '2') @component('components.select.select_budget',[ 'budgets' => @$budgets, 'value' => @$intervention->bud_id, 'search' => 'false', 'emptyValue' => 'true', 'multiple' => 'false' ]) @endcomponent @endif @if(Session()->get('gestion_previsionnel_estimatif') == 'oui')
@endif
@endif @if (Session::get('gen_simplified_application') == "normale") @if (!isset($intervention->int_id))

{{ __('Affectation') }}

@if (Session()->get('gen_di_AgentAssigned')=='oui') @component('components.select.select_agent',[ 'agents' => $agents, 'value' => @$intervention->use_idAgentAssigned, 'search' => 'true', 'emptyValue' => 'true', 'required' => 'false' ]) @endcomponent @endif @component('components.select.select_tech_or_provider',[ 'use_id' => @$intervention->use_idAssigned, 'pro_id' => @$intervention->pro_idAssigned, 'required' => 'false' ]) @endcomponent @component('components.select.select_user',[ 'users' => $techniciens, 'value' => @$intervention->use_idAssigned, 'search' => 'true', 'emptyValue' => 'true' ]) @endcomponent @component('components.select.select_provider',[ 'providers' => $providers, 'value' => @$intervention->pro_idAssigned, 'search' => 'true', 'emptyValue' => 'true' ]) @endcomponent
@component('components.cb_ouinon',[ 'title' => 'Demande de devis ?', 'name' => 'int_gen_provider_quote', 'value' => '0' ]) @endcomponent @component('components.dates.select_simple',[ 'label' => 'Date retour souhaitée', 'value' => '', 'name' => 'proQuo_desiredDateReturn', 'required' => 'false' ]) @endcomponent
@component('components.cb_ouinon',[ 'title' => 'Commande sans devis ?', 'name' => 'int_gen_provider_request', 'value' => '0' ]) @endcomponent
@elseif ((Session()->get('active_techniciens')=='oui') && ($intervention->pro_idAssigned==''))

{{ __('Affectation') }}

@if (Session()->get('gen_di_AgentAssigned')=='oui') @component('components.select.select_agent',[ 'agents' => $agents, 'value' => @$intervention->use_idAgentAssigned, 'search' => 'true', 'emptyValue' => 'true', 'required' => 'false' ]) @endcomponent @endif @component('components.select.select_user',[ 'users' => $techniciens, 'value' => @$intervention->use_idAssigned, 'search' => 'true', 'emptyValue' => 'true' ]) @endcomponent
@else @if (Session()->get('gen_di_AgentAssigned')=='oui')

{{ __('Affectation') }}

@component('components.select.select_agent',[ 'agents' => $agents, 'value' => @$intervention->use_idAgentAssigned, 'search' => 'true', 'emptyValue' => 'true', 'required' => 'false' ]) @endcomponent
@endif @endif @endif
@section('modale') @endsection