wip
This commit is contained in:
1 parent
4f7de2e489
commit
86115ac9e8
3 files changed
+41
-5
No files matched your search
@@ -232,6 +232,12 @@ class Statistic extends BaseDashboard
|
||||
->prefixIcon('icon-player')
|
||||
->preload()
|
||||
->searchable()
|
||||
->suffixAction(
|
||||
Action::make('iconInfo')
|
||||
->icon('phosphor-question-fill')
|
||||
->color('success')
|
||||
->tooltip(fn() => $this->tooltip_player_info())
|
||||
)
|
||||
->options(function (Get $get) {
|
||||
return LoadPlayer::load($get);
|
||||
}),
|
||||
@@ -336,4 +342,19 @@ class Statistic extends BaseDashboard
|
||||
|
||||
return new HtmlString($str);
|
||||
}
|
||||
|
||||
protected function tooltip_player_info(): HtmlString
|
||||
{
|
||||
$str = '<div class="m-3 grid grid-cols-2 gap-2 max-w-md">';
|
||||
$str .= '<div class="col-span-2 font-bold">Player Information</div>';
|
||||
$str .= '<div>Events played</div>';
|
||||
$str .= '<div>123</div>';
|
||||
$str .= '<div>Stronger foot</div>';
|
||||
$str .= '<div>Left | Right | Both</div>';
|
||||
$str .= '<div>Average minutes</div>';
|
||||
$str .= '<div>83 min</div>';
|
||||
$str .= '</div>';
|
||||
|
||||
return new HtmlString($str);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user