@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, 'cus_value' => @$intervention->cus_id, 'sig_value' => @$intervention->sig_id, 'sec_value' => @$intervention->sec_id, 'sit_value' => @$intervention->sit_id, 'required' => array(true,true,false,true), 'search' => array(true,true,true,true), 'multiples' => array(false,false,false,false), 'emptyValues' => array(true,true,true,true), 'initialiser' => true ]) @endcomponent @component('components.select.select_billingcompany',['bilCompanies' => @$billings,'value' => @$intervention->bil_id,'search' => 'true','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 {{-- 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 @if(env('ACTIVE_TRAVAUX')=='1') @isset($intervention->int_id)
@endif @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
@if(env('CODE_SITE') == 'EUROPFACILITIES')
@component('components.cb_ouinon',[ 'title' => 'Complexe', 'name' => 'int_complex', 'value' => @$intervention->int_complex ]) @endcomponent
@endif {{-- @if (Auth::user()->role == 'admin')
@component('components.cb_ouinon',[ 'title' => 'Clôturer Compta', 'name' => 'int_clotureCompta', 'value' => @$intervention->int_clotureCompta ]) @endcomponent
@endif --}}
@if (isset($intervention->int_id))
{{ __('Demande créée le ') }} {{ date('d/m/Y H:i', strtotime($intervention->int_createdDate)) }} {{ __(' par ') }} {{ @$intervention->username_creator }}
@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' => 'Planification souhaitée le', 'value' => @$intervention->int_desiredPlanningDate, 'name' => 'int_desiredPlanningDate','required' => 'false']) @endcomponent @component('components.dates.select_simple',['label' => 'Date réalisation commande', 'value' => @$intervention->int_achievementDate, 'name' => 'int_achievementDate','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' => 'Planifiée le', 'value' => @$intervention->int_planningDate, 'name' => 'int_planningDate','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 de planification souhaitée', 'value' => @$intervention->int_createdDate, '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
@endisset @if ( env('ACTIVE_TECHNICIENS')=='1')

{{ __('Affectation') }}

@component('components.select.select_tech_or_provider',['use_id' =>@$intervention->use_idAssigned, 'pro_id' =>@$intervention->pro_idAssigned, 'required' => 'false', 'emptyValue' => 'false'] ) @endcomponent
@if(Route::currentRouteName() == 'interventions.create')
@component('components.select.select_tech',['users' => $techniciens,'value' => @$intervention->use_idAssigned,'search' => 'true','emptyValue' => 'true']) @endcomponent
@else @component('components.select.select_tech',['users' => $techniciens,'value' => @$intervention->use_idAssigned,'search' => 'true','emptyValue' => 'true']) @endcomponent @endif
@endif
@if (isset($intervention->int_id)) @component('components.select.select_agent',['agents' => $agents,'value' => @$intervention->use_idAgentAssigned,'search' => 'true','emptyValue' => 'true']) @endcomponent @else @component('components.select.select_agent',['agents' => $agents,'value' => Auth::user()->id,'search' => 'true','emptyValue' => 'true']) @endcomponent @endif
@if(env('CODE_SITE') == 'EFFIMAINTENANCE')
@else @component('components.select.select_estimated_rate',['estim_rates' => @$estim_rates,'value' => @isset($intervention->int_id) ? @$intervention->int_estimatedRate : "<500",'search'=> 'true','emptyValue' => 'true']) @endcomponent @endif