Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed May 28, 2024
1 parent 09336b1 commit cff7db6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
7 changes: 0 additions & 7 deletions Filament/Widgets/GroupWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ class GroupWidget extends BaseWidget
use InteractsWithPageFilters;

protected static ?string $pollingInterval = null;

protected static string $view = 'ui::filament.widgets.group';

public array $widgets = [];

public string $title = '';
<<<<<<< HEAD

=======
>>>>>>> up
public string $icon = '';
}
9 changes: 0 additions & 9 deletions Filament/Widgets/HeroWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,11 @@ protected function getStats(): array
{
return [
Stat::make('', $this->title)
<<<<<<< HEAD
// ->description('32k increase '.$startDate)
// ->descriptionIcon('heroicon-m-arrow-trending-up')
// ->chart([7, 2, 10, 3, 15, 4, 17])
// ->color('success')
->icon($this->icon),
=======
//->description('32k increase '.$startDate)
//->descriptionIcon('heroicon-m-arrow-trending-up')
//->chart([7, 2, 10, 3, 15, 4, 17])
//->color('success')
->icon('heroicon-o-rectangle-stack')
,
>>>>>>> up
];
}

Expand Down
8 changes: 1 addition & 7 deletions Resources/views/filament/widgets/group.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
<x-filament::section collapsible
icon="{{ $icon }}"
>
<<<<<<< HEAD
<x-slot name="description">
{{ $title }}
</x-slot>
@if (count($widgets)==1)
=======
<x-slot name="heading">
{{ $title }}
</x-slot>

@if(count($widgets)==1)
>>>>>>> up
@livewire($widgets[0]['class'], $widgets[0]['properties'])
@endif

Expand Down

0 comments on commit cff7db6

Please sign in to comment.