@if(! is_null($error))

{{ $error }}

@endif
{{-- --}}
Loading...
{{-- TODO change depending on the file type props etc--}}

Drop here or Browse file

@php $hasMaxFileSize = ! is_null($this->maxFileSize); $hasMimes = ! empty($this->mimes); @endphp @if($hasMaxFileSize)

{{ __('Up to :size', ['size' => \Illuminate\Support\Number::fileSize($this->maxFileSize * 1024)]) }}

@endif @if($hasMaxFileSize && $hasMimes) · @endif @if($hasMimes)

{{ Str::upper($this->mimes) }}

@endif

Drop here to upload

@php $hasMaxFileSize = ! is_null($this->maxFileSize); $hasMimes = ! empty($this->mimes); @endphp @if($hasMaxFileSize)

{{ __('Up to :size', ['size' => \Illuminate\Support\Number::fileSize($this->maxFileSize * 1024)]) }}

@endif @if($hasMaxFileSize && $hasMimes) · @endif @if($hasMimes)

{{ Str::upper($this->mimes) }}

@endif
accept)) accept="{{ $this->accept }}" @endif @if($multiple === true) multiple @endif >
@if(count($files) > 0)
@foreach($files as $file)
@if($this->isImageMime($file['extension']))
{{ $file['name'] }}
@else
@endif
{{ $file['name'] }}
{{ \Illuminate\Support\Number::fileSize($file['size']) }}
@endforeach
@endif
@script @endscript