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

73 lines
1.9 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
{{-- 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>
<th></th>
</thead>
<tbody>
@foreach ($files as $file)
<tr>
<td><a href="backups/download/{{ $file['filename'] }}">{{ $file['filename'] }}</a></td>
<td>{{ date("M d, Y g:i A", $file['modified']) }} </td>
<td>{{ $file['filesize'] }}</td>
<td>
{{ Helper::generateDatatableButton(
'delete',
route('settings/delete-file', $file['filename']),
config('app.lock_passwords'),
trans('admin/settings/message.backup.delete_confirm'),
$file['filename']
)
}}
</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>
<button class="btn btn-default {{ (config('app.lock_passwords')) ? ' disabled': '' }}">{{ trans('admin/settings/general.generate_backup') }}</button>
</p>
@if (config('app.lock_passwords'))
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
@endif
</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