From 19e4bfc95a0b30bc0bf18052f22465ffc46459c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 29 Jun 2021 09:12:16 +0200 Subject: [PATCH] fix forgotten $userPr --- resources/views/ticket/form-inputs.blade.php | 2 +- resources/views/ticket/index.blade.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/views/ticket/form-inputs.blade.php b/resources/views/ticket/form-inputs.blade.php index e015468..9e5bded 100644 --- a/resources/views/ticket/form-inputs.blade.php +++ b/resources/views/ticket/form-inputs.blade.php @@ -1,6 +1,6 @@ @include('modules.error-messages') @php -$userPr = Auth::user()->projects; +$userPr = Auth::user()->projects ?? collect([]); @endphp
diff --git a/resources/views/ticket/index.blade.php b/resources/views/ticket/index.blade.php index 78bb4b0..157e169 100644 --- a/resources/views/ticket/index.blade.php +++ b/resources/views/ticket/index.blade.php @@ -1,6 +1,9 @@ @extends('layout.app') @section('content') +@php +$userPr = Auth::user()->projects ?? collect([]); +@endphp

Gestion des tickets @if(request()->status) (Archivés) @endif