@php $mode = $attributes->get('mode') ?? 'horizontal'; //vertical,horizontal $name = $attributes->get('name'); $size = $attributes->get('size'); $array = $attributes->get('array'); $column = $attributes->get('column') ?? 'id'; $display_column = $attributes->get('display_column') ?? 'name'; $is_required = $attributes->get('is_required'); $is_multiple = $attributes->get('multiple'); $title = $attributes->get('title'); $value = $attributes->get('value'); $input_size = ""; $label_size = ""; if ($mode == "horizontal"){ $input_size = $attributes->get('input-size') ?? 'col-md-10'; $label_size = $attributes->get('label-size') ?? 'col-md-2'; } //if you want with a code input need following $with_code = $attributes->get('with_code'); $code = $attributes->get('code'); //if you need multiple with code input box $key = $attributes->get('key') ?? 0; @endphp @if(!$with_code)
@if($value) @endif @endif @if($with_code)
@if($mode == "vertical")
@endif
@if($mode == "vertical")
@endif
@endif