@extends('site.layouts.blogAutre') @section('title', 'Liste des articles') @push('css') @endpush @section('content') @include('site.includes.public.headerMenuBlog')
APA-RDC

Liste des articles

//Liste des articles ({{ $posts->count() }})

{{----}} @foreach($posts as $key=>$post) {{----}} @endforeach
ID Titre Auteur Vu(e)s Est publié Status Mise à jourUpdated AtActions
{{ $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
@foreach ($posts as $post)
@csrf @method('DELETE')
@endforeach
@endsection @section('scripts') @endsection