Invert lastname and firstname in header customer list
This commit is contained in:
parent
8ae2379721
commit
1f5ecd45ce
1 changed files with 4 additions and 4 deletions
|
|
@ -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]) }}"> ↓ </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]) }}"> ↓ </a>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue