wip
This commit is contained in:
1 parent
fcfe1e97fd
commit
bfd513635d
11 files changed
+787
-182
No files matched your search
@@ -23,6 +23,7 @@ use Filament\Schemas\Components\Utilities\Set;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\RawJs;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Support\HtmlString;
|
||||
|
||||
class Statistic extends BaseDashboard
|
||||
@@ -232,13 +233,13 @@ class Statistic extends BaseDashboard
|
||||
->prefixIcon('icon-player')
|
||||
->preload()
|
||||
->searchable()
|
||||
->extraAttributes(fn() => ['id' => 'player_selector'])
|
||||
->suffixAction(
|
||||
Action::make('iconInfo')
|
||||
->icon('phosphor-question-fill')
|
||||
->color('success')
|
||||
->tooltip(fn() => $this->tooltip_player_info())
|
||||
)
|
||||
->extraAttributes(fn() => ['id' => 'player_selector'])
|
||||
->options(function (Get $get) {
|
||||
return LoadPlayer::load($get);
|
||||
}),
|
||||
@@ -251,10 +252,6 @@ class Statistic extends BaseDashboard
|
||||
->hidden(fn(Get $get) => ! $get('ss_player_id'))
|
||||
->prefixIconColor('success')
|
||||
->selectablePlaceholder(false)
|
||||
// ->afterStateUpdated(function (callable $set) {
|
||||
// // $set('team_id', null);
|
||||
// $set('ss_player_id', null);
|
||||
// })
|
||||
->options([
|
||||
'all' => 'All',
|
||||
'lineup' => 'Lineup',
|
||||
@@ -346,13 +343,13 @@ class Statistic extends BaseDashboard
|
||||
|
||||
protected function tooltip_player_info(): HtmlString
|
||||
{
|
||||
$str = '<div class="m-3 grid grid-cols-2 gap-x-5 max-w-md">';
|
||||
$str = '<div class="m-3 grid grid-cols-2 gap-2 max-w-lg">';
|
||||
$str .= '<div class="col-span-2 font-bold">Player Information</div>';
|
||||
$str .= '<div>Events played:</div>';
|
||||
$str .= '<div class="font-bold">Events played:</div>';
|
||||
$str .= '<div>sum</div>';
|
||||
$str .= '<div>Stronger foot:</div>';
|
||||
$str .= '<div class="font-bold">Stronger foot:</div>';
|
||||
$str .= '<div>left | right | both</div>';
|
||||
$str .= '<div>Average on field:</div>';
|
||||
$str .= '<div class="font-bold">Average on field:</div>';
|
||||
$str .= '<div>minutes</div>';
|
||||
$str .= '</div>';
|
||||
|
||||
|
||||
Reference in new issue
Block a user