You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\CustomerResource\RelationManagers;
|
|
|
|
use Filament\Forms;
|
|
use Filament\Forms\Form;
|
|
use Filament\Resources\RelationManagers\RelationManager;
|
|
use Filament\Tables;
|
|
use Filament\Tables\Table;
|
|
|
|
class ShippingEntriesRelationManager extends RelationManager
|
|
{
|
|
protected static string $relationship = 'ShippingEntries';
|
|
|
|
public function form(Form $form): Form
|
|
{
|
|
return $form
|
|
->schema([
|
|
Forms\Components\TextInput::make('id')
|
|
->required()
|
|
->maxLength(255),
|
|
]);
|
|
}
|
|
|
|
public function table(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
Tables\Columns\TextColumn::make('courier'),
|
|
Tables\Columns\TextColumn::make('account_title'),
|
|
Tables\Columns\TextColumn::make('account_username')
|
|
->label('Username'),
|
|
Tables\Columns\TextColumn::make('account_password')
|
|
->label('Password'),
|
|
Tables\Columns\TextColumn::make('info_needed')
|
|
->extraHeaderAttributes(['class' => 'w-full']),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->headerActions([
|
|
Tables\Actions\CreateAction::make(),
|
|
])
|
|
->actions([
|
|
Tables\Actions\EditAction::make(),
|
|
Tables\Actions\DeleteAction::make(),
|
|
]);
|
|
}
|
|
}
|