@stack('button_group_start') @if (! $hideMoreActions) more_horiz @stack('button_dropdown_start') @stack('duplicate_button_start') @if (! $hideDuplicate) @can($permissionCreate) {{ trans('general.duplicate') }} @endcan @endif @stack('duplicate_button_end') @if (! $hideDivider1) @endif @stack('button_print_start') @if (! $hidePrint) {{ trans('general.print') }} @endif @stack('button_print_end') @stack('button_pdf_start') @if (! $hidePdf) {{ trans('general.download_pdf') }} @endif @stack('button_pdf_end') @if (! in_array($document->status, $hideButtonStatuses)) @if (! $hideDivider2) @endif @stack('share_button_start') @if (! $hideShare) @if ($document->status != 'cancelled') {{ trans('general.share_link') }} @endif @endif @stack('share_button_end') @stack('edit_button_start') @if (! $hideEmail) @if ($document->contact_email) {{ trans($textEmail) }} @else {{ trans($textEmail) }} @endif @endif @endif @stack('share_button_end') @if (! $hideDivider3) @endif @stack('button_customize_start') @if (! $hideCustomize) @can($permissionCustomize) {{ trans('general.customize') }} @endcan @endif @stack('button_customize_end') @stack('end_button_start') @if (! $hideEnd && $document->recurring) {{ trans('recurring.end') }} @endif @stack('end_button_end') @stack('button_cancelled_start') @if (! $hideCancel && ! in_array($document->status, ['cancelled', 'draft'])) @can($permissionUpdate) {{ trans('documents.actions.cancel') }} @endcan @endif @stack('button_cancelled_end') @if (! $hideDivider4) @endif @stack('delete_button_start') @if (! $hideDelete) @can($permissionDelete) @if ($checkReconciled) @if (! $document->reconciled) @endif @else @endif @endcan @endif @stack('delete_button_end') @stack('button_dropdown_end') @endif @stack('button_group_end')