d2d.emegrendeles.hu/app/Filament/Resources/ProfitCenterSupplierSchedules/Schemas/ProfitCenterSupplierScheduleForm.php
2026-07-16 08:53:09 +02:00

34 lines
1.1 KiB
PHP

<?php
namespace App\Filament\Resources\ProfitCenterSupplierSchedules\Schemas;
use App\Models\ProfitCenter;
use Filament\Forms\Components\Select;
use Filament\Schemas\Schema;
class ProfitCenterSupplierScheduleForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Select::make('profit_center_id')
->label('Profit Center')
->options(ProfitCenter::orderBy('name')->pluck('name', 'id'))
->searchable()
->multiple()
->required(),
Select::make('supplier_id')
->label('Beszállító')
->relationship('supplier', 'name')
->searchable()
->required(),
Select::make('delivery_schedule_id')
->label('Szállítási sablon')
->relationship('deliverySchedule', 'name')
->searchable()
->required(),
]);
}
}