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