@if( !empty($tabs) )
@foreach ($tabs as $key => $tab)
@if(empty($tab['portlet'])) @include( $tab['layout']['target'], @$tab['layout']['data'] ) @else
{{ empty($tab['portlet']['title']) ? $tab['title'] : $tab['portlet']['title'] }}
@if(!empty($tab['portlet']['collapse'])) @endif @if(!empty($tab['portlet']['reload'])) @endif @if(!empty($tab['portlet']['info'])) @endif
@include( $tab['layout']['target'], @$tab['layout']['data'] )
@endif
@endforeach
@endif {{-- # TAB ELEMENT MODEL 'active' => 0, // ACTIVE TABLE TABS[INDEX] 'tabs' => [ [ 'title' => __('{TAB-TITLE}'), 'portlet' => [ 'icon' => 'fa fa-bars', 'title' => __('{PORTLET-TITLE}'), 'reload' => false, 'collapse' => true, 'info' => false, ], 'layout' => [ 'target' => 'path.to.view', // VIEW ON POTLET CONTENT 'data' => [ ... // VIEW DATA ], ] ], ... ] // TABLE CONFIG FORMAT NO SPECIAL ACTION TO LOAD ON READY --}}