@inject('fmrepo', 'App\Repositories\FileManagerRepository') @php $start_folder = ''; if (isset($attributes['start_folder']) && $attributes['start_folder'] != '') { $start_folder = $attributes['start_folder']; } $selected_files = []; $multiple = false; // dump(); if (isset($attributes['multiple']) && $attributes['multiple']) { $multiple = true; } $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'; } $random = Str::random(); $id_name_field = $name . '_' . $random; if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp