| 
				
			 | 
			
			
				@@ -88,7 +88,7 @@ class EsgResource extends Resource 
			 | 
		
	
		
			
			| 
				88
			 | 
			
				88
			 | 
			
			
				                     ]), 
			 | 
		
	
		
			
			| 
				89
			 | 
			
				89
			 | 
			
			
				                     Tab::make("段落設計")->schema([ 
			 | 
		
	
		
			
			| 
				90
			 | 
			
				90
			 | 
			
			
				                         //1: 純文字 2:區塊文字 3:表格 4:影片 or 圖片 5:左右圖文 
			 | 
		
	
		
			
			| 
				91
			 | 
			
				
			 | 
			
			
				-                        Repeater::make("paragraphs")->schema([ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				91
			 | 
			
			
				+                        Repeater::make("paragraphs")->label("")->schema([ 
			 | 
		
	
		
			
			| 
				92
			 | 
			
				92
			 | 
			
			
				                             TextInput::make('item_key') 
			 | 
		
	
		
			
			| 
				93
			 | 
			
				93
			 | 
			
			
				                                 ->default(fn () => Str::random()) 
			 | 
		
	
		
			
			| 
				94
			 | 
			
				94
			 | 
			
			
				                                 ->hidden() 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -120,12 +120,6 @@ class EsgResource extends Resource 
			 | 
		
	
		
			
			| 
				120
			 | 
			
				120
			 | 
			
			
				                             ])->visible(fn (Get $get):bool => $get("type") == 1), 
			 | 
		
	
		
			
			| 
				121
			 | 
			
				121
			 | 
			
			
				                             Group::make()->schema([ 
			 | 
		
	
		
			
			| 
				122
			 | 
			
				122
			 | 
			
			
				                                 Section::make('區塊文字設定')->schema([ 
			 | 
		
	
		
			
			| 
				123
			 | 
			
				
			 | 
			
			
				-                                    // // 佈局設定 
			 | 
		
	
		
			
			| 
				124
			 | 
			
				
			 | 
			
			
				-                                    // Radio::make('layout_type')->label('佈局方式')->options([ 
			 | 
		
	
		
			
			| 
				125
			 | 
			
				
			 | 
			
			
				-                                    //     'vertical' => '垂直排列', 
			 | 
		
	
		
			
			| 
				126
			 | 
			
				
			 | 
			
			
				-                                    //     'horizontal' => '水平排列', 
			 | 
		
	
		
			
			| 
				127
			 | 
			
				
			 | 
			
			
				-                                    //     'grid' => '網格排列', 
			 | 
		
	
		
			
			| 
				128
			 | 
			
				
			 | 
			
			
				-                                    // ])->default('vertical')->Live(), 
			 | 
		
	
		
			
			| 
				129
			 | 
			
				123
			 | 
			
			
				                                     // 文字區塊重複器 
			 | 
		
	
		
			
			| 
				130
			 | 
			
				124
			 | 
			
			
				                                     Repeater::make("content.text_blocks")->schema([ 
			 | 
		
	
		
			
			| 
				131
			 | 
			
				125
			 | 
			
			
				                                         TextInput::make('block_item_key') 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -138,10 +132,6 @@ class EsgResource extends Resource 
			 | 
		
	
		
			
			| 
				138
			 | 
			
				132
			 | 
			
			
				                                             }), 
			 | 
		
	
		
			
			| 
				139
			 | 
			
				133
			 | 
			
			
				                                         // 多語系內容 
			 | 
		
	
		
			
			| 
				140
			 | 
			
				134
			 | 
			
			
				                                         Translate::make()->schema(fn (string $locale) => [ 
			 | 
		
	
		
			
			| 
				141
			 | 
			
				
			 | 
			
			
				-                                            // TextInput::make('block_title') 
			 | 
		
	
		
			
			| 
				142
			 | 
			
				
			 | 
			
			
				-                                            //     ->label("區塊標題") 
			 | 
		
	
		
			
			| 
				143
			 | 
			
				
			 | 
			
			
				-                                            //     ->maxLength(200) 
			 | 
		
	
		
			
			| 
				144
			 | 
			
				
			 | 
			
			
				-                                            //     ->visible(fn (Get $get) => in_array($get('block_type'), ['title', 'subtitle', 'highlight'])), 
			 | 
		
	
		
			
			| 
				145
			 | 
			
				135
			 | 
			
			
				                                             RichEditor::make('block_content') 
			 | 
		
	
		
			
			| 
				146
			 | 
			
				136
			 | 
			
			
				                                                 ->disableToolbarButtons(['attachFiles']) 
			 | 
		
	
		
			
			| 
				147
			 | 
			
				137
			 | 
			
			
				                                                 ->required($locale == "zh_TW") 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -173,21 +163,8 @@ class EsgResource extends Resource 
			 | 
		
	
		
			
			| 
				173
			 | 
			
				163
			 | 
			
			
				                                             ]) 
			 | 
		
	
		
			
			| 
				174
			 | 
			
				164
			 | 
			
			
				                                             ->default(2) 
			 | 
		
	
		
			
			| 
				175
			 | 
			
				165
			 | 
			
			
				                                             ->inline(), 
			 | 
		
	
		
			
			| 
				176
			 | 
			
				
			 | 
			
			
				-                                    // 表格基本資訊 
			 | 
		
	
		
			
			| 
				177
			 | 
			
				
			 | 
			
			
				-                                    // Translate::make()->schema(fn (string $locale) => [ 
			 | 
		
	
		
			
			| 
				178
			 | 
			
				
			 | 
			
			
				-                                    //     TextInput::make('content.table_title') 
			 | 
		
	
		
			
			| 
				179
			 | 
			
				
			 | 
			
			
				-                                    //         ->label("表格標題") 
			 | 
		
	
		
			
			| 
				180
			 | 
			
				
			 | 
			
			
				-                                    //         ->maxLength(200), 
			 | 
		
	
		
			
			| 
				181
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				182
			 | 
			
				
			 | 
			
			
				-                                    //     Textarea::make('content.table_description') 
			 | 
		
	
		
			
			| 
				183
			 | 
			
				
			 | 
			
			
				-                                    //         ->label("表格說明") 
			 | 
		
	
		
			
			| 
				184
			 | 
			
				
			 | 
			
			
				-                                    //         ->rows(3) 
			 | 
		
	
		
			
			| 
				185
			 | 
			
				
			 | 
			
			
				-                                    //         ->maxLength(500), 
			 | 
		
	
		
			
			| 
				186
			 | 
			
				
			 | 
			
			
				-                                    // ])->locales(["zh_TW", "en"]) 
			 | 
		
	
		
			
			| 
				187
			 | 
			
				
			 | 
			
			
				-                                    // ->id(fn ($get) => "table_info_" . $get('item_key')), 
			 | 
		
	
		
			
			| 
				188
			 | 
			
				166
			 | 
			
			
				                                     // 表格資料 
			 | 
		
	
		
			
			| 
				189
			 | 
			
				
			 | 
			
			
				-                                    Placeholder::make('table_builder_info') 
			 | 
		
	
		
			
			| 
				190
			 | 
			
				
			 | 
			
			
				-                                        ->content('請先設定表格欄數,然後填入表格資料'), 
			 | 
		
	
		
			
			| 
				
			 | 
			
				167
			 | 
			
			
				+                                    Placeholder::make('table_builder_info')->label("")->content('請先設定表格欄數,然後填入表格資料'), 
			 | 
		
	
		
			
			| 
				191
			 | 
			
				168
			 | 
			
			
				                                     Grid::make(3)->schema([ 
			 | 
		
	
		
			
			| 
				192
			 | 
			
				169
			 | 
			
			
				                                         Radio::make('content.column_count') 
			 | 
		
	
		
			
			| 
				193
			 | 
			
				170
			 | 
			
			
				                                             ->label('欄數') 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -200,15 +177,15 @@ class EsgResource extends Resource 
			 | 
		
	
		
			
			| 
				200
			 | 
			
				177
			 | 
			
			
				                                             ->inline() 
			 | 
		
	
		
			
			| 
				201
			 | 
			
				178
			 | 
			
			
				                                             ->live() 
			 | 
		
	
		
			
			| 
				202
			 | 
			
				179
			 | 
			
			
				                                             ->reactive(), // ✅ 添加 reactive() 
			 | 
		
	
		
			
			| 
				203
			 | 
			
				
			 | 
			
			
				-                                        // Radio::make('content.is_card') 
			 | 
		
	
		
			
			| 
				204
			 | 
			
				
			 | 
			
			
				-                                        //     ->label('是否卡片呈現') 
			 | 
		
	
		
			
			| 
				205
			 | 
			
				
			 | 
			
			
				-                                        //     ->options([ 
			 | 
		
	
		
			
			| 
				206
			 | 
			
				
			 | 
			
			
				-                                        //         1 => '是',  // 改為數字鍵值 
			 | 
		
	
		
			
			| 
				207
			 | 
			
				
			 | 
			
			
				-                                        //         0 => '否', 
			 | 
		
	
		
			
			| 
				208
			 | 
			
				
			 | 
			
			
				-                                        //     ]) 
			 | 
		
	
		
			
			| 
				209
			 | 
			
				
			 | 
			
			
				-                                        //     ->default(1) 
			 | 
		
	
		
			
			| 
				210
			 | 
			
				
			 | 
			
			
				-                                        //     ->inline() 
			 | 
		
	
		
			
			| 
				211
			 | 
			
				
			 | 
			
			
				-                                        //     ->required() 
			 | 
		
	
		
			
			| 
				
			 | 
			
				180
			 | 
			
			
				+                                        Radio::make('content.is_card') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				181
			 | 
			
			
				+                                            ->label('是否卡片呈現') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				182
			 | 
			
			
				+                                            ->options([ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				183
			 | 
			
			
				+                                                1 => '是',  // 改為數字鍵值 
			 | 
		
	
		
			
			| 
				
			 | 
			
				184
			 | 
			
			
				+                                                0 => '否', 
			 | 
		
	
		
			
			| 
				
			 | 
			
				185
			 | 
			
			
				+                                            ]) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				186
			 | 
			
			
				+                                            ->default(1) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				187
			 | 
			
			
				+                                            ->inline() 
			 | 
		
	
		
			
			| 
				
			 | 
			
				188
			 | 
			
			
				+                                            ->required() 
			 | 
		
	
		
			
			| 
				212
			 | 
			
				189
			 | 
			
			
				                                     ]), 
			 | 
		
	
		
			
			| 
				213
			 | 
			
				190
			 | 
			
			
				                                     Translate::make()->schema(fn (string $locale) => [ 
			 | 
		
	
		
			
			| 
				214
			 | 
			
				191
			 | 
			
			
				                                         Grid::make(2)  // 改用 Grid 來支援動態 columns 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -420,11 +397,6 @@ class EsgResource extends Resource 
			 | 
		
	
		
			
			| 
				420
			 | 
			
				397
			 | 
			
			
				             ]) 
			 | 
		
	
		
			
			| 
				421
			 | 
			
				398
			 | 
			
			
				             ->actions([ 
			 | 
		
	
		
			
			| 
				422
			 | 
			
				399
			 | 
			
			
				                 Tables\Actions\EditAction::make(), 
			 | 
		
	
		
			
			| 
				423
			 | 
			
				
			 | 
			
			
				-            ]) 
			 | 
		
	
		
			
			| 
				424
			 | 
			
				
			 | 
			
			
				-            ->bulkActions([ 
			 | 
		
	
		
			
			| 
				425
			 | 
			
				
			 | 
			
			
				-                Tables\Actions\BulkActionGroup::make([ 
			 | 
		
	
		
			
			| 
				426
			 | 
			
				
			 | 
			
			
				-                    Tables\Actions\DeleteBulkAction::make(), 
			 | 
		
	
		
			
			| 
				427
			 | 
			
				
			 | 
			
			
				-                ]), 
			 | 
		
	
		
			
			| 
				428
			 | 
			
				400
			 | 
			
			
				             ]); 
			 | 
		
	
		
			
			| 
				429
			 | 
			
				401
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				430
			 | 
			
				402
			 | 
			
			
				  
			 |