@php error_reporting(0) @endphp @extends('layouts.app',[ 'class' => '', 'folderActive' => '', 'elementActive' => '' ]) @section('head_supplement') @endsection @section('content')
{{ $operation['operation_title'] }}
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) Opérations effectuées avant le 01/09/2020 @else Opérations effectuées après le 01/09/2020 @endif
{{ config('various.operation_status.' . $operation['statut_operation']) }}
{{ $operation['operation_status_desc'] }} @if ($total_rapport_101 + $total_rapport_103 < ($operation['target_objectif'] * $rows) / 100) @endif @if ((auth()->user()->user_type === 1 && auth()->user()->client_id === 0) || !isset(auth()->user()->client_id)) @if ($operation['statut_operation'] == -1)
@csrf
@endif @if ($operation['statut_operation'] == 0)
@csrf
@endif @if ($operation['statut_operation'] == 1)
@csrf
@endif @if ($operation['statut_operation'] == 2)
@csrf
@endif @endif @if ((auth()->user()->user_type === 1 && auth()->user()->client_id === 0) || !isset(auth()->user()->client_id)) @endif
@if ((auth()->user()->user_type === 1 && auth()->user()->client_id === 0) || !isset(auth()->user()->client_id))
@if ($current_attribution->where('active', 1)->isNotEmpty()) Opération attribué à :
@foreach ($current_attribution->where('active', 1) as $attribution) {{ $attribution->user->user_firstname }} {{ $attribution->user->user_lastname }} du {{ $attribution->start->format('d/m/Y') }} au {{ $attribution->end->format('d/m/Y') }}
@endforeach @else Opération non attribué @endif

