2021-08-22 20:15:58 +08:00
|
|
|
@extends('layouts.simple')
|
2020-10-04 01:44:12 +08:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<div class="container">
|
|
|
|
|
2022-03-27 05:36:05 +08:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'maintenance'])
|
2020-10-04 01:44:12 +08:00
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.recycle_bin') }}</h2>
|
|
|
|
|
2022-11-01 00:45:32 +08: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-04 01:44:12 +08:00
|
|
|
</div>
|
2022-11-01 00:45:32 +08:00
|
|
|
<div class="flex text-m-right min-width-m">
|
2020-10-04 01:44:12 +08: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() !!}
|
2023-01-29 00:06:11 +08:00
|
|
|
<button type="submit" class="text-link small delete text-item">{{ trans('common.confirm') }}</button>
|
2020-10-04 01:44:12 +08:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr class="mt-l mb-s">
|
|
|
|
|
2022-11-01 00:45:32 +08:00
|
|
|
<div class="py-m">
|
|
|
|
{!! $deletions->links() !!}
|
|
|
|
</div>
|
2020-10-04 01:44:12 +08:00
|
|
|
|
2022-11-01 00:45:32 +08: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-04 01:44:12 +08:00
|
|
|
@if(count($deletions) === 0)
|
2022-11-01 00:45:32 +08: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-04 01:44:12 +08:00
|
|
|
@endif
|
|
|
|
@foreach($deletions as $deletion)
|
2022-11-01 00:45:32 +08:00
|
|
|
@include('settings.recycle-bin.parts.recycle-bin-list-item', ['deletion' => $deletion])
|
2020-10-04 01:44:12 +08:00
|
|
|
@endforeach
|
2022-11-01 00:45:32 +08:00
|
|
|
</div>
|
2020-10-04 01:44:12 +08:00
|
|
|
|
2022-11-01 00:45:32 +08:00
|
|
|
<div class="py-m">
|
|
|
|
{!! $deletions->links() !!}
|
|
|
|
</div>
|
2020-10-04 01:44:12 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@stop
|