@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(); $maxHeight = $this->getMaxHeight(); $hasMaxHeight = filled($maxHeight) && $maxHeight !== '100%'; @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() }} @if (method_exists($this, 'hasDeferredFilters') && $this->hasDeferredFilters())
{{ $this->getFiltersApplyAction() }} {{ $this->getFiltersResetAction() }}
@endif
@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' => $hasMaxHeight]) }}> !$hasMaxHeight, 'max-height: ' . e($maxHeight) => $hasMaxHeight])>