|
|
@@ -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
|
//
|