@extends('school.layouts.app') @section('content') {{-- 1. REQUIRED CDNS FOR THE WARNING ALERT --}}

Broadcast History

Review and manage all previous broadcast announcements.

Compose New
@forelse($history as $item)
{{ $item->category }} {{ \Carbon\Carbon::parse($item->created_at)->format('d M, Y H:i') }}
{{ $item->priority }} Priority

{{ $item->message }}

{{ $item->target_audience }}
{{-- The class 'delete-form' is what the JavaScript looks for --}}
@csrf @method('DELETE')
@empty

No broadcast history found.

@endforelse
{{-- 2. THE JAVASCRIPT TO INTERCEPT DELETE AND SHOW THE 3D WARNING --}} @endsection