<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Registro</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
        integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>

<body>

    <div class="container d-flex justify-content-center align-items-center" style="height: 100vh;">
        <div class="card">
            <div class="card-body">
                <h1 class="card-title text-center mb-4">Registro</h1>

                <form method="POST" action="{{ route('register') }}">
                    @csrf

                    <div class="form-group">
                        <label for="name">Nome:</label>
                        <input type="text" class="form-control" id="name" name="name" required autofocus>
                        @error('name')
                            <p>{{ $message }}</p>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="email">E-mail:</label>
                        <input type="email" class="form-control" id="email" name="email" required>
                        @error('email')
                            <p>{{ $message }}</p>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="user_phone">Telemovel:</label>
                        <input type="number" class="form-control" id="user_phone" name="user_phone" required>
                        @error('user_phone')
                            <p>{{ $message }}</p>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="user_nif">NIF:</label>
                        <input type="text" class="form-control" id="user_nif" name="user_nif" required>
                        @error('Nif')
                            <p>{{ $message }}</p>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="user_type">Tipo de usuário:</label>
                        <select class="form-control" name="user_type" id="user_type">
                            <option value="Cliente" selected>Cliente</option>
                            <option value="Administrador">Administrador</option>
                            <option value="Super_Administrador">Super Administrador</option>
                            <option value="Gestor_Obra">Gestor Obra</option>
                            <option value="Tecnicos">Tecnicos</option>
                            <option value="inspetor">inspetor</option>
                        </select>
                        {{-- @error('user_type')
                            <p>{{ $message }}</p>
                        @enderror --}}
                    </div>



                    <div class="form-group">
                        <label for="password">Senha:</label>
                        <input type="password" class="form-control" id="password" name="password" required>
                        @error('password')
                            <p>{{ $message }}</p>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="password_confirmation">Confirme sua senha:</label>
                        <input type="password" class="form-control" id="password_confirmation"
                            name="password_confirmation" required>
                    </div>

                    <button type="submit" class="btn btn-primary btn-block">Registrar</button>
                </form>
            </div>
        </div>
    </div>

    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
        integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
        integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNSliKT" crossorigin="anonymous">
    </script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity
