Announcement List

@if(Auth::user()->email == 'sdhar@atlassoftweb.com') Add Announcement @endif
@if(Auth::user()->email == 'sdhar@atlassoftweb.com') @endif
{{csrf_field()}}
@php $date = date("Y"); @endphp
@if(Session::get('month') != null || Session::get('year') != null)
@endif
@if(Auth::user()->email == 'sdhar@atlassoftweb.com') @endif @php $i=0; @endphp @foreach($announcement as $announcements) @php $date = date("d-m-Y",strtotime($announcements->date)) @endphp @php $i = $i+1; @endphp @for($i=$i;$i<=count($announcement);) @break @endfor @if(Auth::user()->email == 'sdhar@atlassoftweb.com') @endif @endforeach
Sr.No. Announcements Posted onAction
{{$i}}
@php $title = $announcements->title; if(strlen($title) >= 30 ){ $break = substr($announcements->title, 0,30); echo $break."......"; }else{ echo $title; } @endphp {{$announcements->date}}