@if($canAdd)
@if ($errors->has('files')) {{ $errors->first('files') }} @endif
@endif @if( isset($entity)) @component('settings::components.attachments-viewer',['delete'=>$delete]) @slot('attachments', $entity->attachments) @slot('canAdd', $canAdd) @slot('view', 'timeline') @slot('attachableType', get_class($entity)) @slot('attachableId', $entity->id) @endcomponent @endif