@props([ 'model' => 'image', 'file' => null, 'previewUrl' => null, 'currentUrl' => null, 'focalX' => 50, 'focalY' => 50, 'label' => 'Image', 'hint' => null, 'required' => false, ]) {{-- A 16:9 image picker for Livewire forms: choose a file, see exactly how it will be cropped, click the preview to choose which part stays in frame (same rule as CSS object-position, which the server applies), and watch the upload progress. $file is the Livewire temporary upload (or null); the focal point lives in the parent's focalX/focalY properties. --}}
{{ $label }} @if ($required)(required)@endif
@if ($previewUrl) Preview of the card as players will see it @elseif ($currentUrl) Current card image @else
A 16:9 preview appears here
@endif

Uploading…

@if ($previewUrl)

Click the preview to choose which part of the picture stays in frame. Anything outside 16:9 is cropped, never stretched.

@elseif ($currentUrl)

Choose a new file to replace this image. The crop position can be set after you pick a file.

@endif has($model)) aria-invalid="true" aria-describedby="{{ $model }}-error" @endif class="mm-control max-w-xl" > @if ($hint)

{{ $hint }}

@endif @error($model) @enderror