Laravel.io
<?php
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Section::make()
->columns(6)
->schema([
Forms\Components\TextInput::make('company_name')
->maxLength(255)
->columnStart(4),
Forms\Components\TextInput::make('first_name')
->required()
->maxLength(255)
->columnSpan(3),
Forms\Components\TextInput::make('last_name')
->required()
->maxLength(255)
->columnSpan(3),
Forms\Components\TextInput::make('email')
->email()
->required()
->maxLength(255)
->columnSpan(4),
Forms\Components\TextInput::make('address_line_1')
->maxLength(255)
->columnSpan(3),
Forms\Components\TextInput::make('address_line_2')
->maxLength(255)
->columnSpan(3),
Forms\Components\TextInput::make('city')
->maxLength(255)
->columnSpan(2),
Forms\Components\TextInput::make('state')
->maxLength(255)
->columnSpan(2),
Forms\Components\TextInput::make('postal_code')
->maxLength(255)
->columnSpan(2),
Forms\Components\Select::make('country_code')
->label('Country')
->options(Countries::getNames())
->searchable()
->columnSpan(3),
Forms\Components\TextInput::make('vat_number')
->maxLength(255)
->columnSpan(3),
]),
]);
}