Move Relationship Manager into a Tab

Hi, I am currently working on a clients project and the client wants the management of the relationship moved into a tab. I got no idea to be honest. Any ideas? :/
No description
6 Replies
christmex
christmex16mo ago
Hmm, maybe in the edit resource you can create custom view and create the tabs structur using tailwind cus filament using tailwind, then inside each tab you can insert this so lets say, first tab i want the form stuff so i add this
<x-filament-panels::form wire:submit="save">
{{ $this->form }}

<x-filament-panels::form.actions
:actions="$this->getCachedFormActions()"
:full-width="$this->hasFullWidthFormActions()"
/>
</x-filament-panels::form>

<x-filament-panels::form wire:submit="save">
{{ $this->form }}

<x-filament-panels::form.actions
:actions="$this->getCachedFormActions()"
:full-width="$this->hasFullWidthFormActions()"
/>
</x-filament-panels::form>

then in the second tab, i want the relationship, then i add this
@if (count($relationManagers = $this->getRelationManagers()))
<x-filament-panels::resources.relation-managers
:active-manager="$activeRelationManager"
:managers="$relationManagers"
:owner-record="$record"
:page-class="static::class"
/>
@endif
@if (count($relationManagers = $this->getRelationManagers()))
<x-filament-panels::resources.relation-managers
:active-manager="$activeRelationManager"
:managers="$relationManagers"
:owner-record="$record"
:page-class="static::class"
/>
@endif
what do you think?
Timster8989
Timster898916mo ago
How about repurposing side-menu plugin for this? I have same done with that, but menu options are on the side. Shouldn’t be a big thing to move it to tabs.
alexanderkroneis
alexanderkroneisOP15mo ago
I'd like to avoid external plugins tbh
toeknee
toeknee15mo ago
Cool, so make it yourself 🙂
AliBabba420
AliBabba42015mo ago
I am not sure but try this once make a custom page and in the view file add the tab blade component from core concept filament doc and call all the pages in that tabs In the blade file call the custom page like this @livewire(\App\Resource\ContactResource\Pages\CustomPage::class)

Did you find this page helpful?