paanblogger
paanblogger
FFilament
Created by Tjiel on 10/25/2024 in #❓┊help
How can I change the width of individual statsoverview stats?
Since I dont use Panel & Resources , but only install filament widget , so , what I do is , I create custom blade file for my stats widget , then I copy file content from 'filament-widgets::stats-overview-widget' , and customize from that.
@php
$columns = $this->getColumns();
@endphp

<x-filament-widgets::widget class="fi-wi-stats-overview">
<div
@if ($pollingInterval = $this->getPollingInterval())
wire:poll.{{ $pollingInterval }}
@endif
@class([
'fi-wi-stats-overview-stats-ctn grid gap-6',
'md:grid-cols-1' => $columns === 1,
'md:grid-cols-2' => $columns === 2,
'md:grid-cols-3' => $columns === 3,
'md:grid-cols-2 xl:grid-cols-4' => $columns === 4,
])
>
@foreach ($this->getCachedStats() as $stat)
{{ $stat }}
@endforeach
</div>
</x-filament-widgets::widget>
@php
$columns = $this->getColumns();
@endphp

<x-filament-widgets::widget class="fi-wi-stats-overview">
<div
@if ($pollingInterval = $this->getPollingInterval())
wire:poll.{{ $pollingInterval }}
@endif
@class([
'fi-wi-stats-overview-stats-ctn grid gap-6',
'md:grid-cols-1' => $columns === 1,
'md:grid-cols-2' => $columns === 2,
'md:grid-cols-3' => $columns === 3,
'md:grid-cols-2 xl:grid-cols-4' => $columns === 4,
])
>
@foreach ($this->getCachedStats() as $stat)
{{ $stat }}
@endforeach
</div>
</x-filament-widgets::widget>
Then on the widget file , change
protected static string $view = '';
protected static string $view = '';
to the custom blade file
7 replies
TTCTheo's Typesafe Cult
Created by paanblogger on 11/10/2023 in #questions
Different folder structure
Okay , now I understand. Thanks @ATOMowy_grzyb
4 replies
FFilament
Created by namrata on 9/15/2023 in #❓┊help
Split with label
Also looking for this solution
15 replies
FFilament
Created by Akshay Bokade on 9/15/2023 in #❓┊help
Copy contents of first repeater fields to another
$get('..\fieldname')
11 replies