@extends('layouts.app',[ 'class' => '', 'folderActive' => '', 'elementActive' => '' ]) @section('head_supplement') @endsection @section('content')
Rapport effectué par {{ $rapport->user->user_firstname .' ' .$rapport->user->user_lastname .' le ' .date('d/m/Y', strtotime(str_replace('/', '-', $rapport['date_rapport']))) }} @if ($is_incomplete == 1 && $rapport['rapport_type'] != 0) @endif
@isset($superviseur) Superviseur : {{ $superviseur['user_firstname'] . ' ' . $superviseur['user_lastname'] }}
@endisset Type de rapport : {{ config('types.type_rapport.' . $rapport['type_rapport']) }}
@if ($rapport['validation'] == 0) @if (empty($rapport['statut_rdv']) || $rapport['statut_rdv'] < 4 || auth()->user()->user_type < 5) Modifier le rapport @endif Générer le pdf @if ((auth()->user()->user_type == 1 || auth()->user()->user_type == 2 || auth()->user()->user_type == 4) && !isset($rapport['relu_par'])) Confirmer la relecture du rapport @endif @if ((auth()->user()->user_type == 1 || auth()->user()->user_type == 4 || auth()->user()->fonction_id == 8 || auth()->user()->user_type == 2) && $rapport['incomplet'] == 0) Valider le rapport @endif @if (Auth::user()->fonction_id == 8 && $rapport->refus_controlleur != 1)
@method('post') @csrf
@endif @else Afficher le pdf @if (auth()->user()->user_type < 5) Déverrouiller le rapport Modifier le rapport en annule et remplace @endif @endif @if (auth()->user()->user_type == 1)
@method('delete') @csrf
@endif @if (auth()->user()->user_type < 4 && $rapport->operation_id == 0 && in_array($rapport->type_rapport, [2, 6, 7, 12])) @endif @if (in_array(auth()->user()->user_id, [1, 433, 443])) @endif @if ($rapport->type_rapport == 9 && auth()->user()->user_type < 5) @endif

@if (!empty($rapport['relu_par'])) Rapport relu par {{ $reviewer['user_firstname'] . ' ' . $reviewer['user_lastname'] }} le {{ date('d/m/Y à H:i', strtotime($rapport['date_relecture'])) }} @endif
@if (isset($rapport['supervise_par']) && isset($validate_by)) Rapport validé par {{ $validate_by['user_firstname'] . ' ' . $validate_by['user_lastname'] }} le {{ date('d/m/Y à H:i', strtotime($rapport['date_supervision'])) }} @endif
@if (auth()->user()->user_type < 5 && $rapport->validation == 0)
@csrf @method('patch')
{{-- @if (in_array($rapport->type_rapport, [2, 9, 12, 13])) --}}
@csrf @method('patch')
{{-- @endif --}}
@endif
@if ($rapport['conformite'] == 'conforme') @elseif($rapport['conformite'] == 'non_conforme') @elseif($rapport['conformite'] == 'non_verifiable') @endif
@if (isset($has_parent) && $has_parent->rapport_parent > 0) Rapport parent @endif @if ($rapport->type_rapport == 9) Rapports liés
@if (isset($nature_rdv->meta_value)) @php $nature_prevue = unserialize($nature_rdv->meta_value); @endphp @if (isset($nature_prevue) && !empty($nature_prevue) && is_array($nature_prevue)) Sous-rapports prévus dans la demande :
@foreach ($nature_prevue as $nat) {{ $titres[$nat] }}
@endforeach @endif @endif @foreach ($liste_rapports as $rapport_part)
Rapport
{{ $rapport_part['titre_rapport'] }}
Fiche rapport Générer le pdf Dupliquer
@csrf @method('DELETE')
{{-- Supprimer le sous-rapport --}}
@isset($rapport_part['rapport']) @if ($rapport_part['rapport']['conformite'] == 'conforme') @elseif($rapport_part['rapport']['conformite'] == 'non_conforme') @elseif($rapport_part['rapport']['conformite'] == 'non_verifiable') @endif @endisset
@endforeach
+
@endif @if (Auth::user()->client_id == 0) @include('dashboard.taches.details')
@include('dashboard.taches.archive') @endif @if (auth()->user()->user_type === 1)
    @if (isset($timeline['date_demande']))
  • Date de création de la demande

    {{ $timeline['date_demande'] }}

  • @endif @if (isset($timeline['date_create_rdv']))
  • Date creation du rdv

    {{ $timeline['date_create_rdv'] }}

  • @endif @if ($rapport->rdv_id > 0)
  • Date du rdv

    {{ $timeline['date_rdv'] }}

  • @endif @if (isset($timeline['date_first_update']))
  • Premier enregistrement du rapport

    {{ $timeline['date_first_update'] }}

  • @endif @if (isset($timeline['actions'])) @foreach ($timeline['actions'] as $action)
  • {!! $action['icon'] ?? '' !!}
    {{ $action['action'] }}

    {{ $action['date'] }}

    @if (isset($action['link'])) Voir le rapport @endif

  • @endforeach @endif
@endif
Client
{{ $rapport['_billing_last_name'] }}
{{ $rapport['_billing_address_1'] }}
{{ $rapport['_billing_postcode'] }} {{ $rapport['_billing_city'] }}
@if ($rapport['operation_id'] > 0 && auth()->user()->user_type < 5) Opération @endif
Lieu d'inspection
{{ $rapport['proprietaire_name'] }}
{{ $rapport['proprietaire_adresse'] }}
{{ $rapport['proprietaire_cp'] }} {{ $rapport['proprietaire_ville'] }}
Bénéficiaire
{{ $rapport['beneficiaire_name'] }}
{{ $rapport['beneficiaire_adresse'] }}
{{ $rapport['beneficiaire_cp'] }} {{ $rapport['beneficiaire_ville'] }}
Documents
@foreach ($documents as $index => $doc_sec) @foreach ($doc_sec as $doc) @if (in_array($doc->doc_ext, config('files_format.format_images'))) @elseif(in_array($doc->doc_ext, config('files_format.ext_pdf'))) @elseif(in_array($doc->doc_ext, config('files_format.format_word'))) @elseif(in_array($doc->doc_ext, config('files_format.format_excel'))) @endif @endforeach @endforeach
@if (session()->has('generate_invoice')) @endif @endsection @section('modal') @include('modals.doc') @include('modals.rapports.add-to-ope') @include('modals.rapports.add_sub_rapport') @if (in_array(auth()->user()->user_id, [1, 433, 443])) @include('modals.rapports.quick-fix') @endif @endsection