Andrew hace 2 meses
padre
commit
9a88cd0dd7
Se han modificado 1 ficheros con 3 adiciones y 5 borrados
  1. 3
    5
      app/Filament/Resources/BannerResource.php

+ 3
- 5
app/Filament/Resources/BannerResource.php Ver fichero

104
                         '1' => 'heroicon-o-photo',
104
                         '1' => 'heroicon-o-photo',
105
                         '2' => 'heroicon-o-film',
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
                 TextColumn::make('video_url')->label('影片網址')
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
             ->filters([
112
             ->filters([
115
         //
113
         //