@php $setting = $config['form']['sidebar']['setting']['input']; $k_last = array_key_last($setting); @endphp
@foreach ($setting as $k => $v) @if (!empty($v['status'])) @php $chk_req = !empty($v['validate']); @endphp
@if ($v['type'] == 'checkbox') @php $chk = !empty($data) ? $data->{$k} == 1 : $k == 'status'; @endphp @endif
@endif @endforeach