-
Dashboard
- {{'All News'}}
@if ( ($currentUserRole == 'admin') )
Add News
@endif
@if(Session::has('success'))
×
{!! session('success') !!}
@endif
S.no. |
Title |
Month |
Year |
Actions |
{{ csrf_field() }}
@php $ctr = 0 @endphp
@if( isset($news) && count($news) > 0 )
@foreach($news as $k => $v)
{{ ++$ctr }} |
{{ ( ( strlen($v['news_title']) > 50 ) ? ucfirst( substr($v['news_title'], 0, 48) ).'...' : ucfirst($v['news_title']) ) }} |
{{ $v['news_month'] }} |
{{ $v['news_year'] }} |
@if ( ($currentUserRole == 'admin') )
|
@endif
@if ( ($currentUserRole == 'admin'))
@if( $v['status']==0 )
|
@else
|
@endif
@endif
|
@endforeach
@endif
@if( count($news)==0 )
No records found
@endif
@if(count($news) > 0)
{{ $news->links() }}
@endif