components([ Section::make('Chi tiết đợt thanh toán') ->columns(2) ->schema([ Placeholder::make('installment_no')->label('Đợt số')->content(fn ($record) => $record->installment_no), Placeholder::make('type')->label('Loại đợt')->content(fn ($record) => $record->type?->getLabel()), TextInput::make('amount')->label('Số tiền (VND)')->numeric()->required(), DatePicker::make('due_date')->label('Ngày đến hạn')->required(), ]), ]); } public function table(Table $table): Table { return $table ->columns([ TextColumn::make('installment_no')->label('Đợt')->badge(), TextColumn::make('type')->label('Loại')->badge(), TextColumn::make('amount')->label('Số tiền dự kiến')->money('VND'), TextColumn::make('due_date')->label('Hạn thanh toán')->date('d/m/Y'), ]) ->defaultSort('installment_no', 'asc') ->actions([ ViewAction::make(), EditAction::make(), ]); } }