@php \TallStackUi\Foundation\Exceptions\MissingLivewireException::throwIf($livewire, 'upload'); [$property] = $bind($attributes, livewire: $livewire); $personalize = $classes(); $value = data_get($this, $property); if (is_null($property)) throw new Exception('The [upload] component requires a property to bind using [wire:model].'); @endphp
@if ($static) @endif @if ($preview) @endif @if (!$static)
$footer->isNotEmpty()])>

{{ __('tallstack-ui::messages.upload.upload') }}

@if (is_string($tip))

{{ $tip }}

@else {{ $tip }} @endif runningUnitTests()) @class($personalize['placeholder.input']) @endif x-ref="files" {{ $attributes->only(['accept', 'x-on:upload']) }} x-on:change="upload()" x-on:dragover="dragging = true" x-on:dragleave="dragging = false" x-on:drop="dragging = false;" @if ($multiple) multiple @endif />
@endif
$footer->isNotEmpty()]) x-show="@js($error) && error">

$footer->isNotEmpty()])>
@if ($value)
    @foreach($adapter($value) as $key => $file)
  • is_array($value) && count($value) > 1])>
    @if ($file['is_image']) $preview])> @else @endif

    {{ $file['real_name'] }}

    @if ($file['size'] !== null)

    {{ __('tallstack-ui::messages.upload.size') }}: {{ $file['size'] }}

    @endif
    @if ($delete) @endif
  • @endforeach
@elseif ($static === true)

{{ __('tallstack-ui::messages.upload.static.empty.title') }}

{{ __('tallstack-ui::messages.upload.static.empty.description') }}

@endif @if ($footer->isNotEmpty()) @unless ($footer->attributes->has('when-uploaded') && !$value) {{ $footer }} @endunless @endif