@extends('layouts.app')

@section('content')
<div class="container-fluid">
  <div class="content-header">
    <h1>Deleting server</h1>
  </div>
  <div class="card card-primary card-outline">
    <div class="card-body">
      @if ($server == null)
        {{ __('Server not found') }}
      @else
        <form class="ui stackable form" method="POST" action="">
            <div class="alert alert-danger">
              Deleting {{ $server->name }} will delete its zones from zCloud's database.
            </div>
            <input type="hidden" name="server_id" value="{{ $server->id }}">
            @csrf
            <input type="submit" class="btn btn-primary" value="Delete">
        </form>
      @endif
    </div>
  </div>
</div>
<script>
  $(document).ready(function()
  {
    $('#menu-servers').addClass('active');
  });
</script>
@endsection
 
