@extends('adminlte::page') @php use App\Services\Annunci\AnnunciService; @endphp @section('title', 'Annunci') @section('content_header')

Tutti gli annunci

@can(AnnunciService::PERMESSO_GESTIONE)
Gestione (bozze e filtri)
@endcan
@stop @section('content') @if(session('success'))
{{ session('success') }}
@endif
@forelse($annunci as $annuncio) @php($letto = $letture->has($annuncio->id))
{{ $annuncio->Tipo }} @unless($letto) Nuovo @endunless {{ $annuncio->Titolo }}
{{ Str::limit(strip_tags($annuncio->Descrizione), 160) }}
{{ $annuncio->DataPubblicazione?->format('d/m/Y') }} @can(AnnunciService::PERMESSO_GESTIONE)
@csrf @method('DELETE')
@endcan
@empty

Nessun annuncio pubblicato.

@endforelse
@if($annunci->hasPages()) @endif
@can(AnnunciService::PERMESSO_GESTIONE) @endcan @stop @section('js') @can(AnnunciService::PERMESSO_GESTIONE) @endcan @stop