@php $aspectRatio = match ($ratio ?? '1:1') { '1:1' => 'ratio-1', '2:1' => 'ratio-2-1', '3:1' => 'ratio-3-1', default => 'ratio-1', }; $imageExtension = $imageExtension ?? IMAGE_EXTENSION; $maxSize = $maxSize ?? MAX_FILE_SIZE; $isRequired = $isRequired ?? false; $existingImage = $existingImage ?? ''; $ratio = $ratio ?? '1:1'; $id = $id ?? 'image-input'; $name = $name ?? 'image'; $imageFormat = $imageFormat ?? IMAGE_FORMAT; $pixel = isset($pixel) && $pixel !== '' ? $pixel . ' px' : null; $size = $pixel ?? $ratio; @endphp
{{ translate($imageFormat . ' Image size : Max ' . $maxSize . ' MB')}} {{ translate('(' . $size . ')')}}