24 lines
461 B
PHP
24 lines
461 B
PHP
<?php
|
|
|
|
namespace App\Actions\Helper;
|
|
|
|
use App\Models\Help;
|
|
use Filament\Actions\Action;
|
|
|
|
class ShowHelp
|
|
{
|
|
public static function show($kennung)
|
|
{
|
|
$helping = Help::where('kennung', $kennung)->first();
|
|
|
|
if (! $helping) {
|
|
return false;
|
|
}
|
|
|
|
return Action::make('help')
|
|
->icon('phosphor-question')
|
|
->tooltip(view('pages.help')->with('helping', $helping))
|
|
->iconButton();
|
|
}
|
|
}
|