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.
49 lines
1.4 KiB
PHTML
49 lines
1.4 KiB
PHTML
4 weeks ago
|
<?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'),
|
||
|
])
|
||
|
->filters([
|
||
|
//
|
||
|
])
|
||
|
->headerActions([
|
||
|
Tables\Actions\CreateAction::make(),
|
||
|
])
|
||
|
->actions([
|
||
|
Tables\Actions\EditAction::make(),
|
||
|
Tables\Actions\DeleteAction::make(),
|
||
|
]);
|
||
|
}
|
||
|
}
|