{{-- 機能ボタン --}} @php($dashboardFilteredMenus = App\Services\Logic\Assist::getFilteredMenus())
@php( $ribbon = "inline-block relative h-7 leading-7 -ml-4 -mt-4 pl-2 pr-4 text-center bg-primary-700 text-white text-xs font-sansf tracking-widest min-w-10 box-border after:absolute after:content-[''] after:w-0 after:h-0 after:z-10 after:-top-0 after:right-0 after:border-y-[14px] after:border-r-[7px] after:border-l-0 after:border-y-transparent after:border-r-white after:border-l-transparent" ) {{-- 権限フィルタリング済みメニューからカテゴリボタンを動的生成 --}} @foreach($dashboardFilteredMenus as $categoryKey => $category)
@endforeach
{{-- ドロップダウンメニュー --}}
{{-- ログインユーザーのロール権限でフィルタリングされたメニューを取得 --}} @php($filteredMenus = App\Services\Logic\Assist::getFilteredMenus()) @php($viewMenus = App\Services\Logic\Assist::canViewMenus()) @php($viewMenuIds = is_array($viewMenus) ? collect([]) : $viewMenus->pluck('menu_id')) {{-- config/display_menus.phpから自動生成(権限フィルタリング済み) --}} @foreach($filteredMenus as $categoryKey => $category) @if($categoryKey !== 'reports') {{-- レポートは特別処理なので除外 --}}

{{ $category['label'] }}

@foreach($category['sections'] as $sectionKey => $section)
first) class="" @endif>

{{ $section['label'] }}

@foreach($section['items'] as $item) {{ $item['label'] }} @endforeach
@endforeach
@endif @endforeach {{-- 検索・レポートは特別処理(reportsカテゴリがフィルタリング済みメニューに含まれている場合のみ表示) --}} @if(isset($filteredMenus['reports']))

検索・レポート

{{-- 検索 --}}

検索

@foreach(config('report') as $report) @if(isset($report['type']) && $report['type']=='search') @php($url = (!isset($report['id']) && isset($report['note']) && isset($report['route'])) ? route($report['route']) : route('reports.index', ['report'=>$report['id']])) @php($path = trim(parse_url($url, PHP_URL_PATH), '/')) @php($menuId = App\Services\Logic\Assist::routeToMenuId($path)) @if($viewMenuIds->isEmpty() || $viewMenuIds->containsStrict($menuId)) @php($href = (!isset($report['id']) && isset($report['note']) && isset($report['route'])) ? route($report['route']) : route('reports.index', ['report'=>$report['id']])) {{$report['name']}} @endif @endif @endforeach
{{-- レポート --}}

レポート

@foreach(config('report') as $report) @if(isset($report['type']) && $report['type']=='report') @php($url = (!isset($report['id']) && isset($report['note']) && isset($report['route'])) ? route($report['route']) : route('reports.index', ['report'=>$report['id']])) @php($path = trim(parse_url($url, PHP_URL_PATH), '/')) @php($menuId = App\Services\Logic\Assist::routeToMenuId($path)) @if($viewMenuIds->isEmpty() || $viewMenuIds->containsStrict($menuId)) @php($href = (!isset($report['id']) && isset($report['note']) && isset($report['route'])) ? route($report['route']) : route('reports.index', ['report'=>$report['id']])) {{$report['name']}} @endif @endif @endforeach
@endif
{{-- 状況・件数 --}} {{-- --}} {{-- カスタムメニュー --}}
Shortcut Menu
@auth @endauth
@auth
読み込み中...
@else

ログインしてショートカットを利用してください

@endauth
{{-- タスク・メッセージ --}} Messages {{-- 読み込み中表示 --}}
日付 タイトル
読み込み中...
@auth @endauth