@extends('layouts.app')

@section('content')

<div class="container-fluid">
  <div class="content-header text-center">
    <h1>Delete cluster</h1>
  </div>

    <div class="card card-primary card-outline">
      <div class="card-body">
        @if (!$cluster)
            {{ __('Cluster not found') }}
        @else
            @if ($servers_count == 0)
                <form class="text-center" method="POST" action="">
                    @csrf
                    <input type="submit" class="btn btn-primary" value="Delete cluster {{ $cluster->name }}">
                </form>
            @else
               {{ __('You have to manually remove all servers in this cluster before deleting this cluster.')  }}
            @endif 
        @endif
      </div>
    </div>
</div>
@endsection
 
