@extends('layout.app') @section('css') @endsection @section('content')

{{$type}}

ICMR-RMRC {{$type}} Archives
@php $currentDate = now(); $currentNotifications = $notifications->filter(function($notification) use ($currentDate) { return $currentDate->diffInDays($notification->publish_date) <= 35; }); @endphp @forelse($currentNotifications as $key => $data) @empty @endforelse
Sl. No. Notice Title Published Date View Notice
{{$loop->iteration}}

{{$data->title}} - {{$data->description}} @if($data->url) Click here to visit the link @endif @if($currentDate->diffInDays($data->publish_date) <= 10) @endif

{{date('d-m-Y',strtotime($data->publish_date))}}
- No Current Notifications - -
@php $archivedNotifications = $notifications->filter(function($notification) use ($currentDate) { return $currentDate->diffInDays($notification->publish_date) > 15; }); @endphp @forelse($archivedNotifications as $key => $data) @empty @endforelse
Sl. No. Notice Title Published Date View Notice
{{$loop->iteration}}

{{$data->title}} - {{$data->description}} @if($data->url) Click here to visit the link @endif

{{date('d-m-Y',strtotime($data->publish_date))}}
- No Archived Notifications - -
@endsection @section('js') @endsection