@extends('adminlte::page') @section('title', 'Biblioteca diete') @section('content_header')

Biblioteca diete

@stop @section('content')
@if(session('success'))
{{ session('success') }}
@endif
Nuovo template
@forelse($templates as $template) @empty @endforelse
Nome Descrizione Creato da Visibilità Stato
{{ $template->nome }} {{ Str::limit($template->descrizione, 60) ?: '–' }} {{ $template->createdByUser->name ?? '–' }} @if($template->pubblica) Pubblico @else Privato @endif @if($template->is_attivo) Attivo @else Disattivo @endif @if($template->created_by == auth()->id() || auth()->user()?->puoGestireBibliotecaDiete())
@csrf @method('DELETE')
@else @endif
Nessun template in biblioteca. Creane uno.
@if($templates->hasPages()) @endif
@stop