| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  | @extends('layouts.simple') | 
					
						
							| 
									
										
										
										
											2020-11-03 06:47:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @section('body') | 
					
						
							|  |  |  |     <div class="container small"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-27 05:36:05 +08:00
										 |  |  |         @include('settings.parts.navbar', ['selected' => 'maintenance']) | 
					
						
							| 
									
										
										
										
											2020-11-03 06:47:48 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         <div class="card content-wrap auto-height"> | 
					
						
							|  |  |  |             <h2 class="list-heading">{{ trans('settings.recycle_bin_restore') }}</h2> | 
					
						
							|  |  |  |             <p class="text-muted">{{ trans('settings.recycle_bin_restore_confirm') }}</p> | 
					
						
							| 
									
										
										
										
											2021-06-26 19:12:11 +08:00
										 |  |  |             <form action="{{ $deletion->getUrl('/restore') }}" method="post"> | 
					
						
							| 
									
										
										
										
											2020-11-03 06:47:48 +08:00
										 |  |  |                 {!! csrf_field() !!} | 
					
						
							|  |  |  |                 <a href="{{ url('/settings/recycle-bin') }}" class="button outline">{{ trans('common.cancel') }}</a> | 
					
						
							|  |  |  |                 <button type="submit" class="button">{{ trans('settings.recycle_bin_restore') }}</button> | 
					
						
							|  |  |  |             </form> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-22 08:17:45 +08:00
										 |  |  |             @if($deletion->deletable instanceof \BookStack\Entities\Models\Entity) | 
					
						
							| 
									
										
										
										
											2020-11-03 06:47:48 +08:00
										 |  |  |                 <hr class="mt-m"> | 
					
						
							|  |  |  |                 <h5>{{ trans('settings.recycle_bin_restore_list') }}</h5> | 
					
						
							| 
									
										
										
										
											2021-06-26 19:12:11 +08:00
										 |  |  |                 <div class="flex-container-row mb-s items-center"> | 
					
						
							|  |  |  |                     @if($deletion->deletable->getParent() && $deletion->deletable->getParent()->trashed()) | 
					
						
							|  |  |  |                         <div class="text-neg flex">{{ trans('settings.recycle_bin_restore_deleted_parent') }}</div> | 
					
						
							|  |  |  |                     @endif | 
					
						
							|  |  |  |                     @if($parentDeletion) | 
					
						
							|  |  |  |                         <div class="flex fit-content ml-m"> | 
					
						
							|  |  |  |                             <a class="button outline" href="{{ $parentDeletion->getUrl('/restore') }}">{{ trans('settings.recycle_bin_restore_parent') }}</a> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     @endif | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                 @include('settings.recycle-bin.parts.deletable-entity-list', ['entity' => $deletion->deletable]) | 
					
						
							| 
									
										
										
										
											2020-11-03 06:47:48 +08:00
										 |  |  |             @endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | @stop |