Regénérer tous les rapports de l'opération
@endif
@if (session()->has('error_insert'))
Erreur dans votre fichier :
@foreach (session()->get('error_insert') as $key => $value) @endforeach
Erreurs
Lignes concernés
{{ $key }} @foreach ($value as $line) Ligne : {{ $line }}; @endforeach
@php session()->forget('error_insert') @endphp @endif
@if (in_array($operation['statut_operation'], [0, 1, 2])) @if ((auth()->user()->user_type == 1 || (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id))) && $operation['statut_operation'] != -1) @endif @if ((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && auth()->user()->user_type == 1) @if (in_array($operation['statut_operation'], [1, 2]))
@csrf
@endif @endif @endif @if ($operation['statut_operation'] == -1) @endif @if ($operation['statut_operation'] == 3) @if ((auth()->user()->user_type == 1 || auth()->user()->user_type == 2) && (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)))
@csrf
@endif @endif
@if (Auth::user()->client_id == 0)
@include('dashboard.taches.details')
@include('dashboard.taches.archive')
@endif
{{ (float) $rows }}
Total des lignes
du fichier
@if ($operation['statut_operation'] != -1)
{{ $total_rdv_101 + $total_rdv_103 }}
RDV
pris
{{ $total_rapport_101 + $total_rapport_103 }}
Rapports
effectués
{{ $count_conformes_101 + $count_conformes_103 }}
Rapports
conformes
{{ number_format((float) ((($count_conformes_101 + $count_conformes_103) / $rows) * 100), 2, ',', '') . '%' }}
Rapports
conformes
{{ $count_non_conformes_101 + $count_non_conformes_103 }}
Rapports
non conformes
{{ $count_non_verifiables_101 + $count_non_verifiables_103 - ($count_incidents_101 + $count_incidents_103) }}
Rapports
non vérifiables
{{ $count_incidents_101 + $count_incidents_103 }}
Incidents
de visite
@endif
@if (auth()->user()->client_id === 0 || !isset(auth()->user()->client_id))
{{ count($rapports) }}
Total de rapport
Total de rapport
Validé
Total de rapport
Non validé
Total de rapport
Relu
Rapport relu mais non validé
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_precarite_101[0] + (float) $count_precarite_101[1] + (float) $count_precarite_101[2] }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_precarite_101[0] + (float) $count_precarite_101[1] }} @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) BAR-EN-101 - Classiques et précaires @endif @if ($operation['operation_type'] == 2) BAR-EN-101 - Classiques @endif
@if ((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && auth()->user()->user_type == 1) @endif
@if ($operation['statut_operation'] !== -1)
@if (!empty($operation['target_objectif_classique_101'])) {{ $operation['target_objectif_classique_101'] . ' %' }} @else {{ $operation['target_objectif_classique'] . ' %' }} @endif
Objectif
@if (!empty($operation['target_objectif_classique_101'])) @php $target = $operation['target_objectif_classique_101'] @endphp @else @php $target = $operation['target_objectif_classique'] @endphp @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil( (((float) $count_precarite_101[0] + (float) $count_precarite_101[1] + (float) $count_precarite_101[2]) * $target) / 100, ) }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $count_precarite_101[0] + (float) $count_precarite_101[1]) * $target) / 100) }} @endif
Inspections à effectuer
@if (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id))
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $echantillonnage_101[0] + (float) $echantillonnage_101[1] + (float) $echantillonnage_101[2]) /$total_101) *100) . '%' }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $echantillonnage_101[0] + (float) $echantillonnage_101[1]) / $total_101) * 100) . '%' }} @endif
Taux d'échantillonnage
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rdv_precarite_101[0] +(float) $count_rdv_precarite_101[1] +(float) $count_rdv_precarite_101[2] }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rdv_precarite_101[0] + (float) $count_rdv_precarite_101[1] }} @endif
RDV Pris
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rapports_precarite_101[0] +(float) $count_rapports_precarite_101[1] +(float) $count_rapports_precarite_101[2] }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rapports_precarite_101[0] + (float) $count_rapports_precarite_101[1] }} @endif
Rapports effectués
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_conformes_precarite_101[0] +(float) $count_non_conformes_precarite_101[1] +(float) $count_non_conformes_precarite_101[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_101[0] + (float) $count_non_conformes_precarite_101[1] . ' ' }} @endif
Non conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_verifiables_precarite_101[0] +(float) $count_non_verifiables_precarite_101[1] +(float) $count_non_verifiables_precarite_101[2] -((float) $count_incidents_precarite_101[0] +(float) $count_incidents_precarite_101[1] +(float) $count_incidents_precarite_101[2]) .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_verifiables_precarite_101[0] +(float) $count_non_verifiables_precarite_101[1] -((float) $count_incidents_precarite_101[0] + (float) $count_incidents_precarite_101[1]) .' ' }} @endif
Non vérifiables
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_incidents_precarite_101[0] +(float) $count_incidents_precarite_101[1] +(float) $count_incidents_precarite_101[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_incidents_precarite_101[0] + (float) $count_incidents_precarite_101[1] . ' ' }} @endif
Incidents de visite
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_conformes_precarite_101[0] +(float) $count_conformes_precarite_101[1] +(float) $count_conformes_precarite_101[2]) /((float) $count_precarite_101[0] + (float) $count_precarite_101[1] + (float) $count_precarite_101[2])) *100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_conformes_precarite_101[0] + (float) $count_conformes_precarite_101[1]) /((float) $count_precarite_101[0] + (float) $count_precarite_101[1])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_conformes_precarite_101[0] +(float) $count_conformes_precarite_101[1] +(float) $count_conformes_precarite_101[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_conformes_precarite_101[0] + (float) $count_conformes_precarite_101[1] . ' ' }} @endif Rapports conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_non_conformes_precarite_101[0] +(float) $count_non_conformes_precarite_101[1] +(float) $count_non_conformes_precarite_101[2]) /((float) $count_rapports_precarite_101[0] +(float) $count_rapports_precarite_101[1] +(float) $count_rapports_precarite_101[2])) *100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_non_conformes_precarite_101[0] + (float) $count_non_conformes_precarite_101[1]) /((float) $count_rapports_precarite_101[0] + (float) $count_rapports_precarite_101[1])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_conformes_precarite_101[0] +(float) $count_non_conformes_precarite_101[1] +(float) $count_non_conformes_precarite_101[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_101[0] + (float) $count_non_conformes_precarite_101[1] . ' ' }} @endif Rapports non conformes
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_precarite_101[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_precarite_101[3] + (float) $count_precarite_101[2] . ' ' }} @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) BAR-EN-101 - Très Précaires @endif @if ($operation['operation_type'] == 2) BAR-EN-101 - Précaires et Très Précaires @endif
@if ((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && auth()->user()->user_type == 1) @endif
@if ($operation['statut_operation'] !== -1)
@if (!empty($operation['target_objectif_precaire_101'])) @php $target = $operation['target_objectif_precaire_101'] @endphp @else @php $target = $operation['target_objectif_precaire'] @endphp @endif {{ $target . ' %' }}
Objectif
@if (!empty($operation['target_objectif_precaire_101'])) @php $target = $operation['target_objectif_precaire_101']; @endphp @else @php $target = $operation['target_objectif_precaire']; @endphp @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $count_precarite_101[3]) * $target) / 100) }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $count_precarite_101[3] + (float) $count_precarite_101[2]) * $target) / 100) }} @endif
Inspections à effectuer
@if (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id))
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $echantillonnage_101[3]) / $total_101) * 100) . '%' }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $echantillonnage_101[3] + (float) $echantillonnage_101[2]) / $total_101) * 100) . '%' }} @endif
Taux d'échantillonnage
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rdv_precarite_101[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rdv_precarite_101[3] + (float) $count_rdv_precarite_101[2] . ' ' }} @endif
RDV Pris
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rapports_precarite_101[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rapports_precarite_101[3] + (float) $count_rapports_precarite_101[2] . ' ' }} @endif
Rapports effectués
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_conformes_precarite_101[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_101[3] + (float) $count_non_conformes_precarite_101[2] . ' ' }} @endif
Non conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_verifiables_precarite_101[3] - (float) $count_incidents_precarite_101[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_verifiables_precarite_101[3] +(float) $count_non_verifiables_precarite_101[2] -((float) $count_incidents_precarite_101[3] + (float) $count_incidents_precarite_101[2]) .' ' }} @endif
Non vérifiables
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_incidents_precarite_101[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_incidents_precarite_101[3] + (float) $count_incidents_precarite_101[2] . ' ' }} @endif
Non vérifiables
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_conformes_precarite_101[3]) / ((float) $count_precarite_101[3])) * 100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_conformes_precarite_101[3] + (float) $count_conformes_precarite_101[2]) /((float) $count_precarite_101[3] + (float) $count_precarite_101[2])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ((float) $count_conformes_precarite_101[3]) . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_conformes_precarite_101[3] + (float) $count_conformes_precarite_101[2] . ' ' }} @endif Rapports conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_non_conformes_precarite_101[3]) / ((float) $count_rapports_precarite_101[3])) * 100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_non_conformes_precarite_101[3] + (float) $count_non_conformes_precarite_101[2]) /((float) $count_rapports_precarite_101[3] + (float) $count_rapports_precarite_101[2])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ((float) $count_non_conformes_precarite_101[3]) . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_101[3] + (float) $count_non_conformes_precarite_101[2] . ' ' }} @endif Rapports non conformes
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_precarite_103[0] + (float) $count_precarite_103[1] + (float) $count_precarite_103[2] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_precarite_103[0] + (float) $count_precarite_103[1] . ' ' }} @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) BAR-EN-103 - Classiques et précaires @endif @if ($operation['operation_type'] == 2) BAR-EN-103 - Classiques @endif
@if ((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && auth()->user()->user_type == 1) @endif
@if ($operation['statut_operation'] !== -1)
@if (!empty($operation['target_objectif_classique_103'])) @php $target = $operation['target_objectif_classique_103']; @endphp @else @php $target = $operation['target_objectif_classique']; @endphp @endif {{ $target . ' %' }}
Objectif
@if (!empty($operation['target_objectif_classique_103'])) @php $target = $operation['target_objectif_classique_103']; @endphp @else @php $target = $operation['target_objectif_classique']; @endphp @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $count_precarite_103[0] + (float) $count_precarite_103[1] + (float) $count_precarite_103[2]) * $target) /100) }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $count_precarite_103[0] + (float) $count_precarite_103[1]) * $target) / 100) }} @endif
Inspections à effectuer
@if (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id))
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $echantillonnage_103[0] + (float) $echantillonnage_103[1] + (float) $echantillonnage_103[2]) /$total_103) *100) . '%' }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $echantillonnage_103[0] + (float) $echantillonnage_103[1]) / $total_103) * 100) . '%' }} @endif
Taux d'échantillonnage
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rdv_precarite_103[0] +(float) $count_rdv_precarite_103[1] +(float) $count_rdv_precarite_103[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rdv_precarite_103[0] + (float) $count_rdv_precarite_103[1] . ' ' }} @endif
RDV Pris
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rapports_precarite_103[0] +(float) $count_rapports_precarite_103[1] +(float) $count_rapports_precarite_103[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rapports_precarite_103[0] + (float) $count_rapports_precarite_103[1] . ' ' }} @endif
Rapports effectués
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_conformes_precarite_103[0] +(float) $count_non_conformes_precarite_103[1] +(float) $count_non_conformes_precarite_103[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_103[0] + (float) $count_non_conformes_precarite_103[1] . ' ' }} @endif
Non conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_verifiables_precarite_103[0] +(float) $count_non_verifiables_precarite_103[1] +(float) $count_non_verifiables_precarite_103[2] -((float) $count_incidents_precarite_103[0] +(float) $count_incidents_precarite_103[1] +(float) $count_incidents_precarite_103[2]) .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_verifiables_precarite_103[0] +(float) $count_non_verifiables_precarite_103[1] -((float) $count_incidents_precarite_103[0] + (float) $count_incidents_precarite_103[1]) .' ' }} @endif
Non vérifiables
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_incidents_precarite_103[0] +(float) $count_incidents_precarite_103[1] +(float) $count_incidents_precarite_103[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_incidents_precarite_103[0] + (float) $count_incidents_precarite_103[1] . ' ' }} @endif
Incidents de visite
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_conformes_precarite_103[0] +(float) $count_conformes_precarite_103[1] +(float) $count_conformes_precarite_103[2]) /((float) $count_precarite_103[0] + (float) $count_precarite_103[1] + (float) $count_precarite_103[2])) *100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_conformes_precarite_103[0] + (float) $count_conformes_precarite_103[1]) /((float) $count_precarite_103[0] + (float) $count_precarite_103[1])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_conformes_precarite_103[0] +(float) $count_conformes_precarite_103[1] +(float) $count_conformes_precarite_103[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_conformes_precarite_103[0] + (float) $count_conformes_precarite_103[1] . ' ' }} @endif Rapports conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_non_conformes_precarite_103[0] +(float) $count_non_conformes_precarite_103[1] +(float) $count_non_conformes_precarite_103[2]) /((float) $count_rapports_precarite_103[0] +(float) $count_rapports_precarite_103[1] +(float) $count_rapports_precarite_103[2])) *100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_non_conformes_precarite_103[0] + (float) $count_non_conformes_precarite_103[1]) /((float) $count_rapports_precarite_103[0] + (float) $count_rapports_precarite_103[1])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_conformes_precarite_103[0] +(float) $count_non_conformes_precarite_103[1] +(float) $count_non_conformes_precarite_103[2] .' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_103[0] + (float) $count_non_conformes_precarite_103[1] . ' ' }} @endif Rapports non conformes
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_precarite_103[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_precarite_103[3] + (float) $count_precarite_103[2] . ' ' }} @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) BAR-EN-103 - Très Précaires @endif @if ($operation['operation_type'] == 2) BAR-EN-103 - Précaires et Très Précaires @endif
@if ((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && auth()->user()->user_type == 1) @endif
@if ($operation['statut_operation'] !== -1)
@if (!empty($operation['target_objectif_precaire_103'])) @php $target = $operation['target_objectif_precaire_103']; @endphp @else @php $target = $operation['target_objectif_classique']; @endphp @endif {{ $target . ' %' }}
Objectif
@if (!empty($operation['target_objectif_precaire_103'])) @php $target = $operation['target_objectif_precaire_103']; @endphp @else @php $target = $operation['target_objectif_classique']; @endphp @endif @if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $count_precarite_103[3]) * $target) / 100) }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $count_precarite_103[3] + (float) $count_precarite_103[2]) * $target) / 100) }} @endif
Inspections à effectuer
@if (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id))
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ceil((((float) $echantillonnage_103[3]) / $total_103) * 100) . '%' }} @endif @if ($operation['operation_type'] == 2) {{ ceil((((float) $echantillonnage_103[3] + (float) $echantillonnage_103[2]) / $total_103) * 100) . '%' }} @endif
Taux d'échantillonnage
@endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rdv_precarite_103[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rdv_precarite_103[3] + (float) $count_rdv_precarite_103[2] . ' ' }} @endif
RDV Pris
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_rapports_precarite_103[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_rapports_precarite_103[3] + (float) $count_rapports_precarite_103[2] . ' ' }} @endif
Rapports effectués
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_conformes_precarite_103[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_103[3] + (float) $count_non_conformes_precarite_103[2] . ' ' }} @endif
Non conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_non_verifiables_precarite_103[3] - (float) $count_incidents_precarite_103[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_verifiables_precarite_103[3] +(float) $count_non_verifiables_precarite_103[2] -((float) $count_incidents_precarite_103[3] + (float) $count_incidents_precarite_103[2]) .' ' }} @endif
Non vérifiables
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ (float) $count_incidents_precarite_103[3] . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_incidents_precarite_103[3] + (float) $count_incidents_precarite_103[2] . ' ' }} @endif
Non vérifiables
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_conformes_precarite_103[3]) / ((float) $count_precarite_103[3])) * 100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_conformes_precarite_103[3] + (float) $count_conformes_precarite_103[2]) /((float) $count_precarite_103[3] + (float) $count_precarite_103[2])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ((float) $count_conformes_precarite_103[3]) . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_conformes_precarite_103[3] + (float) $count_conformes_precarite_103[2] . ' ' }} @endif Rapports conformes
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ number_format((((float) $count_non_conformes_precarite_103[3]) / ((float) $count_rapports_precarite_103[3])) * 100,2,'.','') . ' %' }} @endif @if ($operation['operation_type'] == 2) {{ number_format((((float) $count_non_conformes_precarite_103[3] + (float) $count_non_conformes_precarite_103[2]) /((float) $count_rapports_precarite_103[3] + (float) $count_rapports_precarite_103[2])) *100,2,'.','') . ' %' }} @endif
@if ($operation['operation_type'] == 1 || $operation['operation_type'] == 0) {{ ((float) $count_non_conformes_precarite_103[3]) . ' ' }} @endif @if ($operation['operation_type'] == 2) {{ (float) $count_non_conformes_precarite_103[3] + (float) $count_non_conformes_precarite_103[2] . ' ' }} @endif Rapports non conformes
@endif
@if ($operation['statut_operation'] !== -1)
Détail des rapports effectués ou en cours de validation
@foreach ($rapports as $key => $rapport) @endforeach
ID Client Bénéficiaire Artisan Inspecteur Opération Observations Précarité Résultat Rapport conformité nom precarite
{{ $rapport['prospect_id'] }} {{ $rapport['proprietaire_name'] . ' (' . substr($rapport['proprietaire_cp'], 0, 2) . ')' }} {{ strtoupper($rapport['entreprise_travaux']) }} {{ $rapport['user_firstname'] . ' ' . $rapport['user_lastname'] }} @php $nature = unserialize($rapport['nature_travaux']) @endphp @if (in_array('comble_perdu', $nature) || $rapport['nature_travaux'] == 'comble_perdu') Combles perdus
@if ($rapport['procede_comble'] == 'souffle') Soufflage @endif @if ($rapport['procede_comble'] == 'deroule') Déroulé @endif @elseif (in_array('rampant_toiture', $nature) || $rapport['nature_travaux'] == 'rampant_toiture') Rampants toiture @elseif (in_array('planchers_bas', $nature) || $rapport['nature_travaux'] == 'planchers_bas') Planchers bas @endif
@if ($rapport['preuve_facture'] == 0) Facture manquante @if (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) @endif @endif @if ($count_doublons > 1 && (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)))
ATTENTION DOUBLE CONFORMITE
@endif {{-- @if ($rapport['surface'] != $rapport['surface_prevue_planchers'] && (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)))
SURFACE DECLAREE DIFFERENTE
@endif --}}
{{ $precarite_list[$rapport['precarite']] }} @php $link = ''; $visible = 0; @endphp @if ($ope['statut_operation'] == 1 || (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) || $rapport['statut_rdv'] == 4) @if (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) @php $link = 'target="_blank" href="/rapports/fiche_rapport/' . $rapport->rapport_id . '"' @endphp @endif @php $aa = '' @endphp @if ($rapport['conformite'] == 'conforme') @php $aa = ' '; $visible = 1; @endphp @endif @if ($rapport['conformite'] == 'non_verifiable') @php $aa = ' '; $visible = 1; @endphp @endif @if ($rapport['conformite'] == 'non_conforme') @php $aa = ' '; $visible = 1; @endphp @endif @if ($rapport['conformite'] == 'non_renseigne') @php $aa = ' '; $visible = 1; @endphp @endif @endif {!! $aa ?? 'En attente de validation' !!} @if (!empty($rapport)) @if (auth()->user()->client_id != 0) @if ($rapport['statut_rdv'] < 4) En attente de validation @else @if (file_exists('storage/rapports/rapport_' . $rapport->rapport_id . '/' . $rapport['nom_rapport'] . '.pdf')) Voir le rapport validé @else En attente de validation @endif @endif @else @if (!empty($rapport['relu_par']) && $rapport['statut_rdv'] < 4) Rapport relu @endif @if ($rapport['validation'] !== 1) Rapport non validé @else @if (file_exists('storage/rapports/rapport_' . $rapport->rapport_id . '/' . $rapport['nom_rapport'] . '.pdf')) Rapport validé @else Rapport non Généré
Générer le nouveau rapport
@endif @endif @endif @endif
@if ($rapport['conformite_combles'] == 'conforme' && in_array('comble_perdu', $nature)) 1 @endif @if ($rapport['conformite_combles'] == 'non_verifiable' && in_array('comble_perdu', $nature)) 3 @endif @if ($rapport['conformite_combles'] == 'non_conforme' && in_array('comble_perdu', $nature)) 2 @endif @if ($rapport['conformite_rampants'] == 'conforme' && in_array('rampant_toiture', $nature)) 1 @endif @if ($rapport['conformite_rampants'] == 'non_verifiable' && in_array('rampant_toiture', $nature)) 3 @endif @if ($rapport['conformite_rampants'] == 'non_conforme' && in_array('rampant_toiture', $nature)) 2 @endif {{ $rapport['prospect_id'] }} {{ $rapport['proprietaire_name'] . ' (' . substr($rapport['proprietaire_cp'], 0, 2) . ')' }} {{ $rapport['precarite'] }} @if ((auth()->user()->client_id != 0 && $rapport['statut_rdv'] >= 4) || (auth()->user()->client_id == 0 || !isset(auth()->user()->client_id))) Télécharger le rapport Excel @endif @if (((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && $docs_count[$rapport['rapport_id']] == 0) || ((auth()->user()->client_id == 0 || !isset(auth()->user()->client_id)) && $docs_count[$rapport['rapport_id']] == 0))
Joindre des documents
@endif
TOTAL: {{ $i }}
@if (auth()->user()->client_id === 0 || !isset(auth()->user()->client_id))
DOUBLONS DE RDV ({{ count($doublons_rdv) }} )
@foreach ($doublons_rdv as $r) @foreach ($r as $rdv) @endforeach @endforeach
Date du RDV ID Client Bénéficiaire Inspecteur Opération Précarité
{{ date('d/m/Y', strtotime($rdv['date_rdv'])) }} {{ $rdv['prospect_id'] }} {!! '' . $rdv['beneficiaire_name'] . '
' . $rdv['beneficiaire_adresse'] . '
' . $rdv['beneficiaire_cp'] . ' ' . $rdv['beneficiaire_ville'] !!}
{{ $rdv['user_firstname'] . ' ' . $rdv['user_lastname'] }} {{ $rdv['type_operation'] }} {{ $precarite_list[$rdv['precarite']] }} Voir le rdv Annuler le rdv Supprimer le rdv
RDV de l'opération restants ({{ count($rdv_left) }})
@foreach ($rdv_left as $rdv) @endforeach
Date du RDV ID Client Bénéficiaire Inspecteur Opération Précarité
{{ date('d/m/Y', strtotime($rdv['date_rdv'])) }} {{ $rdv['prospect_id'] }} {!! '' . $rdv['beneficiaire_name'] . '
' . $rdv['beneficiaire_adresse'] . '
' . $rdv['beneficiaire_cp'] . ' ' . $rdv['beneficiaire_ville'] !!}
{{ $rdv->user->user_firstname . ' ' . $rdv->user->user_lastname }} {{ $rdv['type_operation'] }} {{ $precarite_list[$rdv['precarite']] }} Voir le rdv Annuler le rdv Supprimer le rdv
Rapports non facturés ({{ count($to_facture) }}1 )
@foreach ($to_facture as $facture) @endforeach
Date du Rapport Nom du rapport
{{ date('d/m/Y', strtotime(str_replace('/', '-', $facture['date_rapport']))) }} {{ $facture['nom_rapport'] }}
@endif @endif @if(count($liste_demandes))
Liste des demandes ({{ count($liste_demandes) }})
@foreach ($liste_demandes as $demande) @endforeach
Date du Rapport Nom du rapport
@endif
@endsection @section('modal') @include('modals.doc') @include('modals.operations.importation_operation') @if (auth()->user()->client_id === 0 || !isset(auth()->user()->client_id)) @include('modals.factures.rapports') @include('modals.operations.modification_operation') @include('modals.operations.simulation') @include('modals.operations.pdf_generation') @include('modals.operations.affect-planning') @include('modals.operations.modify-attribution') @endif @endsection