Adding resources/views/components/sort-link.blade.php
This commit is contained in:
parent
5b602b2701
commit
152b22c3c6
1 changed files with 5 additions and 0 deletions
5
resources/views/components/sort-link.blade.php
Normal file
5
resources/views/components/sort-link.blade.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@props(['name', 'column', 'dir'])
|
||||
|
||||
@if ($name === $column)
|
||||
<x-icon name="{{ $dir == 'asc' ? 'heroicon-s-sort-ascending' : 'heroicon-s-sort-descending' }}" {{ $attributes->only('class') }} />
|
||||
@endif
|
||||
Reference in a new issue