@php 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 = 'control-label'; } if ($file != '' && Storage::exists($path . $file)) { $showImage = true; $src = Storage::url($path . $file); } else { if (Ui::keyset($attributes, 'default') != null) { $showImage = true; $src = Storage::url($attributes['default']); } else { $src = ''; $showImage = false; } } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp @if ($showImage)