25 lines
599 B
PHP
25 lines
599 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Guests\RelationManagers;
|
|
|
|
use App\Filament\Resources\Bookings\Tables\BookingsTable;
|
|
use Filament\Resources\RelationManagers\RelationManager;
|
|
use Filament\Tables\Table;
|
|
|
|
class BookingsRelationManager extends RelationManager
|
|
{
|
|
protected static string $relationship = 'bookings';
|
|
|
|
protected static ?string $title = 'Aufenthalte & Anfragen';
|
|
|
|
public function isReadOnly(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function table(Table $table): Table
|
|
{
|
|
return BookingsTable::configure($table, $this->getOwnerRecord()->id);
|
|
}
|
|
}
|