Akaunting/resources/views/components/documents/show/restore.blade.php

29 lines
973 B
PHP

<x-show.accordion type="restore" :open="($accordionActive == 'restore')">
<x-slot name="head">
<x-show.accordion.head
title="{{ trans('general.restore') }}"
description="{!! trans($description, [
'user' => $user_name,
'type' => $type_lowercase,
'date' => $last_cancelled_date,
]) !!}"
/>
</x-slot>
<x-slot name="body">
@stack('timeline_restore_body_start')
<div class="flex">
@stack('timeline_restore_body_button_restore_start')
<x-link href="{{ route($restoreRoute, $document->id) }}" id="show-slider-actions-restore-{{ $document->type }}" @click="e => e.target.classList.add('disabled')">
{{ trans('general.restore') }}
</x-link>
@stack('timeline_restore_body_button_restore_end')
</div>
@stack('timeline_restore_body_end')
</x-slot>
</x-show.accordion>