@isset($intervention->int_id)
@method('PATCH') @csrf @else @csrf @endisset @csrf
@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 ]) @endcomponent {{-- @component('components.select.select_customer',['customers' => $customers,'value' => '','search' => 'false','emptyValue' => 'false']) @endcomponent @component('components.select.select_sign',['signs' => $signs,'value' => @$intervention->sig_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent @component('components.select.select_site',['sites' => @$sites,'value' => @$intervention->sit_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @endcomponent --}} @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 {{-- @component('components.select.select_activity',['activities' => $activities,'value' => @$intervention->act_id,'search' => 'true','emptyValue' => 'false', 'multiple' => 'false', 'required' => 'true']) @endcomponent --}} {{-- Affichage matériel en mode création --}} @if (!isset($intervention->int_id)) @if (Session::get('equipment_management')=='oui')

{{ __('Matériels du site') }}

{{ __('Nom') }} {{ __('N° de série') }} {{ __('N° interne') }} {{ __('Proch. action') }} {{ __('Fin garantie') }} {{ __('Sélection') }}
@endif @endif @isset($intervention->int_id)
@endif
@if (Route::currentRouteName() == 'interventions.create')

{{ __('Fichiers joints / photos') }}

{{-- --}}
@endif

{{ __('Budget') }}

@if(Session()->get('type_gestion_budgets')!='0') @if(Session()->get('type_gestion_budgets')=='1')
@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 @if(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 @endif
@if (!isset($intervention->int_id))

{{ __('Affectation') }}

@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' => 'Générer une 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' => 'Générer une commande (sans demande de devis) ?', 'name' => 'int_gen_provider_request', 'value' =>'0' ]) @endcomponent
{{--
@if ( (Session()->get('mt_ht_prev_sans_devis')!='') && (Session()->get('mt_ht_prev_sans_devis')!='0')) @else @endif
--}}
{{--
@component('components.select.select_tva',['tvas' => $tvas,'value' => '','search' => 'true','emptyValue' => 'true']) @endcomponent
--}}
@elseif ( (Session()->get('active_techniciens')=='oui') && ($intervention->pro_idAssigned=='') )

{{ __('Affectation') }}

@component('components.select.select_user',['users' => $techniciens,'value' => @$intervention->use_idAssigned,'search' => 'true','emptyValue' => 'true']) @endcomponent
@endif
@component('components.cb_ouinon',[ 'title' => 'Astreinte', 'name' => 'int_astreinte', 'value' => @$intervention->int_astreinte ]) @endcomponent
@component('components.cb_ouinon',[ 'title' => 'Urgence', 'name' => 'int_urgency', 'value' => @$intervention->int_urgency ]) @endcomponent
{{--
@component('components.cb_ouinon',[ 'title' => 'Chantier', 'name' => 'int_sinExist', 'value' => @$intervention->int_sinExist ]) @endcomponent
--}}
@isset($intervention->int_id)
@component('components.dates.select_datetime',['label' => 'Date création', 'value' => @$intervention->int_createdDate, 'name' => 'int_createdDate','required' => 'false','disabled' => 'true']) @endcomponent @component('components.dates.select_simple',['label' => 'Date planification souhaitée', 'value' => @$intervention->int_desiredPlanningDate, 'name' => 'int_desiredPlanningDate','required' => 'false']) @endcomponent @component('components.dates.select_simple',['label' => 'Intervention possible à partir du', 'value' => @$intervention->int_datePossible, 'name' => 'int_datePossible','required' => 'false']) @endcomponent @component('components.dates.select_simple',['label' => 'A terminer au plus tard le', 'value' => @$intervention->int_dateLater, 'name' => 'int_dateLater','required' => 'false']) @endcomponent
{{-- @if ( ($intervention->use_idAssigned!='') && (Session::get('active_techniciens')=='oui') && (Session::get('tech_google_calendar')=='oui') ) {{ isset($intervention->int_planningDate) ? 'Planifiée le : '.date('d/m/Y', strtotime($intervention->int_planningDate)) : '' }}     {{ __('Voir le planning technicien') }} --}} {{--


--}} @if ( ($intervention->use_idAssigned!='') && (Session::get('active_techniciens')=='oui') && (Session::get('tech_google_calendar')=='oui') )
@component('components.dates.select_simple',['label' => 'Date planification', 'value' => @$intervention->int_planningDate, 'name' => 'int_planningDate','required' => 'false']) @endcomponent
@else @component('components.dates.select_simple',['label' => 'Date planification', 'value' => @$intervention->int_planningDate, 'name' => 'int_planningDate','required' => 'false']) @endcomponent @endif @component('components.dates.select_simple',['label' => 'Date achèvement', 'value' => @$intervention->int_achievementDate, 'name' => 'int_achievementDate','required' => 'false']) @endcomponent @component('components.dates.select_simple',['label' => 'Date de clôture', 'value' => @$intervention->int_closingDate, 'name' => 'int_closingDate','required' => 'false','disabled' => 'true']) @endcomponent
@else
@component('components.dates.select_simple',['label' => 'Date planification souhaitée', 'value' => @$intervention->int_desiredPlanningDate, 'name' => 'int_desiredPlanningDate','required' => 'false']) @endcomponent @component('components.dates.select_simple',['label' => 'Intervention possible à partir du', 'value' => @$intervention->int_datePossible, 'name' => 'int_datePossible','required' => 'false']) @endcomponent @component('components.dates.select_simple',['label' => 'A terminer au plus tard le', 'value' => @$intervention->int_dateLater, 'name' => 'int_dateLater','required' => 'false']) @endcomponent
@component('components.dates.select_simple',['label' => 'Date de clôture', 'value' => @$intervention->int_achievementDate, 'name' => 'int_closingDate','required' => 'false']) @endcomponent
@endisset