{{-- resources/views/components/media-picker.blade.php --}} @props([ 'name' => 'media', 'label' => 'اختيار صورة', 'collection' => 'default', 'accept' => 'image/*', 'multiple' => false, 'selected' => null, 'preview' => true, 'required' => false, ]) @php $id = $attributes->get('id') ?? $name ?? 'media-picker-' . uniqid(); $selectedItems = $selected ? (is_array($selected) ? $selected : [$selected]) : []; @endphp
{{ admin_trans('no_media_found') }}
{{ admin_trans('items_selected') }}