Размер файла: 1.17Kb
@extends('layout')
@section('title')
{{ __('index.backup') }}
@stop
@section('header')
@if (getUser())
<div class="float-right">
<a class="btn btn-success" href="/admin/backups/create">{{ __('admin.backup.create_backup') }}</a><br>
</div><br>
@endif
<h1>{{ __('index.backup') }}</h1>
@stop
@section('breadcrumb')
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
<li class="breadcrumb-item active">{{ __('index.backup') }}</li>
</ol>
</nav>
@stop
@section('content')
@if ($files)
@foreach($files as $file)
<i class="fa fa-archive"></i> <b>{{ basename($file) }}</b> ({{ formatFileSize($file) }})
(<a href="/admin/backups/delete?file={{ basename($file) }}&token={{ $_SESSION['token'] }}">{{ __('main.delete') }}</a>)<br>
@endforeach
<br>{{ __('admin.backup.total_backups') }}: <b>{{ count($files) }}</b><br><br>
@else
{!! showError(__('admin.backup.empty_backups')) !!}
@endif
@stop