@extends('layouts.app') @section('content')
@include('layouts.notification.errors') @include('layouts.notification.success')
@if(isset($panneau)) @endif
{{ isset($panneau) ? 'MODIFICATION D\'UN CHANTIER' : 'AJOUT D\'UN CHANTIER' }}
@php $classDisabled = !isset($panneau) ? 'disableInCreate' : ''; @endphp

@if(isset($panneau) && $panneau?->qrLink)
{!! \SimpleSoftwareIO\QrCode\Facades\QrCode::size(100)->generate(route('qr.redirect', $panneau->qrLink->slug)) !!}
{!! \SimpleSoftwareIO\QrCode\Facades\QrCode::size(120)->generate(route('qr.redirect', $panneau->qrLink->slug)) !!}
{!! \SimpleSoftwareIO\QrCode\Facades\QrCode::size(140)->generate(route('qr.redirect', $panneau->qrLink->slug)) !!}
{{ route('qr.redirect', $panneau->qrLink->slug) }}
@else
Aucun QR code associé.
@endif
@include('panneaux.blocs.informations', ['panneau' => $panneau ?? null])
@include('panneaux.blocs.permis', ['panneau' => $panneau ?? null])
@include('panneaux.blocs.intervenants', ['panneau' => $panneau ?? null])
@include('panneaux.blocs.lots', ['panneau' => $panneau ?? null])
@include('panneaux.blocs.sousTraitants', ['panneau' => $panneau ?? null])
@include('panneaux.blocs.labels', ['panneau' => $panneau ?? null])
@endsection