{{-- Meta --}} @if(!isset($data['result']['name'])) {{-- Get setting parameter --}} @php $parameter = json_decode($GLOBALS['project_app']['result']['parameter'], true); @endphp @if(isset($parameter['keywords'])) @if($parameter['keywords']) @else @endif @else @endif @if(isset($parameter['description'])) @if($parameter['description']) @endif @endif @endif @section('meta') @show {{-- Favicon --}} {{-- CSS Load --}} {{-- Preset Font Awesome --}} {{-- Custom Style --}} @section('css') @show {{-- Global Loading Overlay --}} @foreach($GLOBALS['layout']['result']['layout_assigning'] as $no => $layout) {{-- Menu Bar --}} @if($layout['layout_type_id'] == 1) @section('menu') @show {{-- Article --}} @elseif($layout['layout_type_id'] == 2) @section('body')
@yield('content')
@show {{-- Common --}} @elseif($layout['layout_type_id'] == 3)
@if(json_decode($layout['value'], true)) @foreach(json_decode($layout['value'], true) as $count => $data) @if(preg_match('/'.implode('|', $preg_match_pattern).'/', $data['content']) !== false) @include('layouts.partials.news', ['content' => $data['content']]) @else {!! $data['content'] !!} @endif @endforeach @endif
{{-- floating --}} @elseif($layout['layout_type_id'] == 5)
@foreach(json_decode($layout['value'], true) as $count => $data) {!! $data['content'] !!} @endforeach
{{-- Carousel --}} @elseif($layout['layout_type_id'] == 4) @endif @endforeach