@extends('backend.superadmin.index') @section('body')

{{$pageHeading}}

@if(session('success'))
@endif @if(session('error'))
@endif @if($errors->any())
@endif
Title
Choose Section
#
#
@foreach($breakings as $key=>$breaking) @php $model = $breaking->model; $title_name = $breaking->title_name; $modelName = $breaking->model; @endphp @endforeach
SN Title Section Status Action
{{++$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')
{{csrf_field()}}
@else
{{csrf_field()}}
@endif
@endsection @section('script') @endsection