@php use Filament\Support\Facades\FilamentView; $statePath = $getStatePath(); @endphp @if ($isDisabled())
{!! str($getState())->markdown()->sanitizeHtml() !!}
@else
{ $wire.upload(`componentFileAttachments.{{ $statePath }}`, file, () => { $wire .getFormComponentFileAttachmentUrl('{{ $statePath }}') .then((url) => { if (! url) { return onError() } onSuccess(url) }) }) }, })" x-ignore wire:ignore {{ $getExtraAlpineAttributeBag() }} >
@endif