@props([ 'type' => null, 'image' => null, 'imagePath' => null, 'size' => null, 'name' => 'image', 'id' => 'image-upload-input1', 'accept' => '.png, .jpg, .jpeg', 'required' => true, 'darkMode'=>false ]) @php $size = $size ?? getFileSize($type); $imagePath = $imagePath ?? getImage(getFilePath($type) . '/' . $image, $size); @endphp
merge(['class' => 'image--uploader']) }}>
@lang('Supported Files:') {{ $accept }}. @if ($size) @lang('Image will be resized into') {{ $size }}@lang('px') @endif