2020-12-24 01:28:38 +03:00
|
|
|
@stack('button_group_start')
|
|
|
|
@if (!$hideButtonMoreActions)
|
|
|
|
<div class="dropup header-drop-top">
|
|
|
|
<button type="button" class="btn btn-white btn-sm" data-toggle="dropdown" aria-expanded="false">
|
|
|
|
<i class="fa fa-chevron-down"></i> {{ trans('general.more_actions') }}
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="dropdown-menu" role="menu">
|
|
|
|
@stack('button_dropdown_start')
|
2021-01-18 14:09:10 +03:00
|
|
|
@if (in_array($document->status, $hideTimelineStatuses))
|
|
|
|
@stack('edit_button_start')
|
|
|
|
@if (!$hideButtonEdit)
|
|
|
|
@can($permissionUpdate)
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonEdit, $document->id) }}">
|
|
|
|
{{ trans('general.edit') }}
|
|
|
|
</a>
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
@stack('edit_button_end')
|
|
|
|
@endif
|
|
|
|
|
2021-01-16 14:23:04 +06:00
|
|
|
@stack('duplicate_button_start')
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (!$hideButtonDuplicate)
|
2021-01-06 16:35:28 +03:00
|
|
|
@can($permissionCreate)
|
2020-12-24 01:28:38 +03:00
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonDuplicate, $document->id) }}">
|
|
|
|
{{ trans('general.duplicate') }}
|
|
|
|
</a>
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
@stack('duplicate_button_end')
|
|
|
|
|
|
|
|
@stack('button_dropdown_divider_1_start')
|
2021-01-18 14:09:10 +03:00
|
|
|
@if (!$hideButtonGroupDivider1)
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('button_dropdown_divider_1_end')
|
|
|
|
|
|
|
|
@if (!$hideButtonPrint)
|
|
|
|
@if ($checkButtonCancelled)
|
|
|
|
@if ($document->status != 'cancelled')
|
|
|
|
@stack('button_print_start')
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonPrint, $document->id) }}" target="_blank">
|
|
|
|
{{ trans('general.print') }}
|
|
|
|
</a>
|
|
|
|
@stack('button_print_end')
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
@stack('button_print_start')
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonPrint, $document->id) }}" target="_blank">
|
|
|
|
{{ trans('general.print') }}
|
|
|
|
</a>
|
|
|
|
@stack('button_print_end')
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
2021-01-18 14:09:10 +03:00
|
|
|
@if (in_array($document->status, $hideTimelineStatuses))
|
|
|
|
@stack('share_button_start')
|
|
|
|
@if (!$hideButtonShare)
|
|
|
|
@if ($document->status != 'cancelled')
|
|
|
|
<a class="dropdown-item" href="{{ $signedUrl }}" target="_blank">
|
|
|
|
{{ trans('general.share') }}
|
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
@stack('share_button_end')
|
|
|
|
|
|
|
|
@stack('edit_button_start')
|
|
|
|
@if (!$hideButtonEmail)
|
|
|
|
@if($document->contact_email)
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonEmail, $document->id) }}">
|
|
|
|
{{ trans($textTimelineSendStatusMail) }}
|
|
|
|
</a>
|
|
|
|
@else
|
2021-02-18 17:59:44 +03:00
|
|
|
<el-tooltip content="{{ trans('invoices.messages.email_required') }}" placement="right">
|
|
|
|
<button type="button" class="dropdown-item btn-tooltip">
|
2021-01-18 14:09:10 +03:00
|
|
|
<span class="text-disabled">{{ trans($textTimelineSendStatusMail) }}</span>
|
|
|
|
</button>
|
|
|
|
</el-tooltip>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
@stack('edit_button_end')
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
2021-01-18 14:09:10 +03:00
|
|
|
|
|
|
|
@stack('button_pdf_start')
|
|
|
|
@if (!$hideButtonPdf)
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonPdf, $document->id) }}">
|
|
|
|
{{ trans('general.download_pdf') }}
|
|
|
|
</a>
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('button_pdf_end')
|
|
|
|
|
|
|
|
@if (!$hideButtonCancel)
|
2021-01-06 16:35:28 +03:00
|
|
|
@can($permissionUpdate)
|
2020-12-24 01:28:38 +03:00
|
|
|
@if ($checkButtonCancelled)
|
|
|
|
@if ($document->status != 'cancelled')
|
|
|
|
@stack('button_cancelled_start')
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonCancelled, $document->id) }}">
|
|
|
|
{{ trans('general.cancel') }}
|
|
|
|
</a>
|
|
|
|
@stack('button_cancelled_end')
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
@stack('button_cancelled_start')
|
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonCancelled, $document->id) }}">
|
|
|
|
{{ trans('general.cancel') }}
|
|
|
|
</a>
|
|
|
|
@stack('button_cancelled_end')
|
|
|
|
@endif
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_dropdown_divider_2_start')
|
2021-01-18 14:09:10 +03:00
|
|
|
@if (!$hideButtonGroupDivider2)
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('button_dropdown_divider_2_end')
|
|
|
|
|
|
|
|
@if (!$hideButtonCustomize)
|
|
|
|
@can($permissionButtonCustomize)
|
2021-01-16 14:23:04 +06:00
|
|
|
@stack('button_customize_start')
|
2020-12-24 01:28:38 +03:00
|
|
|
<a class="dropdown-item" href="{{ route($routeButtonCustomize) }}">
|
|
|
|
{{ trans('general.customize') }}
|
|
|
|
</a>
|
2021-01-16 14:23:04 +06:00
|
|
|
@stack('button_customize_end')
|
2020-12-24 01:28:38 +03:00
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_dropdown_divider_3_start')
|
2021-01-18 14:09:10 +03:00
|
|
|
@if (!$hideButtonGroupDivider3)
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('button_dropdown_divider_3_end')
|
|
|
|
|
|
|
|
@stack('delete_button_start')
|
2021-01-18 14:09:10 +03:00
|
|
|
@if (!$hideButtonDelete)
|
|
|
|
@can($permissionDelete)
|
|
|
|
@if ($checkButtonReconciled)
|
|
|
|
@if (!$document->reconciled)
|
|
|
|
{!! Form::deleteLink($document, $routeButtonDelete, $textDeleteModal, 'document_number') !!}
|
|
|
|
@endif
|
|
|
|
@else
|
2021-01-03 15:47:17 +06:00
|
|
|
{!! Form::deleteLink($document, $routeButtonDelete, $textDeleteModal, 'document_number') !!}
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
2021-01-18 14:09:10 +03:00
|
|
|
@endcan
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('delete_button_end')
|
|
|
|
@stack('button_dropdown_end')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@stack('button_group_end')
|
|
|
|
|
|
|
|
@stack('add_new_button_start')
|
|
|
|
@if (!$hideButtonAddNew)
|
2021-01-06 16:35:28 +03:00
|
|
|
@can($permissionCreate)
|
2020-12-24 01:28:38 +03:00
|
|
|
<a href="{{ route($routeButtonAddNew) }}" class="btn btn-white btn-sm">
|
|
|
|
{{ trans('general.add_new') }}
|
|
|
|
</a>
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
@stack('add_new_button_end')
|