@extends('layouts.school-portal')

@section('title', 'Announcements')

@section('content')
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <!-- Create Button Row -->
                <div class="mb-3 text-end">
                    <a href="{{ route('announcements.create') }}" class="btn btn-primary">
                        <i class="fas fa-plus me-2"></i>Create Announcement
                    </a>
                </div>

                <div class="card">
                    <div class="card-header">
                        <h4 class="card-title mb-0">Announcements</h4>
                    </div>
                    <div class="card-body">
                        <livewire:announcements-table/>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
