@foreach($table['data'] as $col_head) @if($col_head == 'Option') @elseif(strpos($col_head, '-noSort') !== false) @else @endif @endforeach
{!! $col_head !!}{{ str_replace("-noSort", "", $col_head) }}{{ $col_head }}