@extends('layouts.app') @section('content')
@if(session('success')) @endif

Notice Board - Notice List

@forelse($notices as $key => $notice) @empty @endforelse
SN ID Date Notice Title View Status Action
{{ $notices->firstItem() + $key }} {{ '2024' . sprintf('%04d', $notice->id) }} {{ $notice->day }}
{{ $notice->month }} {{ sprintf('%02d', $notice->date) }}, {{ $notice->year }}
{{ $notice->notice_title }} {{ $notice->view ?? 0 }}
@csrf @method('PATCH') @if($notice->status == 1) @else @endif
@csrf @method('DELETE')
No notices found.
@foreach($notices as $notice) @endforeach
{{ $notices->links('pagination::bootstrap-4') }}
@endsection