Andrew 2 ay önce
ebeveyn
işleme
5c50964319

+ 1
- 1
app/Filament/Resources/AlbumCategoryResource.php Dosyayı Görüntüle

36
                     Translate::make()->schema(fn (string $locale) => [
36
                     Translate::make()->schema(fn (string $locale) => [
37
                         TextInput::make('name')->required($locale == 'zh_TW')->maxLength(40)->label("分類名稱")
37
                         TextInput::make('name')->required($locale == 'zh_TW')->maxLength(40)->label("分類名稱")
38
                     ])
38
                     ])
39
-                    ->locales(["zh_TW", "en", "jp"])
39
+                    ->locales(["zh_TW", "en"])
40
                     ->actions([
40
                     ->actions([
41
                         app(DeepLService::class)->createTranslationAction("Main", ["name"])
41
                         app(DeepLService::class)->createTranslationAction("Main", ["name"])
42
                     ])->columnSpan(5),
42
                     ])->columnSpan(5),

+ 1
- 1
app/Filament/Resources/AlbumResource.php Dosyayı Görüntüle

93
                         ])->visible(fn(Get $get): bool => $get('upload_type') == 2)->columnSpanFull(),
93
                         ])->visible(fn(Get $get): bool => $get('upload_type') == 2)->columnSpanFull(),
94
                     ])->columnSpanFull(),
94
                     ])->columnSpanFull(),
95
                     Toggle::make('on_top')->inline()->label('置頂輪播')->columnSpanFull(),
95
                     Toggle::make('on_top')->inline()->label('置頂輪播')->columnSpanFull(),
96
-                    Toggle::make('homepage_top')->inline()->label('在首頁輪播')->columnSpanFull(),
96
+//                    Toggle::make('homepage_top')->inline()->label('在首頁輪播')->columnSpanFull(),
97
                 ])->columns(3),
97
                 ])->columns(3),
98
             ]);
98
             ]);
99
     }
99
     }

+ 1
- 1
app/Filament/Resources/HistoryResource.php Dosyayı Görüntüle

68
                         ])->columnSpanFull(),
68
                         ])->columnSpanFull(),
69
                     Group::make()->schema([
69
                     Group::make()->schema([
70
                         FileUpload::make('img_url')->label('圖片')->directory('histories')
70
                         FileUpload::make('img_url')->label('圖片')->directory('histories')
71
-                            ->acceptedFileTypes(['image/jpeg', 'image/jpg', 'image/png', 'image/webp'])->required()->imageEditor()
71
+                            ->acceptedFileTypes(['image/jpeg', 'image/jpg', 'image/png', 'image/webp'])->imageEditor()
72
                             ->columnSpanFull(),
72
                             ->columnSpanFull(),
73
                     ])->columnSpanFull(),
73
                     ])->columnSpanFull(),
74
                     Radio::make('visible')->label('顯示/不顯示')->options([1 => '顯示', 0 => '不顯示'])->inline()->default(1)->columnSpan(2),
74
                     Radio::make('visible')->label('顯示/不顯示')->options([1 => '顯示', 0 => '不顯示'])->inline()->default(1)->columnSpan(2),

+ 1
- 1
app/Filament/Resources/ProjectResource.php Dosyayı Görüntüle

164
                     Tab::make('空間資訊')->schema([
164
                     Tab::make('空間資訊')->schema([
165
                         Group::make()->schema([
165
                         Group::make()->schema([
166
                             Translate::make()->schema(fn (string $locale) => [
166
                             Translate::make()->schema(fn (string $locale) => [
167
-                                TextInput::make('contact_unit')->label('物管單位'),
167
+//                                TextInput::make('contact_unit')->label('物管單位'),
168
                                 TextInput::make('contact_phone')->label('物管電話'),
168
                                 TextInput::make('contact_phone')->label('物管電話'),
169
                                 TextInput::make('inversment_phone')->label('招商電話'),
169
                                 TextInput::make('inversment_phone')->label('招商電話'),
170
                             ])
170
                             ])

+ 1
- 1
database/migrations/2025_09_18_091406_create_projects_table.php Dosyayı Görüntüle

23
             $table->json("floor_plan")->comment("樓層規劃");
23
             $table->json("floor_plan")->comment("樓層規劃");
24
             $table->json("building_structure")->comment("建築結構");
24
             $table->json("building_structure")->comment("建築結構");
25
             $table->json("design_unit")->comment("設計團隊");
25
             $table->json("design_unit")->comment("設計團隊");
26
-            $table->json("contact_unit")->comment("物管單位");
26
+            $table->json("contact_unit")->nullable()->comment("物管單位");
27
             $table->json("contact_phone")->comment("物管電話");
27
             $table->json("contact_phone")->comment("物管電話");
28
             $table->json("inversment_phone")->comment("招商電話");
28
             $table->json("inversment_phone")->comment("招商電話");
29
             $table->tinyInteger("badge_type")->comment("標章呈現方式");
29
             $table->tinyInteger("badge_type")->comment("標章呈現方式");