@php use Filament\Widgets\View\Components\ChartWidgetComponent; use Illuminate\View\ComponentAttributeBag; $color = $this->getColor(); $heading = $this->getHeading(); $description = $this->getDescription(); $filters = $this->getFilters(); $isCollapsible = $this->isCollapsible(); $type = $this->getType(); @endphp @if ($filters || method_exists($this, 'getFiltersSchema')) @if ($filters) @foreach ($filters as $value => $label) @endforeach @endif @if (method_exists($this, 'getFiltersSchema')) {{ $this->getFiltersTriggerAction() }}
{{ $this->getFiltersSchema() }}
@endif
@endif
getPollingInterval()) wire:poll.{{ $pollingInterval }}="updateChartData" @endif >
color(ChartWidgetComponent::class, $color) ->class([ 'fi-wi-chart-canvas-ctn', 'fi-wi-chart-canvas-ctn-no-aspect-ratio' => filled($maxHeight = $this->getMaxHeight()), ]) ->style([ 'max-height: ' . $maxHeight => filled($maxHeight), ]) }} >