@if(session('success'))
Success {{session('success')}}
@endif
@if(session('error'))
Error {{session('error')}}
@endif
@if($errors->any())
@foreach($errors->all() as $error)
Error {{$error}}
@endforeach
@endif
| SN |
Title |
Section |
Status |
Action |
@foreach($breakings as $key=>$breaking)
@php
$model = $breaking->model;
$title_name = $breaking->title_name;
$modelName = $breaking->model;
@endphp
| {{++$key}} |
{{$breaking->$model->$title_name}} |
@if ($modelName=='article')
Article
@php
$posts = \App\Model\Article::where('status','Active')->orderBy('id','DESC')->get();
@endphp
@elseif($modelName=='event')
Event
@php
$posts = \App\Model\Event::where('status','Active')->orderBy('id','DESC')->get();
@endphp
@elseif($modelName=='interview')
Interview
@php
$posts = \App\Model\Interview::where('status','Active')->orderBy('id','DESC')->get();
@endphp
@elseif($modelName=='notice')
Notice
@php
$posts = \App\Model\Notice::where('status','Active')->orderBy('id','DESC')->get();
@endphp
@endif
|
@if($breaking->status=='1')
@else
@endif
|
|
@endforeach