study icons
This commit is contained in:
parent
0bb54f0afd
commit
35c3ad3d39
@ -17,6 +17,7 @@
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||||
|
use Illuminate\Support\Facades\Blade;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Spatie\MediaLibrary\HasMedia;
|
use Spatie\MediaLibrary\HasMedia;
|
||||||
use Spatie\MediaLibrary\InteractsWithMedia;
|
use Spatie\MediaLibrary\InteractsWithMedia;
|
||||||
@ -330,8 +331,18 @@ public function getPriorityIcon(): string
|
|||||||
</span>';
|
</span>';
|
||||||
|
|
||||||
return match ($this->priority) {
|
return match ($this->priority) {
|
||||||
Priority::Stat => sprintf($tpl, 'danger', 'light-emergency-on'),
|
Priority::Stat => Blade::render('_partials._img-tooltip',
|
||||||
Priority::High => sprintf($tpl, 'primary', 'bolt'),
|
[
|
||||||
|
'src' => asset('imgs/stat.png'),
|
||||||
|
'class' => 'msg-icon',
|
||||||
|
'tip' => 'STAT',
|
||||||
|
]),
|
||||||
|
Priority::High => Blade::render('_partials._img-tooltip',
|
||||||
|
[
|
||||||
|
'src' => asset('imgs/warning.png'),
|
||||||
|
'class' => 'msg-icon',
|
||||||
|
'tip' => 'High Priority',
|
||||||
|
]),
|
||||||
Priority::Low => sprintf($tpl, 'light', 'chevrons-down'),
|
Priority::Low => sprintf($tpl, 'light', 'chevrons-down'),
|
||||||
default => '',
|
default => '',
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user