@if($grid_id) @php setGridId( $grid_id ); $css = getCss(); if(!empty(getBgOverlay())) $css = 'position:relative;'.$css; @endphp @endif
{!! getBgOverlay() !!}
@if(!empty($data)) @foreach ($data as $column => $components)
@if (!empty($css['background-overlay-color']))
@endif @foreach ($components as $component) @php setSectionId($component['id']); @endphp @if(view()->exists('pagebuilder.' . $component['section_id'] . '.view')) @component('pagebuilder::components.grid', [ 'template_id' => $component['section_id'], 'droppable' => false, 'id' => $component['id'] ] )
{!! view('pagebuilder.' . $component['section_id']. '.view')->render() !!}
@endcomponent @else @component('pagebuilder::components.grid', [ 'template_id' =>null, 'droppable' => true, 'id' => null, ] ) @endcomponent @endif @endforeach
@endforeach @else @foreach ($columns as $item)
@component('pagebuilder::components.grid',['class'=>'','template_id'=>null,'id'=>'','droppable'=>true]) @endcomponent
@endforeach @endif @component('pagebuilder::components.grid-actions',['class'=>'','template_id'=>null,'id'=>'','droppable'=>false]) @endcomponent
{{ $grid }}