@extends('layouts.app') @section('title', 'Bulletin') @section('content')
@if($bulletin->attachment) @if(in_array($bulletin->attachment_extension, ['jpg', 'png', 'jpeg', 'gif', 'svg'])) {{ $bulletin->subject }} {{--
{{ $bulletin->subject }}
--}} @elseif(in_array($bulletin->attachment_extension, ['pdf']))

Attachment: Download ({{ $bulletin->attachment }})

@elseif(in_array($bulletin->attachment_extension, ['doc', 'docx']))

Attachment: Download ({{ $bulletin->attachment }})

@endif @else

No Attachment

@endif {{--
{{ $bulletin->subject }}
--}}

{{ $bulletin->subject }}

{!! $bulletin->body !!}

@if(Auth::user()->hasStateOffice(['Governor'], $state->id)) All Bulletins @endif @if(Auth::id() == $bulletin->user_id) Edit Delete
@csrf @method('delete')
@endif
@endsection @push('scripts') @endpush