@php View::share('noOrder', $noOrder); $ignore = (isset($ignore) and is_array($ignore)) ? $ignore : []; @endphp @foreach($cols as $col => $colname) @php $iArgs = ['sort_col' => $col]; if(request()->search) { $iArgs['search'] = request()->search; } @endphp {{-- NO Sort for order column --}} @if($col === 'order' or in_array($col, $ignore)) @if ($col === 'multi_pdf') {{ $colname }} @else {{ $colname }} @endif @continue @endif {{ $colname }} @if(!session("$routeName.sort_way") or session("$routeName.sort_col") !== $col or (session("$routeName.sort_way") === 'desc' and session("$routeName.sort_col") === $col)) @endif @if(!session("$routeName.sort_way") or session("$routeName.sort_col") !== $col or (session("$routeName.sort_way") === 'asc' and session("$routeName.sort_col") === $col)) @endif @endforeach {{-- Buttons Col --}} @if($noOrder and !$rst) @else @endif