1 @extends('simple-layout')
4 <div class="container">
6 <div class="grid left-focus v-center no-row-gap">
8 @include('settings.navbar', ['selected' => 'maintenance'])
12 <div class="card content-wrap auto-height">
13 <h2 class="list-heading">{{ trans('settings.recycle_bin') }}</h2>
15 <div class="grid half left-focus">
17 <p class="text-muted">{{ trans('settings.recycle_bin_desc') }}</p>
19 <div class="text-right">
20 <div component="dropdown" class="dropdown-container">
21 <button refs="dropdown@toggle"
23 class="button outline">{{ trans('settings.recycle_bin_empty') }} </button>
24 <div refs="dropdown@menu" class="dropdown-menu">
25 <p class="text-neg small px-m mb-xs">{{ trans('settings.recycle_bin_empty_confirm') }}</p>
27 <form action="{{ url('/settings/recycle-bin/empty') }}" method="POST">
29 <button type="submit" class="text-primary small delete">{{ trans('common.confirm') }}</button>
38 <hr class="mt-l mb-s">
40 {!! $deletions->links() !!}
44 <th>{{ trans('settings.recycle_bin_deleted_item') }}</th>
45 <th>{{ trans('settings.recycle_bin_deleted_by') }}</th>
46 <th>{{ trans('settings.recycle_bin_deleted_at') }}</th>
49 @if(count($deletions) === 0)
52 <p class="text-muted"><em>{{ trans('settings.recycle_bin_contents_empty') }}</em></p>
56 @foreach($deletions as $deletion)
59 <div class="table-entity-item">
60 <span role="presentation" class="icon text-{{$deletion->deletable->getType()}}">@icon($deletion->deletable->getType())</span>
61 <div class="text-{{ $deletion->deletable->getType() }}">
62 {{ $deletion->deletable->name }}
65 @if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
66 <div class="mb-m"></div>
68 @if($deletion->deletable instanceof \BookStack\Entities\Models\Book)
69 <div class="pl-xl block inline">
70 <div class="text-chapter">
71 @icon('chapter') {{ trans_choice('entities.x_chapters', $deletion->deletable->chapters()->withTrashed()->count()) }}
75 @if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
76 <div class="pl-xl block inline">
77 <div class="text-page">
78 @icon('page') {{ trans_choice('entities.x_pages', $deletion->deletable->pages()->withTrashed()->count()) }}
83 <td>@include('partials.table-user', ['user' => $deletion->deleter, 'user_id' => $deletion->deleted_by])</td>
84 <td width="200">{{ $deletion->created_at }}</td>
85 <td width="150" class="text-right">
86 <div component="dropdown" class="dropdown-container">
87 <button type="button" refs="dropdown@toggle" class="button outline">{{ trans('common.actions') }}</button>
88 <ul refs="dropdown@menu" class="dropdown-menu">
89 <li><a class="block" href="{{ url('/settings/recycle-bin/'.$deletion->id.'/restore') }}">{{ trans('settings.recycle_bin_restore') }}</a></li>
90 <li><a class="block" href="{{ url('/settings/recycle-bin/'.$deletion->id.'/destroy') }}">{{ trans('settings.recycle_bin_permanently_delete') }}</a></li>
98 {!! $deletions->links() !!}