@php $other = $config['form']['navbar']['other']['input']; $k_last = array_key_last($other); @endphp
@foreach ($other as $k_o => $o) @if (!empty($o['status']))
@php $chk_req = !empty($o['validate']); @endphp @if ($o['type'] == 'multiple') @php $categories = []; $selected = $data->{$k_o} ?? null; if (!empty($data->categories)) { foreach ($data->categories as $key => $value) { $categories[] = $value->id; } } @endphp @if ($k_o == 'related') @endif @elseif ($o['type'] == 'input') @else @endif
@endif @endforeach