@php $carts = \Cart::getListCart(); @endphp {{$title??sc_store('title')}} @isset ($blocksContent['meta']) @foreach ( $blocksContent['meta'] as $layout) @php $arrPage = explode(',', $layout->page) @endphp @if ($layout->page == '*' || (isset($layout_page) && in_array($layout_page, $arrPage))) @if ($layout->type =='html') {!! $layout->text !!} @endif @endif @endforeach @endisset @isset ($blocksContent['header']) @foreach ( $blocksContent['header'] as $layout) @php $arrPage = explode(',', $layout->page) @endphp @if ($layout->page == '*' || (isset($layout_page) && in_array($layout_page, $arrPage))) @if ($layout->type =='html') {!! $layout->text !!} @endif @endif @endforeach @endisset @include('templates.'.sc_store('template').'.header') @isset ($blocksContent['banner_top']) @foreach ( $blocksContent['banner_top'] as $layout) @php $arrPage = explode(',', $layout->page) @endphp @if ($layout->page == '*' || (isset($layout_page) && in_array($layout_page, $arrPage))) @if ($layout->type =='html') {!! $layout->text !!} @elseif($layout->type =='view') @if (view()->exists('block.'.$layout->text)) @include('block.'.$layout->text) @endif @elseif($layout->type =='module') {!! sc_block_render($layout->text) !!} @endif @endif @endforeach @endisset @isset ($blocksContent['top']) @foreach ( $blocksContent['top'] as $layout) @php $arrPage = explode(',', $layout->page) @endphp @if ($layout->page == '*' || (isset($layout_page) && in_array($layout_page, $arrPage))) @if ($layout->type =='html') {!! $layout->text !!} @elseif($layout->type =='view') @if (view()->exists('block.'.$layout->text)) @include('block.'.$layout->text) @endif @elseif($layout->type =='module') {!! sc_block_render($layout->text) !!} @endif @endif @endforeach @endisset
@section('main') @include('templates.'.sc_store('template').'.left') @include('templates.'.sc_store('template').'.center') @include('templates.'.sc_store('template').'.right') @show
@include('templates.'.sc_store('template').'.footer') @stack('scripts') @if(Session::has('success')) @endif @if(Session::has('error')) @endif @if(Session::has('warning')) @endif @isset ($blocksContent['bottom']) @foreach ( $blocksContent['bottom'] as $layout) @php $arrPage = explode(',', $layout->page) @endphp @if ($layout->page == '*' || (isset($layout_page) && in_array($layout_page, $arrPage))) @if ($layout->type =='html') {!! $layout->text !!} @elseif($layout->type =='view') @if (view()->exists('block.'.$layout->text)) @include('block.'.$layout->text) @endif @elseif($layout->type =='module') {!! sc_block_render($layout->text) !!} @endif @endif @endforeach @endisset