diff --git a/app/Filament/Resources/Learning/Assignments/Actions/PinAction.php b/app/Filament/Resources/Learning/Assignments/Actions/PinAction.php index c7299e8..6b77b09 100644 --- a/app/Filament/Resources/Learning/Assignments/Actions/PinAction.php +++ b/app/Filament/Resources/Learning/Assignments/Actions/PinAction.php @@ -22,6 +22,7 @@ protected function setUp(): void $this->label(fn (array $arguments, $livewire) => in_array($arguments['record'], $livewire->pinnedIds) ? 'Lepas Pin' : 'Pin Tugas') ->color(fn (array $arguments, $livewire) => in_array($arguments['record'], $livewire->pinnedIds) ? 'primary' : 'gray') ->icon(fn (array $arguments, $livewire) => in_array($arguments['record'], $livewire->pinnedIds) ? 'heroicon-s-bookmark' : 'heroicon-o-bookmark') + ->link() ->tooltip(fn (array $arguments, $livewire) => in_array($arguments['record'], $livewire->pinnedIds) ? 'Lepas pin' : 'Pin tugas ini') ->action(function (array $arguments, $livewire) { diff --git a/resources/views/filament/resources/learning/assignments/index.blade.php b/resources/views/filament/resources/learning/assignments/index.blade.php index 762990d..4fb766c 100644 --- a/resources/views/filament/resources/learning/assignments/index.blade.php +++ b/resources/views/filament/resources/learning/assignments/index.blade.php @@ -85,11 +85,6 @@ class="h-3.5 w-3.5 shrink-0" /> @endif - - @if ($card->can_submit_actual) - - @endif @@ -104,14 +99,7 @@ class="flex items-center justify-start gap-2 px-4 py-2 border-t border-gray-100 - @if ($card->is_group && !$card->is_submitted) -
- @endif + @empty