31 lines
857 B
PHP
31 lines
857 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Properties\RelationManagers;
|
|
|
|
use App\Filament\Resources\Channels\Schemas\ChannelForm;
|
|
use App\Filament\Resources\Channels\Tables\ChannelsTable;
|
|
use Filament\Resources\RelationManagers\RelationManager;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Tables\Table;
|
|
|
|
class ChannelsRelationManager extends RelationManager
|
|
{
|
|
protected static string $relationship = 'channels';
|
|
|
|
protected static ?string $title = 'Kalenderabgleich (iCal)';
|
|
|
|
protected static ?string $modelLabel = 'iCal-Verbindung';
|
|
|
|
protected static ?string $pluralModelLabel = 'iCal-Verbindungen';
|
|
|
|
public function form(Schema $schema): Schema
|
|
{
|
|
return ChannelForm::configure($schema);
|
|
}
|
|
|
|
public function table(Table $table): Table
|
|
{
|
|
return ChannelsTable::configure($table, $this->getOwnerRecord());
|
|
}
|
|
}
|