@extends('layouts.app') @section('title', 'News & Posts') @section('nav_posts', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'News & Announcements') @section('page_subtitle', 'Blog posts shown on the public /news page') @section('content') @if(session('success'))
{{ session('success') }}
@endif

{{ $posts->count() }} post{{ $posts->count() !== 1 ? 's' : '' }}

New Post
@if($posts->isEmpty())
No posts yet. Write your first one.
@else
@foreach($posts as $post)
@if($post->cover_image) @else
@endif
{{ $post->title }} @if($post->status === 'draft') Draft @elseif($post->isScheduled()) Scheduled @else Published @endif @if($post->category){{ $post->category }}@endif
@if($post->excerpt)

{{ $post->excerpt }}

@endif

{{ $post->published_at ? $post->published_at->format('M j, Y g:i A') : 'No publish date' }} @if($post->author) ยท by {{ $post->author->name }}@endif

@if($post->status === 'published' && !$post->isScheduled()) View @endif Translate Edit
@csrf @method('DELETE')
@endforeach
@endif @endsection