@extends('layouts.app') @section('title', 'Bulletins') @section('content')
@if(Auth::user()->hasStateOffice(['Governor'], $state->id)) Create Bulletin @endif @if($bulletins->count() > 0) @foreach($bulletins as $bulletin) @endforeach
ID Subject Published At Actions
{{ $bulletin->id }} {{ $bulletin->subject }} {{ $bulletin->published_at->format('m/d/Y @ g:ia') }} View @if(Auth::user()->hasStateOffice(['Governor'], $state->id)) @if(Auth::id() == $bulletin->user_id) Edit Delete
@csrf @method('delete')
@endif @endif
@else
You currently have no bulletins to display.
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush