@extends('backEnd.master') @section('title') @lang('system_settings.backup_settings') @endsection @push('css') @endpush @section('mainContent')
{{-- @if (isset($sms_dbs)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'url' => 'session/'.@$session->id, 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else --}} @if (userPermission('backup-store')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'backup-store', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @endif {{-- @endif --}}

@lang('system_settings.upload_from_local_directory')

{{-- DEMO LIVE --}} {{-- --}} @php $tooltip = ''; if (userPermission('backup-store')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('system_settings.database_backup_list')

{{--
--}} {{-- DEMO LIVE --}} @if (Illuminate\Support\Facades\Config::get('app.app_sync')) @else @if (userPermission('get-backup-files')) @lang('system_settings.generate_file_backup') @endif @if (userPermission('get-backup-db')) @lang('system_settings.database_backup') @endif @endif
@foreach ($sms_dbs as $sms_db) @endforeach
@lang('system_settings.size') @lang('system_settings.created_date_time') @lang('system_settings.backup_files') @lang('system_settings.file_type') @lang('common.action')
@php if (file_exists(@$sms_db->source_link)) { @$size = filesize(@$sms_db->source_link); @$units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; @$power = @$size > 0 ? floor(log(@$size, 1024)) : 0; echo number_format(@$size / pow(1024, @$power), 2, '.', ',') . ' ' . @$units[@$power]; } else { echo 'File already deleted.'; } @endphp {{ @$sms_db->created_at != '' ? dateConvert(@$sms_db->created_at) : '' }} {{ @$sms_db->file_name }} @php if (@$sms_db->file_type == 0) { echo 'Database'; } elseif (@$sms_db->file_type == 1) { echo 'Images'; } else { echo 'Whole Project'; } @endphp @if (userPermission('download-files')) @lang('common.download') @endif @if (@$sms_db->file_type == 10) @lang('system_settings.restore') @endif @if (userPermission('delete_database')) @lang('common.delete') @endif
@endsection