initTableHeaders(); } private function initTableHeaders(): void { $this->headers = TableHeader::collect([ new TableHeader(key: 'name', label: 'Name',), new TableHeader(key: 'provider', label: 'Provider'), new TableHeader(key: 'protocol', label: 'Protocol'), new TableHeader(key: 'status', label: 'Status'), ], DataCollection::class); } /** * @return PaginatedDataCollection */ #[Computed] public function getConnectedApps(): PaginatedDataCollection { $service = app(ConnectedAppService::class); return $service->getAll(); } public function edit(int $appId): void { $this->redirectRoute('connected-apps.edit', ['id' => $appId], navigate: true); } }; ?>
Add App @scope('cell_protocol', $row) {{$row->protocol->name}} @endscope @scope('cell_status', $row) @endscope @scope('actions', $row)
@endscope