filter in monitor wip
This commit is contained in:
1 parent
f5221e1d1c
commit
da257748ae
17 files changed
+339
-145
No files matched your search
@@ -10,7 +10,9 @@ use Carbon\Carbon;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EventResource extends Resource
|
||||
{
|
||||
@@ -22,10 +24,31 @@ class EventResource extends Resource
|
||||
|
||||
protected static ?string $modelLabel = '';
|
||||
|
||||
protected static ?string $title = '';
|
||||
protected static ?string $title = 'Monitor';
|
||||
|
||||
protected static ?string $pluralModelLabel = '';
|
||||
|
||||
// protected static ?string $recordTitleAttribute = 'tx_id';
|
||||
// public static function getGlobalSearchResultTitle(Model $record): string|Htmlable
|
||||
// {
|
||||
// return $record->home->name.' - '.$record->away->name;
|
||||
// }
|
||||
// public static function getGlobalSearchResultDetails(Model $record): array
|
||||
// {
|
||||
// return [
|
||||
// 'League' => $record->competition_group->name,
|
||||
// 'Country' => $record->country->name,
|
||||
// ];
|
||||
// }
|
||||
// public static function getGloballySearchableAttributes(): array
|
||||
// {
|
||||
// return ['tx_id', 'betradar_id', 'competition_group.name', 'country.name', 'away.name', 'home.name'];
|
||||
// }
|
||||
// public static function getGlobalSearchResultUrl(Symbol|Model $record): string
|
||||
// {
|
||||
// return EventResource::getUrl('edit', ['record' => $record]); // Links to the edit page
|
||||
// }
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return EventForm::configure($schema);
|
||||
|
||||
Reference in new issue
Block a user