@extends('core::layouts.master') @section('breadcrumb','Bố cục trang chủ') @section('head') @endsection @section('content')
@php $count = 0; @endphp @foreach ($layout_theme as $pos=> $blocks) @php $count++; @endphp @foreach ($blocks as $block=>$element)

{{ @$element['label'] }}

@isset ($element['widgets']) @foreach ($element['widgets'] as $widget) @php $widget_status = ($widget['is_published']==1)?'border-top-lg border-top-success':'' @endphp @include('widget::items.'.$widget['widget_taxonomy'], ['taxonomy'=>$widget['widget_taxonomy'],'data' => $widget,'class'=>'widget-item-exist '.$widget_status,'pos'=>$pos,'position'=>$widget_active[$widget['widget_taxonomy']]]) @endforeach @endisset
@if ($count ==1 )
@endif @endforeach @endforeach
Danh sách Widgets

Để kích hoạt widget kéo nó vào khung bên trái. Để xóa kéo widget quay về.

@foreach($widget_exist->split(2) as $widget_list)
@foreach($widget_list as $type=>$item) @include('widget::items.'.$type,['taxonomy'=>$type,'position'=>$widget_active[$type],'data'=>null,'class'=>null]) @endforeach
@endforeach
{{--Image preview--}} {{--Banner popup--}} {{--Image popup--}} @endsection @include('widget::scripts')