@extends('simple-layout') @section('body')
@include('settings.navbar', ['selected' => 'maintenance'])

{{ trans('settings.recycle_bin') }}

{{ trans('settings.recycle_bin_desc') }}


{!! $deletions->links() !!} @if(count($deletions) === 0) @endif @foreach($deletions as $deletion) @endforeach
{{ trans('settings.recycle_bin_deleted_item') }} {{ trans('settings.recycle_bin_deleted_by') }} {{ trans('settings.recycle_bin_deleted_at') }}

{{ trans('settings.recycle_bin_contents_empty') }}

@icon($deletion->deletable->getType())
{{ $deletion->deletable->name }}
@if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
@endif @if($deletion->deletable instanceof \BookStack\Entities\Models\Book)
@icon('chapter') {{ trans_choice('entities.x_chapters', $deletion->deletable->chapters()->withTrashed()->count()) }}
@endif @if($deletion->deletable instanceof \BookStack\Entities\Models\Book || $deletion->deletable instanceof \BookStack\Entities\Models\Chapter)
@icon('page') {{ trans_choice('entities.x_pages', $deletion->deletable->pages()->withTrashed()->count()) }}
@endif
@include('partials.table-user', ['user' => $deletion->deleter, 'user_id' => $deletion->deleted_by]) {{ $deletion->created_at }}
{!! $deletions->links() !!}
@stop