{{-- Part of Phoenix project. --}} {{-- If is DESC, we prepare ASC --}} @if ($direction == 'DESC') @translate($label) @if (isset($ordering) && $field == $ordering) @endif {{-- If is ACS, we prepare DESC --}} @else @translate($label) @if (isset($ordering) && $field == $ordering) @endif @endif