@extends('layout.app')
@section('content')
    <form action="{{ route('accoutningServer.update', $server->id) }}" method="POST">
        @method('PUT')
        @csrf

        <div class="card">
            <div class="card-body">
                <div class="row">
                <div class="form-group col-md-4">
                    <label for="reseller_id" class="block text-sm font-medium text-gray-700">
                       Name*
                    </label>
                    <input type="text" name="name" id="name" class="form-control" placeholder=" name"
                    value="{{$server->name}}" autocomplete="off" required>
                </div>

                <div class="form-group col-md-4">
                    <label> Select POP </label>
                    <select name="is_enable" id="is_enable" class="select2 form-control ">
                        <option value="1" @if ($server->is_enable == 1) selected @endif>1</option>
                        <option value="0"@if ($server->is_enable == 0) selected @endif>0</option>
                    </select>
                </div>

            </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary float-right">
                        Save
                    </button>
                </div>
            </div>

        </div>

    </form>
@endsection

