@extends('site.layouts.blogAutre') @section('title', 'Liste des articles') @push('css') @endpush @section('content') @include('site.includes.public.headerMenuBlog') APA-RDC Liste des articles Accueil Liste des articles @auth @can('Création des article') Ajouter @endcan @endauth //Liste des articles ({{ $posts->count() }}) ID Titre Auteur Vu(e)s Est publié Status Mise à jour {{--Updated At--}} Actions @foreach($posts as $key=>$post) {{ $key + 1 }} {{ Str::limit($post->title,'50') }} {{ $post->user->name }} {{ $post->view_count }} @if($post->is_approved == true) Approuver @else En attente @endif @if($post->status == true) Publié @else En attente @endif {{ $post->created_at }} {{--{{ $post->updated_at }}--}} @can('Apercu article') @endcan @can('Modification des articles') @endcan @can('Suppression des articles') @endcan @endforeach Copy Source @foreach ($posts as $post) @csrf @method('DELETE') Suppression en cours... Vous êtes sur le point de supprimer un enregistrement dans la base de données. Etes-vous sûr de vouloir supprimé définitivement cet enregistrement ? @endforeach @endsection @section('scripts') @endsection