Path: blob/1.0-develop/resources/views/admin/servers/view/delete.blade.php
7461 views
@extends('layouts.admin')12@section('title')3Server — {{ $server->name }}: Delete4@endsection56@section('content-header')7<h1>{{ $server->name }}<small>Delete this server from the panel.</small></h1>8<ol class="breadcrumb">9<li><a href="{{ route('admin.index') }}">Admin</a></li>10<li><a href="{{ route('admin.servers') }}">Servers</a></li>11<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>12<li class="active">Delete</li>13</ol>14@endsection1516@section('content')17@include('admin.servers.partials.navigation')18<div class="row">19<div class="col-md-6">20<div class="box">21<div class="box-header with-border">22<h3 class="box-title">Safely Delete Server</h3>23</div>24<div class="box-body">25<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>26<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>27</div>28<div class="box-footer">29<form id="deleteform" action="{{ route('admin.servers.view.delete', $server->id) }}" method="POST">30{!! csrf_field() !!}31<button id="deletebtn" class="btn btn-danger">Safely Delete This Server</button>32</form>33</div>34</div>35</div>36<div class="col-md-6">37<div class="box box-danger">38<div class="box-header with-border">39<h3 class="box-title">Force Delete Server</h3>40</div>41<div class="box-body">42<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>43<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>44</div>45<div class="box-footer">46<form id="forcedeleteform" action="{{ route('admin.servers.view.delete', $server->id) }}" method="POST">47{!! csrf_field() !!}48<input type="hidden" name="force_delete" value="1" />49<button id="forcedeletebtn"" class="btn btn-danger">Forcibly Delete This Server</button>50</form>51</div>52</div>53</div>54</div>55@endsection5657@section('footer-scripts')58@parent59<script>60$('#deletebtn').click(function (event) {61event.preventDefault();62swal({63title: '',64type: 'warning',65text: 'Are you sure that you want to delete this server? There is no going back, all data will immediately be removed.',66showCancelButton: true,67confirmButtonText: 'Delete',68confirmButtonColor: '#d9534f',69closeOnConfirm: false70}, function () {71$('#deleteform').submit()72});73});7475$('#forcedeletebtn').click(function (event) {76event.preventDefault();77swal({78title: '',79type: 'warning',80text: 'Are you sure that you want to delete this server? There is no going back, all data will immediately be removed.',81showCancelButton: true,82confirmButtonText: 'Delete',83confirmButtonColor: '#d9534f',84closeOnConfirm: false85}, function () {86$('#forcedeleteform').submit()87});88});89</script>90@endsection919293