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