Invert lastname and firstname in header customer list

This commit is contained in:
Sebastien Hattry 2022-08-02 15:44:21 +02:00
parent 8ae2379721
commit 1f5ecd45ce

View file

@ -10,8 +10,8 @@
@endif
</th>
<th scope="col">
@php $colname = 'customer_infos.lastname' @endphp
{{ __('Nom')}}
@php $colname = 'customer_infos.firstname' @endphp
{{ __('Prénom')}}
@if(!session("crud.$modelTable.sort_way") or session("crud.$modelTable.sort_col") !== $colname or (session("crud.$modelTable.sort_way") === 'desc' and session("crud.$modelTable.sort_col") === $colname))
<a class="col_sort text-secondary lead asc" href="{{ _genUrl(['sort_col' => $colname, 'sort_way' => 'asc', 'rst' => null]) }}">&nbsp;&darr;&nbsp;</a>
@endif
@ -20,8 +20,8 @@
@endif
</th>
<th scope="col">
@php $colname = 'customer_infos.firstname' @endphp
{{ __('Prénom')}}
@php $colname = 'customer_infos.lastname' @endphp
{{ __('Nom')}}
@if(!session("crud.$modelTable.sort_way") or session("crud.$modelTable.sort_col") !== $colname or (session("crud.$modelTable.sort_way") === 'desc' and session("crud.$modelTable.sort_col") === $colname))
<a class="col_sort text-secondary lead asc" href="{{ _genUrl(['sort_col' => $colname, 'sort_way' => 'asc', 'rst' => null]) }}">&nbsp;&darr;&nbsp;</a>
@endif