@extends($_layout.'main') {{-- khai báo title --}} @section('title', $menu->name) {{-- tên modul xuất hiện trong sub header --}} @section('module.name', $menu->name) @section('content')
@include($_current.'templates.add-form')

Menu {{$menu->name}}

{$text} sub menu: {$subType}
@include($_current.'templates.modals') {{-- @include($_template.'modal-icons') --}} @endsection {{-- Nhúng link css --}} @section('css') @endsection {{-- Nhúng js --}} @section('jsinit') @endsection @if ($theme && $theme->package && is_array($theme->package) && $package = $theme->package) @php if(array_key_exists('icons', $package) && is_array($package['icons'])){ $icons = []; foreach ($package['icons'] as $slug => $iconData) { $icon = crazy_arr($iconData); if(is_array($icon->style)){ foreach ($icon->style as $link) { $l = str_replace('@assets/', '', $link); if($l != $link){ add_css_link(theme_asset($l)); }else{ add_css_link($link); } } } if(is_array($icon->list)){ $listIcons = []; foreach ($icon->list as $list) { if(is_array($list)){ if(array_key_exists('items', $list) && is_array($list['items'])){ $prefix = array_key_exists('prefix', $list) ? $list['prefix'] : ''; foreach ($list['items'] as $item) { $listIcons[] = $prefix.$item; } }elseif(array_val_type($list, 'string')){ foreach ($list as $item) { $listIcons[] = $item; } } } } if(count($listIcons)){ $icons[$icon->key] = [ 'title' => $icon->title, 'list' => $listIcons ]; } } } if($icons){ add_js_data('icon_picker_data', $icons); } } @endphp @endif @section('js') {{-- --}} @if ($e = $errors->first()) @endif @endsection