phases one of time logged now with log display

This commit is contained in:
Mark Gregory
2026-06-22 12:53:56 +01:00
parent c1a9d0de27
commit 052bae718e
231 changed files with 15113 additions and 12891 deletions
@@ -14,16 +14,8 @@
@endphp
<{!! $tag !!}
@if ($url)
{{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab()) }}
@endif
{{
$getExtraAttributeBag()
->class([
'fi-wi-stats-overview-stat',
])
}}
>
@if ($url) {{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab()) }} @endif
{{ $getExtraAttributeBag()->class(['fi-wi-stats-overview-stat']) }}>
<div class="fi-wi-stats-overview-stat-content">
<div class="fi-wi-stats-overview-stat-label-ctn">
{{ \Filament\Support\generate_icon_html($getIcon()) }}
@@ -39,10 +31,9 @@
@if ($description = $getDescription())
<div
{{ (new ComponentAttributeBag)->color(DescriptionComponent::class, $descriptionColor)->class(['fi-wi-stats-overview-stat-description']) }}
>
{{ new ComponentAttributeBag()->color(DescriptionComponent::class, $descriptionColor)->class(['fi-wi-stats-overview-stat-description']) }}>
@if ($descriptionIcon && in_array($descriptionIconPosition, [IconPosition::Before, 'before']))
{{ \Filament\Support\generate_icon_html($descriptionIcon, attributes: (new \Illuminate\View\ComponentAttributeBag)) }}
{{ \Filament\Support\generate_icon_html($descriptionIcon, attributes: new \Illuminate\View\ComponentAttributeBag()) }}
@endif
<span>
@@ -50,7 +41,7 @@
</span>
@if ($descriptionIcon && in_array($descriptionIconPosition, [IconPosition::After, 'after']))
{{ \Filament\Support\generate_icon_html($descriptionIcon, attributes: (new \Illuminate\View\ComponentAttributeBag)) }}
{{ \Filament\Support\generate_icon_html($descriptionIcon, attributes: new \Illuminate\View\ComponentAttributeBag()) }}
@endif
</div>
@endif
@@ -59,28 +50,20 @@
@if ($chart = $getChart())
{{-- An empty function to initialize the Alpine component with until it's loaded with `x-load`. This removes the need for `x-ignore`, allowing the chart to be updated via Livewire polling. --}}
<div x-data="{ statsOverviewStatChart() {} }">
<div
x-load
<div x-load
x-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('stats-overview/stat/chart', 'filament/widgets') }}"
x-data="statsOverviewStatChart({
dataChecksum: @js($chartDataChecksum),
labels: @js(array_keys($chart)),
values: @js(array_values($chart)),
})"
{{ (new ComponentAttributeBag)->color(StatsOverviewWidgetStatChartComponent::class, $chartColor)->class(['fi-wi-stats-overview-stat-chart']) }}
>
dataChecksum: @js($chartDataChecksum),
labels: @js(array_keys($chart)),
values: @js(array_values($chart)),
})"
{{ new ComponentAttributeBag()->color(StatsOverviewWidgetStatChartComponent::class, $chartColor)->class(['fi-wi-stats-overview-stat-chart']) }}>
<canvas x-ref="canvas"></canvas>
<span
x-ref="backgroundColorElement"
class="fi-wi-stats-overview-stat-chart-bg-color"
></span>
<span x-ref="backgroundColorElement" class="fi-wi-stats-overview-stat-chart-bg-color"></span>
<span
x-ref="borderColorElement"
class="fi-wi-stats-overview-stat-chart-border-color"
></span>
<span x-ref="borderColorElement" class="fi-wi-stats-overview-stat-chart-border-color"></span>
</div>
</div>
@endif
</{!! $tag !!}>
</{!! $tag !!}>