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

Notice Board

Publish New Notice
@if(session('success')) @endif
Active Notices
@forelse($notices as $notice) @empty @endforelse
ID Title & Details Attached File Posted Date Management
#{{ $notice->id }}
{{ $notice->title }} Posted by Administrator
@if($notice->uploads) @php $ext = pathinfo($notice->uploads, PATHINFO_EXTENSION); $icon = 'bi-file-earmark'; $color = 'text-primary'; if(in_array($ext, ['pdf'])) { $icon = 'bi-file-earmark-pdf'; $color = 'text-danger'; } elseif(in_array($ext, ['jpg', 'png', 'jpeg'])) { $icon = 'bi-file-earmark-image'; $color = 'text-success'; } @endphp
View Document
@else NO_ATTACHMENT @endif
{{ $notice->created_at->format('d M, Y') }} {{ $notice->created_at->diffForHumans() }}
@if($notice->uploads) @endif
@csrf @method('DELETE')
Empty
No Notices Published

You haven't posted any notices yet. Keep your team updated!

Create First Notice
@endsection @section('styles') @endsection