Andrew пре 2 месеци
родитељ
комит
9a88cd0dd7
1 измењених фајлова са 3 додато и 5 уклоњено
  1. 3
    5
      app/Filament/Resources/BannerResource.php

+ 3
- 5
app/Filament/Resources/BannerResource.php Прегледај датотеку

@@ -104,12 +104,10 @@ class BannerResource extends Resource
104 104
                         '1' => 'heroicon-o-photo',
105 105
                         '2' => 'heroicon-o-film',
106 106
                     }),
107
-                ImageColumn::make('img_url')->label('圖片')
108
-                    ->visible(fn ($record): bool => $record?->type == 1),
109
-                TextColumn::make('title')->label('標題')
110
-                    ->visible(fn ($record): bool => $record?->type == 1),
107
+                ImageColumn::make('img_url')->label('圖片'),
108
+                TextColumn::make('title')->label('標題'),
111 109
                 TextColumn::make('video_url')->label('影片網址')
112
-                    ->visible(fn ($record): bool => $record?->type == 2),
110
+                    ->visible(fn ($record): bool => $record->type == 2),
113 111
             ])
114 112
             ->filters([
115 113
         //