2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2020-10-03 13:44:12 -04:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<div class="container">
|
|
|
|
|
2022-03-26 17:36:05 -04:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'maintenance'])
|
2020-10-03 13:44:12 -04:00
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.recycle_bin') }}</h2>
|
|
|
|
|
2022-10-31 12:45:32 -04:00
|
|
|
<div class="flex-container-row items-center gap-x-l gap-y-m wrap">
|
|
|
|
<div class="flex-2 min-width-l">
|
|
|
|
<p class="text-muted mb-none">{{ trans('settings.recycle_bin_desc') }}</p>
|
2020-10-03 13:44:12 -04:00
|
|
|
</div>
|
2022-10-31 12:45:32 -04:00
|
|
|
<div class="flex text-m-right min-width-m">
|
2020-10-03 13:44:12 -04:00
|
|
|
<div component="dropdown" class="dropdown-container">
|
|
|
|
<button refs="dropdown@toggle"
|
|
|
|
type="button"
|
|
|
|
class="button outline">{{ trans('settings.recycle_bin_empty') }} </button>
|
|
|
|
<div refs="dropdown@menu" class="dropdown-menu">
|
|
|
|
<p class="text-neg small px-m mb-xs">{{ trans('settings.recycle_bin_empty_confirm') }}</p>
|
|
|
|
|
|
|
|
<form action="{{ url('/settings/recycle-bin/empty') }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
2022-04-20 09:03:47 -04:00
|
|
|
<button type="submit" class="text-primary small delete text-item">{{ trans('common.confirm') }}</button>
|
2020-10-03 13:44:12 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr class="mt-l mb-s">
|
|
|
|
|
2022-10-31 12:45:32 -04:00
|
|
|
<div class="py-m">
|
|
|
|
{!! $deletions->links() !!}
|
|
|
|
</div>
|
2020-10-03 13:44:12 -04:00
|
|
|
|
2022-10-31 12:45:32 -04:00
|
|
|
<div class="item-list">
|
|
|
|
<div class="item-list-row flex-container-row items-center px-s bold hide-under-l">
|
|
|
|
<div class="flex-2 px-m py-xs">{{ trans('settings.audit_deleted_item') }}</div>
|
|
|
|
<div class="flex-2 px-m py-xs">{{ trans('settings.recycle_bin_deleted_parent') }}</div>
|
|
|
|
<div class="flex-2 px-m py-xs">{{ trans('settings.recycle_bin_deleted_by') }}</div>
|
|
|
|
<div class="flex px-m py-xs">{{ trans('settings.recycle_bin_deleted_at') }}</div>
|
|
|
|
<div class="flex px-m py-xs text-right"></div>
|
|
|
|
</div>
|
2020-10-03 13:44:12 -04:00
|
|
|
@if(count($deletions) === 0)
|
2022-10-31 12:45:32 -04:00
|
|
|
<div class="item-list-row px-l py-m">
|
|
|
|
<p class="text-muted mb-none"><em>{{ trans('settings.recycle_bin_contents_empty') }}</em></p>
|
|
|
|
</div>
|
2020-10-03 13:44:12 -04:00
|
|
|
@endif
|
|
|
|
@foreach($deletions as $deletion)
|
2022-10-31 12:45:32 -04:00
|
|
|
@include('settings.recycle-bin.parts.recycle-bin-list-item', ['deletion' => $deletion])
|
2020-10-03 13:44:12 -04:00
|
|
|
@endforeach
|
2022-10-31 12:45:32 -04:00
|
|
|
</div>
|
2020-10-03 13:44:12 -04:00
|
|
|
|
2022-10-31 12:45:32 -04:00
|
|
|
<div class="py-m">
|
|
|
|
{!! $deletions->links() !!}
|
|
|
|
</div>
|
2020-10-03 13:44:12 -04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@stop
|