@extends('layouts.squelette') @section('css_header') @endsection @section('titre') {{ __('Contrats') }} @endsection @section('titre_header') {{ __('Contrats') }} @endsection @section('titre_page') @isset($contract->con_id)

{{ __('Dossier :') }} {{ $contract->con_title }}

@else {{ __('Ajout de dossier') }} @endisset @endsection @section('panel_boutons') {{ __('Retour') }} @endsection @section('contenu')
{{ __('Informations contrat') }}
{{ __('Type de contrat') }}
{!! @$contract->con_typeContract=='R' ? trans('Règlementaire') : trans('Préventive') !!}
{{ __('Désignation') }}
{!! @$contract->con_title !!}
{{ __('N° référence') }}
{{ @$contract->con_refNumber }}
{{ __('Date de début') }}
{{ date('d/m/Y', strtotime($contract->con_startDate)) }}
{{ __('Date de fin') }}
{{ date('d/m/Y', strtotime($contract->con_endDate)) }}
{{ __('Description / commentaire') }}
@if(@$contract->con_description)

{!! @$contract->con_description !!}

@endif
@component('components.dates.select_simple',['label' => 'Période du','value' => '','name' => 'date_start']) @endcomponent
@component('components.dates.select_simple',['label' => 'au','value' => '','name' => 'date_end']) @endcomponent
@component('components.select.select_status',['status' =>$status_preventive,'value' => 7, 'search' => 'true','emptyValue' => 'true']) @endcomponent
{{-- @foreach ($interventions as $inter) @endforeach
# {{ __('Période') }} {{ __('Etat') }} {{ __('Affectation') }} {{ __('Date d\'achèvement') }} {{ __('Site')}} {{ __('Rapport')}} {{ __('Actions') }}
{!! $inter->int_number !!} {{ date('d/m/Y', strtotime($inter->int_conStartDate)) }} - {{ date('d/m/Y', strtotime($inter->int_conEndDate)) }} {!! $inter->sta_nameFr !!} {{ $inter->int_planningDate!='' ? date('d/m/Y', strtotime($inter->int_planningDate)) : '' }} {{ $inter->proReq_achievementDate!='' ? date('d/m/Y', strtotime($inter->proReq_achievementDate)) : '' }} {{ $inter->sit_name }} @if(!empty($rapportmapping[$inter->int_id]['rapport_file'])) @php $rapport_file = $rapportmapping[$inter->int_id]['rapport_file'][0]; @endphp {{ __('Voir')}} @else @endif
--}}
{{-- TABLEAUX DES FICHIERS --}}

@if ($contract->con_showFilesSiteInterface ==1)
{{ __('Documents du contrat') }}
@foreach ($files as $file) @endforeach
{{ __('Description') }} {{ __('Nom') }} {{ __('Type') }} {{ __('Actions') }}
{!! $file->conFil_description !!} {!! $file->conFil_oldName !!} {!! get_icon_file($file->conFil_ext) !!}

@endif
{{ __('Rapports des interventions') }}
@foreach ($di_files as $file) @if( $file->intFilCat_forSiteContracts==1) @endif @endforeach
# {{ __('Commentaire') }} {{ __('Etat') }} {{ __('Nom') }} {{ __('Actions') }}
#{!! $file->int_number !!} {!! $file->intFil_description !!} {!! $file->div_nameFr !!} {{-- {!! $file->cat_id == session()->get('ifc_defaut_rap_anomalie') ? ''.__('Oui').'' : ''.__('Non').'' !!} --}} {!! $file->intFil_oldName !!}
{{ __('Exportation') }}
{{ __("Exporter la liste des interventions") }}

con_id }}> {{ __('Exporter') }}
{{ __('Importation') }}
{{ __('Importer la liste des interventions précédemment exportée pour la mise à jour des dates de planification.') }}

@csrf {{ csrf_field() }}

@foreach ($pro_invoices as $pro_invoice) @endforeach
{{ __('Etat') }} # {{ __('Montant HT') }} {{ __('Montant TTC') }} {{ __('Date facture') }} {{ __('Payée') }} {{ __('Date règlement') }} {{ __('Date saisie') }} {{ __('Interventions') }} {{ __('Fichier') }}
{!! $pro_invoice->sta_nameFr !!} {!! $pro_invoice->proInv_number !!} {!! $pro_invoice->proInv_amountHT !!} {!! $pro_invoice->proInv_amountTTC !!} {{ $pro_invoice->proInv_achievementDate!='' ? date('d/m/Y', strtotime($pro_invoice->proInv_achievementDate)) : '' }} @if( $pro_invoice->proInv_payed=='1') {{ __('oui') }} @else {{ __('non') }} @endif {{ $pro_invoice->proInv_paymentDate!='' ? date('d/m/Y', strtotime($pro_invoice->proInv_paymentDate)) : '' }} {{ $pro_invoice->proInv_createdDate!='' ? date('d/m/Y', strtotime($pro_invoice->proInv_createdDate)) : '' }} {{ $pro_invoice->con_intCount }}     @if ($pro_invoice->intFil_id!='') @endif
@foreach ($logs as $log) @endForeach
{{ __('Description') }} {{ __('Utilisateur') }} {{ __('Date / heure') }}
{!! $log->opeLog_texte !!} {!! $log->name !!} {{ date('d/m/Y', strtotime($log->opeLog_createdate)) }} {{ date('H:i:s', strtotime($log->opeLog_createdate)) }}