public function content(Schema $schema): Schema { $contentComponent = $this->hasInfolist() ? $this->getInfolistContentComponent() : $this->getFormContentComponent(); return $schema->components([ Grid::make([ 'default' => 1, 'xl' => 12, ]) ->columns([ 'default' => 1, 'xl' => 12, ]) ->schema([ View::make('filament.tenant.resources.customer-resource.pages.view-customer') ->columnSpan(12) ->viewData([ 'record' => $this->getRecord(), 'canSeeFullIdentity' => CustomerResource::canSeeFullIdentity(), ]), Grid::make([ 'default' => 1, 'xl' => 12, ]) ->columnSpan(12) ->columns([ 'default' => 1, 'xl' => 12, ]) ->schema([ Grid::make([ 'default' => 1, ]) ->columnSpan([ 'xl' => 4, ]) ->schema([ Section::make('Asiakastiedot') ->schema([ $contentComponent, ]) ->icon('heroicon-o-user'), Section::make('Riskit & Huomiot') ->schema([ View::make('filament.tenant.resources.customer-resource.sections.risks') ->viewData([ 'customer' => $this->getRecord(), ]), ]) ->icon('heroicon-o-shield-exclamation'), Section::make('Perhesuhteet') ->schema([ View::make('filament.tenant.resources.customer-resource.sections.relations') ->viewData([ 'customer' => $this->getRecord(), ]), ]) ->icon('heroicon-o-user-group'), ]), Grid::make([ 'default' => 1, ]) ->columnSpan([ 'xl' => 8, ]) ->schema([ Section::make('Raportit') ->schema([ View::make('filament.tenant.resources.customer-resource.sections.reports') ->viewData([ 'customer' => $this->getRecord(), ]), ]) ->icon('heroicon-o-document-text'), Section::make('Sosiaalityöntekijät') ->schema([ View::make('filament.tenant.resources.customer-resource.sections.social-workers') ->viewData([ 'customer' => $this->getRecord(), ]), ]) ->icon('heroicon-o-briefcase'), Section::make('Hankinnat') ->schema([ View::make('filament.tenant.resources.customer-resource.sections.procurements') ->viewData([ 'customer' => $this->getRecord(), ]), ]) ->icon('heroicon-o-shopping-cart'), Section::make('Lääkitykset') ->schema([ $this->getRelationManagersContentComponent(), ]) ->icon('heroicon-o-rectangle-stack'), ]), ]), ]), ]); }