@extends('layouts.config_dashboard.app')

@section('content')
    <div class="container-fluid mt-4 ">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body mt-1">
                        <form action="{{ route('IP.update',$ip->id) }}" method="post">
                            @csrf
                            @method('PUT')
                            <div class="form-group mb-1">
                                <label for="type">Ip Adresse </label>
                                <input type="text" name="ip" value="{{ $ip->ip }}" required class="form-control @error('ip') is-invalid @enderror">
                                @error('ip')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group mb-1">
                                <label for="type">description </label>
                                <input type="text" name="description" value="{{ $ip->description }}" required class="form-control @error('description') is-invalid @enderror">
                                @error('description')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            {{-- <div class="form-group mb-1">
                                <label for="type">Ip Adresse </label>
                                <select name="status" class="form-select" id="">
                                    <option value="0"></option>
                                    <option value=""></option>

                                </select>
                                <input type="text" name="ip" value="{{ $ip->ip }}" required class="form-control @error('ip') is-invalid @enderror">
                                @error('ip')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div> --}}

                            <div class="modal-footer">
                                <button type="submit" class="btn btn-success">Modifier</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
