]> BookStack Code Mirror - bookstack/blob - resources/views/settings/recycle-bin/restore.blade.php
Updated minimum php version from 7.3 to 7.4
[bookstack] / resources / views / settings / recycle-bin / restore.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container small">
5
6         <div class="py-m">
7             @include('settings.parts.navbar', ['selected' => 'maintenance'])
8         </div>
9
10         <div class="card content-wrap auto-height">
11             <h2 class="list-heading">{{ trans('settings.recycle_bin_restore') }}</h2>
12             <p class="text-muted">{{ trans('settings.recycle_bin_restore_confirm') }}</p>
13             <form action="{{ $deletion->getUrl('/restore') }}" method="post">
14                 {!! csrf_field() !!}
15                 <a href="{{ url('/settings/recycle-bin') }}" class="button outline">{{ trans('common.cancel') }}</a>
16                 <button type="submit" class="button">{{ trans('settings.recycle_bin_restore') }}</button>
17             </form>
18
19             @if($deletion->deletable instanceof \BookStack\Entities\Models\Entity)
20                 <hr class="mt-m">
21                 <h5>{{ trans('settings.recycle_bin_restore_list') }}</h5>
22                 <div class="flex-container-row mb-s items-center">
23                     @if($deletion->deletable->getParent() && $deletion->deletable->getParent()->trashed())
24                         <div class="text-neg flex">{{ trans('settings.recycle_bin_restore_deleted_parent') }}</div>
25                     @endif
26                     @if($parentDeletion)
27                         <div class="flex fit-content ml-m">
28                             <a class="button outline" href="{{ $parentDeletion->getUrl('/restore') }}">{{ trans('settings.recycle_bin_restore_parent') }}</a>
29                         </div>
30                     @endif
31                 </div>
32
33                 @include('settings.recycle-bin.parts.deletable-entity-list', ['entity' => $deletion->deletable])
34             @endif
35
36         </div>
37
38     </div>
39 @stop