public static function form(Form $form): Form
{
return $form
->schema([
Card::make()
->schema([
TextInput::make('room_no')->required()->unique(ignoreRecord: true)->label('รหัส'),
TextInput::make('name')->required()->unique(ignoreRecord: true)->label('ชื่อห้อง'),
TextInput::make('electric_no')->label('เลขมาตรไฟฟ้า'),
TextInput::make('water_no')->label('เลขมาตรน้ำ'),
TextInput::make('electric_unit')->label('หน่วยไฟฟ้าล่าสุด'),
TextInput::make('water_unit')->label('หน่วยน้ำประปาล่าสุด'),
TextInput::make('price')->numeric()->label('ราคาห้อง'),
TextInput::make('price_tax')->numeric()->label('ราคาห้อง ส่งภาษี'),
])->columns(2),
]);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น