value; protected static ?int $navigationSort = 1; protected static ?string $modelLabel = 'Dự án'; protected static ?string $pluralModelLabel = 'Dự án'; public static function form(Schema $schema): Schema { return $schema ->components([ Section::make('Thông tin Dự án') ->columns(2) ->schema([ TextInput::make('code')->label('Mã Dự án')->required()->unique(ignoreRecord: true), TextInput::make('name')->label('Tên Dự án')->required(), Select::make('payment_template_id') ->label('Mẫu thanh toán mặc định') ->relationship('paymentTemplate', 'name') ->placeholder('Chọn mẫu thanh toán cho toàn dự án') ->columnSpanFull(), Select::make('type') ->label('Loại hình') ->options([ 'Khu đô thị' => 'Khu đô thị', 'Chung cư' => 'Chung cư', 'Đất nền phân lô' => 'Đất nền phân lô', ])->required(), TextInput::make('address')->label('Địa chỉ')->columnSpanFull(), ]) ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('code')->label('Mã')->sortable(), Tables\Columns\TextColumn::make('name')->label('Tên Dự án')->searchable(), Tables\Columns\TextColumn::make('type')->label('Loại hình')->badge(), ]); } public static function getPages(): array { return [ 'index' => Pages\ListProjects::route('/'), 'create' => Pages\CreateProject::route('/create'), 'edit' => Pages\EditProject::route('/{record}/edit'), ]; } }