Archived
1
0
Fork 0

Adding resources/views/components/sort-link.blade.php

This commit is contained in:
Henrik Hautakoski 2022-01-08 16:17:03 +01:00
parent 5b602b2701
commit 152b22c3c6

View 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