@extends('components.layout.admin.container') @section('title', 'Blog') @section('links') @endsection @section('main') Blog Tambah Blog @foreach ($blogs as $item) {{ $item->title }} {{ Carbon\Carbon::parse($item->created_at)->isoFormat('DD MMMM YYYY') ?? '28 Juni 2006' }} {{ $item->comment->count() }} Komentar {{ $item->show ? 'show' : 'hidden' }} {{ $item->summary }} Update @csrf @method('DELETE') Delete @endforeach {{ $blogs->appends(request()->query())->links() }} @endsection @section('scripts') @endsection
Tambah Blog
{{ $item->comment->count() }} Komentar
{{ $item->show ? 'show' : 'hidden' }}
{{ $item->summary }}