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 dcec498 commit 23ef897
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Filament/Widgets/GroupWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class GroupWidget extends BaseWidget
public array $widgets = [];

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

=======
>>>>>>> up
public string $icon = '';
}
9 changes: 9 additions & 0 deletions Filament/Widgets/HeroWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ 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
7 changes: 7 additions & 0 deletions Resources/views/filament/widgets/group.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
<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 23ef897

Please sign in to comment.