@php use Saade\FilamentAutograph\Forms\Components\Enums\DownloadableFormat; @endphp @php $isDisabled = $isDisabled(); $isClearable = $isClearable(); $isDownloadable = $isDownloadable(); $downloadableFormats = $getDownloadableFormats(); $downloadActionDropdownPlacement = $getDownloadActionDropdownPlacement() ?? 'bottom-start'; $isUndoable = $isUndoable(); $isConfirmable = $isConfirmable(); $clearAction = $getAction('clear'); $downloadAction = $getAction('download'); $undoAction = $getAction('undo'); $doneAction = $getAction('done'); @endphp
$isDisabled, ]) >
@if ($isClearable) {{ $clearAction }} @endif @if ($isUndoable) {{ $undoAction }} @endif @if ($isDownloadable) {{ $downloadAction }} @if (in_array(DownloadableFormat::PNG, $downloadableFormats)) {{ DownloadableFormat::PNG->getLabel() }} @endif @if (in_array(DownloadableFormat::JPG, $downloadableFormats)) {{ DownloadableFormat::JPG->getLabel() }} @endif @if (in_array(DownloadableFormat::SVG, $downloadableFormats)) {{ DownloadableFormat::SVG->getLabel() }} @endif @endif @if ($isConfirmable) {{ $doneAction }} @endif