phases one of time logged now with log display
This commit is contained in:
@@ -22,20 +22,15 @@
|
||||
@endphp
|
||||
|
||||
<li
|
||||
{{
|
||||
$attributes->class([
|
||||
'fi-sidebar-item',
|
||||
'fi-active' => $active,
|
||||
'fi-sidebar-item-has-active-child-items' => $activeChildItems,
|
||||
'fi-sidebar-item-has-url' => filled($url),
|
||||
])
|
||||
}}
|
||||
>
|
||||
<a
|
||||
{{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }}
|
||||
{{ $attributes->class([
|
||||
'fi-sidebar-item',
|
||||
'fi-active' => $active,
|
||||
'fi-sidebar-item-has-active-child-items' => $activeChildItems,
|
||||
'fi-sidebar-item-has-url' => filled($url),
|
||||
]) }}>
|
||||
<a {{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }}
|
||||
x-on:click="window.matchMedia(`(max-width: 1024px)`).matches && $store.sidebar.close()"
|
||||
@if ($sidebarCollapsible && (! $subNavigation))
|
||||
x-data="{ tooltip: false }"
|
||||
@if ($sidebarCollapsible && !$subNavigation) x-data="{ tooltip: false }"
|
||||
x-effect="
|
||||
tooltip = $store.sidebar.isOpen
|
||||
? false
|
||||
@@ -45,35 +40,27 @@
|
||||
theme: $store.theme,
|
||||
}
|
||||
"
|
||||
x-tooltip.html="tooltip"
|
||||
@endif
|
||||
class="fi-sidebar-item-btn"
|
||||
>
|
||||
@if (filled($icon) && ((! $subGrouped) || ($sidebarCollapsible && (! $subNavigation))))
|
||||
{{
|
||||
\Filament\Support\generate_icon_html(($active && $activeIcon) ? $activeIcon : $icon, attributes: (new \Illuminate\View\ComponentAttributeBag([
|
||||
'x-show' => ($subGrouped && $sidebarCollapsible) ? '! $store.sidebar.isOpen' : false,
|
||||
]))->class(['fi-sidebar-item-icon']), size: \Filament\Support\Enums\IconSize::Large)
|
||||
}}
|
||||
x-tooltip.html="tooltip" @endif
|
||||
class="fi-sidebar-item-btn">
|
||||
@if (filled($icon) && (!$subGrouped || ($sidebarCollapsible && !$subNavigation)))
|
||||
{{ \Filament\Support\generate_icon_html(
|
||||
$active && $activeIcon ? $activeIcon : $icon,
|
||||
attributes: new \Illuminate\View\ComponentAttributeBag([
|
||||
'x-show' => $subGrouped && $sidebarCollapsible ? '! $store.sidebar.isOpen' : false,
|
||||
])->class(['fi-sidebar-item-icon']),
|
||||
size: \Filament\Support\Enums\IconSize::Large,
|
||||
) }}
|
||||
@endif
|
||||
|
||||
@if ((blank($icon) && $grouped) || $subGrouped)
|
||||
<div
|
||||
@if (filled($icon) && $subGrouped && $sidebarCollapsible && (! $subNavigation))
|
||||
x-show="$store.sidebar.isOpen"
|
||||
@endif
|
||||
class="fi-sidebar-item-grouped-border"
|
||||
>
|
||||
@if (! $first)
|
||||
<div
|
||||
class="fi-sidebar-item-grouped-border-part-not-first"
|
||||
></div>
|
||||
<div @if (filled($icon) && $subGrouped && $sidebarCollapsible && !$subNavigation) x-show="$store.sidebar.isOpen" @endif
|
||||
class="fi-sidebar-item-grouped-border">
|
||||
@if (!$first)
|
||||
<div class="fi-sidebar-item-grouped-border-part-not-first"></div>
|
||||
@endif
|
||||
|
||||
@if (! $last)
|
||||
<div
|
||||
class="fi-sidebar-item-grouped-border-part-not-last"
|
||||
></div>
|
||||
@if (!$last)
|
||||
<div class="fi-sidebar-item-grouped-border-part-not-last"></div>
|
||||
@endif
|
||||
|
||||
<div class="fi-sidebar-item-grouped-border-part"></div>
|
||||
@@ -81,31 +68,22 @@
|
||||
@endif
|
||||
|
||||
<span
|
||||
@if ($sidebarCollapsible && (! $subNavigation))
|
||||
x-show="$store.sidebar.isOpen"
|
||||
@if ($sidebarCollapsible && !$subNavigation) x-show="$store.sidebar.isOpen"
|
||||
x-transition:enter="fi-transition-enter"
|
||||
x-transition:enter-start="fi-transition-enter-start"
|
||||
x-transition:enter-end="fi-transition-enter-end"
|
||||
@endif
|
||||
class="fi-sidebar-item-label"
|
||||
>
|
||||
x-transition:enter-end="fi-transition-enter-end" @endif
|
||||
class="fi-sidebar-item-label">
|
||||
{{ $slot }}
|
||||
</span>
|
||||
|
||||
@if (filled($badge))
|
||||
<span
|
||||
@if ($sidebarCollapsible && (! $subNavigation))
|
||||
x-show="$store.sidebar.isOpen"
|
||||
@if ($sidebarCollapsible && !$subNavigation) x-show="$store.sidebar.isOpen"
|
||||
x-transition:enter="fi-transition-enter"
|
||||
x-transition:enter-start="fi-transition-enter-start"
|
||||
x-transition:enter-end="fi-transition-enter-end"
|
||||
@endif
|
||||
class="fi-sidebar-item-badge-ctn"
|
||||
>
|
||||
<x-filament::badge
|
||||
:color="$badgeColor"
|
||||
:tooltip="$badgeTooltip"
|
||||
>
|
||||
x-transition:enter-end="fi-transition-enter-end" @endif
|
||||
class="fi-sidebar-item-badge-ctn">
|
||||
<x-filament::badge :color="$badgeColor" :tooltip="$badgeTooltip">
|
||||
{{ $badge }}
|
||||
</x-filament::badge>
|
||||
</span>
|
||||
@@ -117,7 +95,7 @@
|
||||
@foreach ($childItems as $childItem)
|
||||
@php
|
||||
$isChildItemChildItemsActive = $childItem->isChildItemsActive();
|
||||
$isChildActive = (! $isChildItemChildItemsActive) && $childItem->isActive();
|
||||
$isChildActive = !$isChildItemChildItemsActive && $childItem->isActive();
|
||||
$childItemActiveIcon = $childItem->getActiveIcon();
|
||||
$childItemBadge = $childItem->getBadge();
|
||||
$childItemBadgeColor = $childItem->getBadgeColor($childItemBadge);
|
||||
@@ -128,23 +106,9 @@
|
||||
$childItemExtraAttributes = $childItem->getExtraAttributeBag();
|
||||
@endphp
|
||||
|
||||
<x-filament-panels::sidebar.item
|
||||
:active="$isChildActive"
|
||||
:active-child-items="$isChildItemChildItemsActive"
|
||||
:active-icon="$childItemActiveIcon"
|
||||
:badge="$childItemBadge"
|
||||
:badge-color="$childItemBadgeColor"
|
||||
:badge-tooltip="$childItemBadgeTooltip"
|
||||
:first="$loop->first"
|
||||
grouped
|
||||
:icon="$childItemIcon"
|
||||
:last="$loop->last"
|
||||
:should-open-url-in-new-tab="$shouldChildItemOpenUrlInNewTab"
|
||||
sub-grouped
|
||||
:sub-navigation="$subNavigation"
|
||||
:url="$childItemUrl"
|
||||
:attributes="\Filament\Support\prepare_inherited_attributes($childItemExtraAttributes)"
|
||||
>
|
||||
<x-filament-panels::sidebar.item :active="$isChildActive" :active-child-items="$isChildItemChildItemsActive" :active-icon="$childItemActiveIcon" :badge="$childItemBadge"
|
||||
:badge-color="$childItemBadgeColor" :badge-tooltip="$childItemBadgeTooltip" :first="$loop->first" grouped :icon="$childItemIcon" :last="$loop->last"
|
||||
:should-open-url-in-new-tab="$shouldChildItemOpenUrlInNewTab" sub-grouped :sub-navigation="$subNavigation" :url="$childItemUrl" :attributes="\Filament\Support\prepare_inherited_attributes($childItemExtraAttributes)">
|
||||
{{ $childItem->getLabel() }}
|
||||
</x-filament-panels::sidebar.item>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user