condition with type status
parent
b28a62f275
commit
f83d24df77
|
@ -1,3 +1,4 @@
|
|||
@inject('type', 'Type')
|
||||
@extends('template.'.config('settings.template').'.content.master')
|
||||
@section('content')
|
||||
|
||||
|
@ -26,6 +27,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
@if($type->get("News")->status)
|
||||
@php($news = filterByContentType("News"))
|
||||
@if($news->isNotEmpty())
|
||||
<section id="article-section" >
|
||||
|
@ -83,6 +85,7 @@
|
|||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue