1 @extends('layouts.simple')
4 <div class="container">
7 @include('settings.parts.navbar', ['selected' => 'maintenance'])
10 <div class="card content-wrap auto-height">
11 <h2 class="list-heading">{{ trans('settings.recycle_bin') }}</h2>
13 <div class="grid half left-focus">
15 <p class="text-muted">{{ trans('settings.recycle_bin_desc') }}</p>
17 <div class="text-right">
18 <div component="dropdown" class="dropdown-container">
19 <button refs="dropdown@toggle"
21 class="button outline">{{ trans('settings.recycle_bin_empty') }} </button>
22 <div refs="dropdown@menu" class="dropdown-menu">
23 <p class="text-neg small px-m mb-xs">{{ trans('settings.recycle_bin_empty_confirm') }}</p>
25 <form action="{{ url('/settings/recycle-bin/empty') }}" method="POST">
27 <button type="submit" class="text-primary small delete">{{ trans('common.confirm') }}</button>
36 <hr class="mt-l mb-s">
38 {!! $deletions->links() !!}
42 <th width="30%">{{ trans('settings.recycle_bin_deleted_item') }}</th>
43 <th width="20%">{{ trans('settings.recycle_bin_deleted_parent') }}</th>
44 <th width="20%">{{ trans('settings.recycle_bin_deleted_by') }}</th>
45 <th width="15%">{{ trans('settings.recycle_bin_deleted_at') }}</th>
48 @if(count($deletions) === 0)
51 <p class="text-muted"><em>{{ trans('settings.recycle_bin_contents_empty') }}</em></p>
55 @foreach($deletions as $deletion)
58 <div class="table-entity-item">
59 <span role="presentation" class="icon text-{{$deletion->deletable->getType()}}">@icon($deletion->deletable->getType())</span>
60 <div class="text-{{ $deletion->deletable->getType() }}">
61 {{ $deletion->deletable->name }}
64 @if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
65 <div class="mb-m"></div>
67 @if($deletion->deletable instanceof \BookStack\Entities\Models\Book)
68 <div class="pl-xl block inline">
69 <div class="text-chapter">
70 @icon('chapter') {{ trans_choice('entities.x_chapters', $deletion->deletable->chapters()->withTrashed()->count()) }}
74 @if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
75 <div class="pl-xl block inline">
76 <div class="text-page">
77 @icon('page') {{ trans_choice('entities.x_pages', $deletion->deletable->pages()->withTrashed()->count()) }}
83 @if($deletion->deletable->getParent())
84 <div class="table-entity-item">
85 <span role="presentation" class="icon text-{{$deletion->deletable->getParent()->getType()}}">@icon($deletion->deletable->getParent()->getType())</span>
86 <div class="text-{{ $deletion->deletable->getParent()->getType() }}">
87 {{ $deletion->deletable->getParent()->name }}
92 <td>@include('settings.parts.table-user', ['user' => $deletion->deleter, 'user_id' => $deletion->deleted_by])</td>
93 <td width="200">{{ $deletion->created_at }}</td>
94 <td width="150" class="text-right">
95 <div component="dropdown" class="dropdown-container">
96 <button type="button" refs="dropdown@toggle" class="button outline">{{ trans('common.actions') }}</button>
97 <ul refs="dropdown@menu" class="dropdown-menu">
98 <li><a class="block" href="{{ $deletion->getUrl('/restore') }}">{{ trans('settings.recycle_bin_restore') }}</a></li>
99 <li><a class="block" href="{{ $deletion->getUrl('/destroy') }}">{{ trans('settings.recycle_bin_permanently_delete') }}</a></li>
107 {!! $deletions->links() !!}