@if (Auth::user()->hasPermissionTo('manage tasks'))
@if (!$readonly)
{{ __('messages.or') }}
{{ __('messages.Drag it here') }}
{{ __('messages.Processing Files') }}
@endif
{{-- FilePreview --}}
@include('livewire.tasks.partials.file_preview')
@endif
@if (!$readonly && !isset($task->auto_publish))
@if ($auto_publish_toggle)
@error('auto_publish') {{ $message }}@enderror
@endif
@elseif (isset($task->auto_publish))
@elseif (isset($task->auto_publish) && $task->is_published)
@endif