feat: add search functionality to assignments list and update permission requirements
This commit is contained in:
parent
fb75b28955
commit
93085269e9
@ -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) {
|
||||
|
||||
@ -85,11 +85,6 @@ class="h-3.5 w-3.5 shrink-0" />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($card->can_submit_actual)
|
||||
<x-filament::icon icon="heroicon-o-chevron-right"
|
||||
class="h-4 w-4 text-gray-400 group-hover:text-primary-500 mt-1 transition-colors shrink-0 hidden sm:block" />
|
||||
@endif
|
||||
</a>
|
||||
|
||||
|
||||
@ -104,14 +99,7 @@ class="flex items-center justify-start gap-2 px-4 py-2 border-t border-gray-100
|
||||
</div>
|
||||
|
||||
|
||||
@if ($card->is_group && !$card->is_submitted)
|
||||
<div class="absolute right-14 top-2 pointer-events-none hidden sm:block">
|
||||
<x-filament::icon
|
||||
icon="{{ $card->is_leader ? 'heroicon-m-sparkles' : 'heroicon-m-user-group' }}"
|
||||
class="{{ $card->indicator_icon_classes }}"
|
||||
title="{{ $card->is_leader ? 'Anda adalah Ketua Kelompok' : 'Anda adalah Anggota Kelompok' }}" />
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@empty
|
||||
<x-filament::empty-state icon="heroicon-o-clipboard-document-list"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user