@extends('backend.master') @section('title', 'Headlines') @section('content')
@if (session('status')) @endif
{{-- Form column --}}
{{ $editing ? 'Edit Headline' : 'Create Headline' }}
@if($editing) + New @endif
@if ($editing && $current)
@csrf @method('PUT')
@error('headline')
{{ $message }}
@enderror
Cancel
@else
@csrf
@error('headline')
{{ $message }}
@enderror
@endif
{{-- Table column --}}
All Headlines
@forelse ($headlines as $h) @empty @endforelse
# Headline Created Updated Actions
{{ $h->id }}
{{ \Illuminate\Support\Str::limit($h->headline, 140) }}
{{ optional($h->created_at)->format('d M Y, h:i A') }} {{ optional($h->updated_at)->format('d M Y, h:i A') }}
Edit {{-- inline delete (no modal) --}}
@csrf @method('DELETE')
No headlines found.
@if($headlines->hasPages()) @endif
@endsection