this is my php file
class Xyz extends Page implements HasTable
{
protected $listeners = ['refreshTable' => '$refresh'];
use InteractsWithTable {
makeTable as makeBaseTable;
}
use HasTabs;
protected static string $view = 'filament.pages.xyz';
protected static ?int $navigationSort = 3;
protected $contact;
public $roleuser ;
protected bool $loadTable=false;
public function updatedRoleuser ($value, $key) {
$this->dispatch("userRoleUpdation",$value);
}
protected function makeTable(): Table
{
info("make table method");
return $this->makeBaseTable()
->query(fn(): Builder => $this->getTableQuery())
->modifyQueryUsing($this->modifyQueryWithActiveTab(...))
->recordAction(fn(): string => 'view')
->paginated([150]);
}
public function view($record = null)
{
info("view");
$this->contactCard($record);
}
public function contactCard($conversationId)
{
xyz perform
}
public static function table(Table $table): Table
{
return $table
->query(Conversation::query())
->columns([
TextColumn::make('contact.name')->weight('bold')->grow(false)->searchable()->extraAttributes(["class" => ""])
]);
}
}