<form class="row g-3 auto-width" action="{{ route('server.update', $data->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
     <!-- biling interval -->
     <div class="col-md-6">
        <label class="form-label">Server Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control"  name="server_name" aria-describedby="inputGroupPrepend" required placeholder="server name" value="{{$data->server_name}}">
        @if ($errors->has('server_name'))
        <span class="text-danger">{{ $errors->first('server_name') }}</span>
        @endif
        <span class="text-danger error_server_name" style="display: none;">This field is required.</span>
    </div>
    <!-- Login link -->
    <div class="col-md-6">
        <label class="form-label">Login Link <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control"  name="login_link" aria-describedby="inputGroupPrepend" required placeholder="Login Link" value="{{$data->login_link}}">
        @if ($errors->has('login_link'))
        <span class="text-danger">{{ $errors->first('login_link') }}</span>
        @endif
        <span class="text-danger error_login_link" style="display: none;">This field is required.</span>
    </div>
    <!-- Private link -->
    <div class="col-md-6">
        <label class="form-label">Private Link <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control"  name="private_link" aria-describedby="inputGroupPrepend" required placeholder="Private Link" value="{{$data->private_link}}">
        @if ($errors->has('private_link'))
        <span class="text-danger">{{ $errors->first('private_link') }}</span>
        @endif
        <span class="text-danger error_private_link" style="display: none;">This field is required.</span>
    </div>
    <!-- Server IP -->
    <div class="col-md-6">
        <label class="form-label">Server IP <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control"  name="server_ip" aria-describedby="inputGroupPrepend" required placeholder="Server IP" value="{{$data->server_ip}}">
        @if ($errors->has('server_ip'))
        <span class="text-danger">{{ $errors->first('server_ip') }}</span>
        @endif
        <span class="text-danger error_server_ip" style="display: none;">This field is required.</span>
    </div>
    <!-- User Name -->
    <div class="col-md-6">
        <label class="form-label">User Name </label>
        <input type="text" class="form-control"  name="user_name" aria-describedby="inputGroupPrepend" required placeholder="User Name" value="{{$data->user_name}}">
        @if ($errors->has('user_name'))
        <span class="text-danger">{{ $errors->first('user_name') }}</span>
        @endif
        <span class="text-danger error_user_name" style="display: none;">This field is required.</span>
    </div>
    <!-- Password -->
    <div class="col-md-6">
        <label class="form-label">Password </label>
        <input type="password" class="form-control"  name="password" aria-describedby="inputGroupPrepend" required placeholder="Password" value="{{$data->password}}">
        @if ($errors->has('password'))
        <span class="text-danger">{{ $errors->first('password') }}</span>
        @endif
        <span class="text-danger error_password" style="display: none;">This field is required.</span>
    </div>

</form>
