56 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Filament\Resources\PropertiesResource\RelationManagers;
 | 
						|
 | 
						|
use Filament\Forms;
 | 
						|
use Filament\Forms\Form;
 | 
						|
use Filament\Resources\RelationManagers\RelationManager;
 | 
						|
use Filament\Tables;
 | 
						|
use Filament\Tables\Table;
 | 
						|
use Illuminate\Database\Eloquent\Builder;
 | 
						|
use Illuminate\Database\Eloquent\SoftDeletingScope;
 | 
						|
 | 
						|
class ExtractionsRelationManager extends RelationManager
 | 
						|
{
 | 
						|
    protected static string $relationship = 'extractions';
 | 
						|
 | 
						|
    public function isReadOnly(): bool
 | 
						|
    {
 | 
						|
        return true;
 | 
						|
    }
 | 
						|
 | 
						|
    public function form(Form $form): Form
 | 
						|
    {
 | 
						|
        return $form
 | 
						|
            ->schema([
 | 
						|
                Forms\Components\TextInput::make('property_platform_id')
 | 
						|
                    ->required()
 | 
						|
                    ->maxLength(255),
 | 
						|
            ]);
 | 
						|
    }
 | 
						|
 | 
						|
    public function table(Table $table): Table
 | 
						|
    {
 | 
						|
        return $table
 | 
						|
            ->recordTitleAttribute('property_platform_id')
 | 
						|
            ->columns([
 | 
						|
                Tables\Columns\TextColumn::make('property_platform_id'),
 | 
						|
            ])
 | 
						|
            ->filters([
 | 
						|
                //
 | 
						|
            ])
 | 
						|
            ->headerActions([
 | 
						|
                Tables\Actions\CreateAction::make(),
 | 
						|
            ])
 | 
						|
            ->actions([
 | 
						|
                Tables\Actions\EditAction::make(),
 | 
						|
                Tables\Actions\DeleteAction::make(),
 | 
						|
            ])
 | 
						|
            ->bulkActions([
 | 
						|
                Tables\Actions\BulkActionGroup::make([
 | 
						|
                    Tables\Actions\DeleteBulkAction::make(),
 | 
						|
                ]),
 | 
						|
            ]);
 | 
						|
    }
 | 
						|
}
 |