@inject('fmrepo', 'App\Repositories\FileManagerRepository') @php $start_folder = ''; if (isset($attributes['start_folder']) && $attributes['start_folder'] != '') { $start_folder = $attributes['start_folder']; } $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'; } $thumb = ''; if ($value != '' && $value != null) { $thumb = $fmrepo->getThumbFileManager($value); if ($thumb != '') { $thumb = asset($thumb); } } $id_name_field = $name; if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp