@extends('layouts.security')

@section('content')

<h2>Pengumuman</h2>

<div class="announce-list">

@foreach($announcements as $item)

<div class="announce-card priority-high">

    <div class="announce-top">
        <span class="announce-icon"></span>

        <div>
            <h3>{{ $item->title }}</h3>
            <small>{{ $item->created_at->format('d M Y') }}</small>
        </div>

    </div>

    <p style="white-space: pre-line;">
    {{ $item->message }}
    </p>

</div>

@endforeach

</div>

@endsection