| {{ $headerTitle }} @if(str_starts_with($headerName, $sortBy)) @if($orderBy === 'asc') @else @endif @endif @if(isset(request()->filters[$headerName]) || isset(request()->filters[str_replace('_txt', '', $headerName) . '_from']) || isset(request()->filters[str_replace('_txt', '', $headerName) . '_to']) ) @endif | @endforeach
|---|
| @if(str_ends_with($headerName, '_id')) @php $relation = str_replace('_id', '', $headerName); @endphp {!! $string->$relation?->name; !!} @else {!! $string->$headerName !!} @endif | @endforeach