-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '6f83881559277f9fbe7189210fd3e31ccd5679fa' into dev
- Loading branch information
Showing
6 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Modules\UI\Filament\Widgets; | ||
|
||
use Filament\Widgets\Widget as BaseWidget; | ||
use Illuminate\Contracts\Support\Htmlable; | ||
|
||
class StatWithIconWidget extends BaseWidget | ||
{ | ||
protected static string $view = 'ui::filament.widgets.stat-with-icon'; | ||
|
||
protected string|Htmlable $label; | ||
|
||
/** | ||
* @var scalar|Htmlable|\Closure | ||
*/ | ||
protected $value; | ||
|
||
protected function getData(): array | ||
{ | ||
dddx($this->label); | ||
|
||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<x-filament::widget > | ||
EMPTY {{ $question_chart_id }} | ||
{{-- EMPTY --}} | ||
</x-filament::widget > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<x-filament-widgets::widget> | ||
<x-filament::section collapsible> | ||
<x-filament::grid lg='2'> | ||
<x-filament::grid.column > | ||
<span class="overflow-hidden" > | ||
<x-filament::icon | ||
icon="fas-futbol" | ||
size="24" | ||
class="w-auto h-12" | ||
/> | ||
</span> | ||
|
||
BBB | ||
|
||
</x-filament::grid.column> | ||
</x-filament::grid> | ||
</x-filament::section> | ||
</x-filament-widgets::widget> | ||
{{-- | ||
<x-filament-widgets::widget > | ||
<x-filament::grid | ||
:default="$grid['default'] ?? 1" | ||
:sm="$grid['sm'] ?? null" | ||
:md="$grid['md'] ?? null" | ||
:lg="$grid['lg'] ?? null" | ||
:xl="$grid['xl'] ?? null" | ||
class="gap-6" | ||
> | ||
<x-filament::grid.column> | ||
<x-filament::section | ||
class="overlook-card rounded-xl overflow-hidden relative h-24 bg-gradient-to-tr from-gray-100 via-white to-white dark:from-gray-950 dark:to-gray-900" | ||
> | ||
<a | ||
href="#" | ||
class="overflow-hidden absolute inset-0 py-2 px-3 text-gray-600 font-medium rounded-xl ring-primary-500 dark:text-gray-400 group hover:ring-2 focus:ring-2"> | ||
<x-filament::icon | ||
icon="fas-futbol" | ||
:size="24" | ||
class="w-auto h-24 absolute left-0 top-8 text-primary-500 opacity-20 dark:opacity-20 transition group-hover:scale-110 group-hover:-rotate-12 group-hover:opacity-40 dark:group-hover:opacity-80" | ||
/> | ||
<span class="overlook-name">AAA</span> | ||
<span class="text-gray-600 dark:text-gray-300 absolute leading-none bottom-3 right-4 text-3xl font-bold">BBB</span> | ||
</a> | ||
</x-filament::section> | ||
</x-filament::grid.column> | ||
</x-filament::grid> | ||
</x-filament-widgets::widget> | ||
--}} | ||
|