snipe-it/resources/views/settings/backups.blade.php

81 lines
2.5 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/settings/general.backups') }}
@parent
@stop
2017-07-07 23:44:48 -07:00
@section('header_right')
2020-04-01 03:25:07 -07:00
<a href="{{ route('settings.index') }}" class="btn btn-primary"> {{ trans('general.back') }}</a>
2017-07-07 23:44:48 -07:00
@stop
2016-03-25 01:18:05 -07:00
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-9">
<div class="box box-default">
<div class="box-body">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<th>File</th>
<th>Created</th>
<th>Size</th>
2020-04-01 03:25:07 -07:00
<th><span class="sr-only">{{ trans('general.delete') }}</span></th>
2016-03-25 01:18:05 -07:00
</thead>
<tbody>
@foreach ($files as $file)
<tr>
2020-08-28 18:22:37 -07:00
<td>
<a href="{{ route('settings.backups.download', [$file['filename']]) }}">
{{ $file['filename'] }}
</a>
</td>
<td>{{ date("M d, Y g:i A", $file['modified']) }} </td>
<td>{{ $file['filesize'] }}</td>
<td>
2017-06-09 12:44:11 -07:00
@can('superadmin')
<a data-html="false"
2017-07-07 23:44:48 -07:00
class="btn delete-asset btn-danger btn-sm {{ (config('app.lock_passwords')) ? ' disabled': '' }}" data-toggle="modal" href=" {{ route('settings.backups.destroy', $file['filename']) }}" data-content="{{ trans('admin/settings/message.backup.delete_confirm') }}" data-title="{{ trans('general.delete') }} {{ htmlspecialchars($file['filename']) }} ?" onClick="return false;">
2020-04-01 03:25:07 -07:00
<i class="fa fa-trash icon-white" aria-hidden="true"></i>
<span class="sr-only">{{ trans('general.delete') }}</span>
2017-06-09 12:44:11 -07:00
</a>
@endcan
</td>
</tr>
@endforeach
</tbody>
2016-03-25 01:18:05 -07:00
</table>
</div>
</div>
</div>
</div>
<!-- side address column -->
<div class="col-md-3">
<form method="POST">
{{ Form::hidden('_token', csrf_token()) }}
<p>
2020-04-01 03:25:07 -07:00
<button class="btn btn-primary {{ (config('app.lock_passwords')) ? ' disabled': '' }}">{{ trans('admin/settings/general.generate_backup') }}</button>
2016-03-25 01:18:05 -07:00
</p>
@if (config('app.lock_passwords'))
<p class="text-warning"><i class="fa fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
@endif
2016-03-25 01:18:05 -07:00
</form>
2016-05-12 16:20:23 -07:00
<p>Backup files are located in: {{ $path }}</p>
2016-03-25 01:18:05 -07:00
</div>
@stop