@php $without_label = false; if (Ui::keyset($attributes, 'without_label') != null) { $without_label = $attributes['without_label']; } if ( Ui::keyset($attributes, 'layout') == null || (Ui::keyset($attributes, 'layout') != null && $attributes['layout'] == 'h') ) { $horizental = true; $row = ' row'; $labelClass = 'col-2 col-form-label'; } else { $horizental = false; $row = ''; $labelClass = 'col-form-label'; } $list = []; $file = public_path('site_sections.json'); $content = file_get_contents($file); $content_obj = json_decode($content); if (isset($content_obj) && $content_obj != '') { foreach ($content_obj as $file_location => $file_name) { $list[$file_location] = $file_name; } } if (isset($value) && $value != '') { $values_arr = explode(',', $value); $values_arr_size = sizeof($values_arr); } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp