public static function form(Form $form): Form { return $form ->schema([ // Forms\Components\Repeater::make('Probe') ->schema([ TextInput::make('probe_id') ->required() ->maxLength(255), Select::make('type') ->options([ 'P110' => 'P110', 'P120' => 'P120', 'P360' => 'P360', ])->required(), Forms\Components\DatePicker::make('date_of_shipment') ->required() ->maxDate(now()), Forms\Components\Select::make('customer_id') ->relationship('customer', 'company_name') ->searchable() ->preload() ->createOptionForm([ Forms\Components\TextInput::make('company_name') ->required() ->maxLength(255), Forms\Components\TextInput::make('email') ->label('Email address') ->email() ->required() ->maxLength(255), Forms\Components\TextInput::make('company_phone') ->label('Phone number') ->tel() ->required(), ]) ->required(), ]), ]); }