2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-03-05 00:03:49 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
|
|
|
|
2017-09-26 02:43:01 +00:00
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2017-03-05 00:03:49 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Server — {{ $server->name }}: Delete
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>{{ $server->name }}<small>Delete this server from the panel.</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li><a href="{{ route('admin.servers') }}">Servers</a></li>
|
|
|
|
<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>
|
|
|
|
<li class="active">Delete</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2019-12-17 05:14:27 +00:00
|
|
|
@include('admin.servers.partials.navigation')
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="row">
|
2017-04-28 14:25:50 +00:00
|
|
|
<div class="col-md-6">
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Safely Delete Server</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>This action will attempt to delete the server from both the panel and daemon. If either one reports an error the action will be cancelled.</p>
|
|
|
|
<p class="text-danger small">Deleting a server is an irreversible action. <strong>All server data</strong> (including files and users) will be removed from the system.</p>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<form action="{{ route('admin.servers.view.delete', $server->id) }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button type="submit" class="btn btn-danger">Safely Delete This Server</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-28 14:25:50 +00:00
|
|
|
<div class="col-md-6">
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="box box-danger">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Force Delete Server</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2018-06-30 20:25:51 +00:00
|
|
|
<p>This action will attempt to delete the server from both the panel and daemon. If the daemon does not respond, or reports an error the deletion will continue.</p>
|
2017-03-05 00:03:49 +00:00
|
|
|
<p class="text-danger small">Deleting a server is an irreversible action. <strong>All server data</strong> (including files and users) will be removed from the system. This method may leave dangling files on your daemon if it reports an error.</p>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<form action="{{ route('admin.servers.view.delete', $server->id) }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
2017-04-01 02:12:31 +00:00
|
|
|
<input type="hidden" name="force_delete" value="1" />
|
2017-03-05 00:03:49 +00:00
|
|
|
<button type="submit" class="btn btn-danger">Forcibly Delete This Server</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
<script>
|
|
|
|
$('form[data-action="delete"]').submit(function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
swal({
|
|
|
|
title: '',
|
|
|
|
type: 'warning',
|
|
|
|
text: 'Are you sure that you want to delete this server? There is no going back, all data will immediately be removed.',
|
|
|
|
showCancelButton: true,
|
|
|
|
confirmButtonText: 'Delete',
|
|
|
|
confirmButtonColor: '#d9534f',
|
|
|
|
closeOnConfirm: false
|
|
|
|
}, function () {
|
|
|
|
event.target.submit();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|