stuck with livewire mapchecker

This commit is contained in:
salam committed 2025-12-27 20:09:32 +01:00
1 parent 5fb2916f19
commit 75d30353fc
10 files changed
+91 -85

No files matched your search

+6 -9
View File
@@ -19,14 +19,16 @@ class MapChecker extends Component implements HasActions, HasSchemas, HasTable
use InteractsWithSchemas;
use InteractsWithTable;
public $id = 0;
public $match_id = 0;
public $event_id = 0;
public function table(Table $table): Table
{
return $table
->records(fn (): array => [
1 => [
'title' => 'First item',
'title' => 'First item ',
'slug' => 'first-item',
'is_featured' => true,
],
@@ -42,7 +44,7 @@ class MapChecker extends Component implements HasActions, HasSchemas, HasTable
],
])
->columns([
TextColumn::make('title'),
TextColumn::make('title')->label($this->match_id),
TextColumn::make('slug'),
IconColumn::make('is_featured')
->boolean(),
@@ -54,11 +56,6 @@ class MapChecker extends Component implements HasActions, HasSchemas, HasTable
public function render()
{
return view('livewire.map-checker');
}
public function loadData($id)
{
$this->id = $id;
return view('livewire.mapchecker');
}
}