@props([ 'name', 'label' => null, 'current' => '', 'hint' => null, 'previewClass' => 'w-full aspect-video', ]) @php $uid = uniqid('mif_'); @endphp {{-- Bespoke CMS image field with a Media Library picker. Renders the existing (direct upload, unchanged) plus a "Choose from Library" button that pops the shared (which must be included once on the same page). A pick sets a hidden "_media_id"; the server (ResolvesImageField trait) resolves it to the Media path. Upload beats pick. The instance's field name + current URL travel via data-* (read in init()). --}}
@if($label) @endif
@if($hint)

{{ $hint }}

@endif