@extends('layouts.layout') @section('content')

Notices

Notice List

@if (Auth::user()->role === 'admin') Create Notice @endif @foreach($notices as $notice) @endforeach
Title Created At Action
{{ $notice->title }} {{ $notice->created_at }} View @if (Auth::user()->role === 'admin') Edit
@csrf @method('DELETE')
@endif
{{ $notices->links() }}
@endsection