@extends('Templates/templateAdmin')

@section('Main-content')
<br><br>
<div class="card">
    <div class="card-body">

        <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" value="{{$pend_users->pending_name}}" readonly>
              
            </div>

            <div class="form-group">
                <label for="email">E-mail:</label>
                <input type="email" class="form-control" id="email" name="email" value="{{$pend_users->pending_email}}" readonly>
              
            </div>

            <div class="form-group">
                <label for="user_phone">Telemovel:</label>
                <input type="number" class="form-control" id="user_phone" name="user_phone" value="{{$pend_users->pending_phone}}" readonly>
              
            </div>

            <div class="form-group">
                <label for="user_nif">NIF:</label>
                <input type="text" class="form-control" id="user_nif" name="user_nif" value="{{$pend_users->pending_nif}}" readonly>
            </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>
            </div> --}}
            <div class="form-group">
                <label for="user_type">Tipo de usuário:</label>
                <select class="form-control" name="user_type" id="user_type">
                    @foreach($types as $type)
                        <option value="{{ $type->id }}">{{ $type->type }}</option>
                    @endforeach
                </select>
            </div>

            <div class="form-group">
                <label for="password">Senha:</label>
                <input type="password" class="form-control" id="password" name="password" value="{{$pend_users->pending_password}}" readonly>
              
            </div>
            <button type="submit" class="btn btn-primary btn-block">Registrar</button>
        </form>
    </div>
</div>
   
@endsection
