@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Admin | Notification @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Records / Notifications

@php $yearRange = session('year_range'); // Example: "2023-2024" $currentDate = now(); [$startYear, $endYear] = explode('-', $yearRange); $startDate = \Carbon\Carbon::create($startYear, 4, 1, 0, 0, 0); // April 1st $endDate = \Carbon\Carbon::create($endYear, 3, 31, 23, 59, 59); // March 31st @endphp @if ($currentDate->between($startDate, $endDate)) @endif
Notification List
@if (count($announcements) != 0) @foreach ($announcements as $key => $announcement) @endforeach @else @endif
S.No Title Content Type Date Actions
{{ $key + 1 }}
{{ ucwords($announcement->title) }}
{{ ucfirst(substr($announcement->content, 0, 50)) }}{{ strlen($announcement->content) > 50 ? '...' : '' }}
{{ ucwords($announcement->type) }} {{ \Carbon\Carbon::parse($announcement->announcement_time)->format('d-m-y') }}
No notification found
@endsection