@props([ 'type' => null, 'image' => null, 'imagePath' => null, 'size' => null, 'name' => 'image', 'id' => 'image-upload-input1', 'accept' => '.png, .jpg, .jpeg', 'required' => true, 'theme' => '', ]) @php $size = $size ?? getFileSize($type); if ($image) { $imagePath = getImage(getFilePath($type) . '/' . $image, getFileSize($type)); } @endphp
@if ($imagePath) @else @endif

@lang('or drag and drop here')

@lang('Supported Files:') {{ $accept }}. @if ($size) @lang('Image will be resized into') {{ $size }}@lang('px') @endif
@push('style') @endpush