fix: evita errore blade nella pagina modifiche supporto
This commit is contained in:
parent
50941f1130
commit
920f20cab1
|
|
@ -1,6 +1,8 @@
|
||||||
<div class="fi-page">
|
<div class="fi-page">
|
||||||
@php($supportUpdateAuthUser = auth()->user())
|
@php
|
||||||
@php($supportCanRunUpdate = $supportUpdateAuthUser && method_exists($supportUpdateAuthUser, 'hasAnyRole') && $supportUpdateAuthUser->hasAnyRole(['super-admin', 'admin', 'amministratore']))
|
$supportUpdateAuthUser = auth()->user();
|
||||||
|
$supportCanRunUpdate = $supportUpdateAuthUser && method_exists($supportUpdateAuthUser, 'hasAnyRole') && $supportUpdateAuthUser->hasAnyRole(['super-admin', 'admin', 'amministratore']);
|
||||||
|
@endphp
|
||||||
<div class="mx-auto max-w-7xl space-y-3 text-xs">
|
<div class="mx-auto max-w-7xl space-y-3 text-xs">
|
||||||
<x-filament.components.page-breadcrumbs
|
<x-filament.components.page-breadcrumbs
|
||||||
:breadcrumbs="[
|
:breadcrumbs="[
|
||||||
|
|
@ -904,10 +906,7 @@ class="inline-flex items-center rounded-md px-3 py-1.5 text-xs font-medium {{ $t
|
||||||
<td class="border px-2 py-1.5">{{ $commit['author'] }}</td>
|
<td class="border px-2 py-1.5">{{ $commit['author'] }}</td>
|
||||||
<td class="border px-2 py-1.5">{{ $commit['message'] }}</td>
|
<td class="border px-2 py-1.5">{{ $commit['message'] }}</td>
|
||||||
<td class="border px-2 py-1.5">
|
<td class="border px-2 py-1.5">
|
||||||
@php
|
<div class="max-w-[380px] break-words text-[11px] {{ $this->getCommitNote($commit['hash']) !== '' ? 'text-slate-800' : 'text-gray-400' }}">{{ $this->getCommitNote($commit['hash']) !== '' ? $this->getCommitNote($commit['hash']) : '-' }}</div>
|
||||||
$note = $this->getCommitNote($commit['hash']);
|
|
||||||
@endphp
|
|
||||||
<div class="max-w-[380px] break-words text-[11px] {{ $note !== '' ? 'text-slate-800' : 'text-gray-400' }}">{{ $note !== '' ? $note : '-' }}</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user