condition with type status

master
Gustavo Luigi 2023-10-30 21:04:58 -03:00
parent b28a62f275
commit f83d24df77
1 changed files with 51 additions and 48 deletions

View File

@ -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