@if (\Filament\Filament::can('viewAny', $this->getModel()))
{{ __(static::getTitle()) }}
@livewire(static::getComponent('list'), [
'canAttach' => $this->canAttach(),
'canCreate' => $this->canCreate(),
'canDelete' => $this->canDelete(),
'canDetach' => $this->canDetach(),
'manager' => static::class,
'model' => $this->getModel(),
'owner' => $this->getOwner(),
])
@if ($this->canCreate())
@livewire(static::getComponent('create'), [
'manager' => static::class,
'model' => $this->getModel(),
'owner' => $this->getOwner(),
])
@endif
@if ($this->canEdit())
@livewire(static::getComponent('edit'), [
'manager' => static::class,
'model' => $this->getModel(),
'owner' => $this->getOwner(),
])
@endif
@if ($this->canAttach())
@livewire(static::getComponent('attach'), [
'manager' => static::class,
'owner' => $this->getOwner(),
])
@endif
@endif