@endif
@foreach ($columns as $column)
@php
$columnIndex = explode('.', $column['index']);
$columnIndex = end($columnIndex);
$supportedClosureKey = ['wrapper', 'closure'];
$isClosure = ! empty(array_intersect($supportedClosureKey, array_keys($column)));
@endphp
@if ($isClosure)
{{--
Depereciation Notice:
The following key i.e. `wrapper` will remove in the later version. Use only `closure`
key to manipulate the column. This will only hit the raw html.
--}}
@if (isset($column['wrapper']) && gettype($column['wrapper']) === 'object' && $column['wrapper'] instanceof \Closure)
@if (isset($column['closure']) && $column['closure'] == true)