@extends('Templates/templateAdmin')

@section('Main-content')

        <section class="content">

            <div class="container-fluid">
                <h1>Detalhes de User</h1>
                <div class="card">
                    <div class="card-header">
                        Detalhes do usuário :: {{ $user->name }}</div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered table-striped">
                                <tr>
                                    <th>ID</th>
                                    <td>{{ $user->user_id }}</td>
                                </tr>
                                <tr>
                                    <th>Nome</th>
                                    <td>{{ $user->user_name }}</td>
                                </tr>
                                <tr>
                                    <th>Email</th>
                                    <td>{{ $user->email }}</td>
                                </tr>
                                <tr>
                                    <th>Tipo de usuário</th>
                                    <td>{{ $user->user_type }}</td>
                                </tr>
                                <tr>
                                    <th>Telemovel</th>
                                    <td>{{ $user->user_phone }}</td>
                                </tr>
                                <tr>
                                    <th>NIF</th>
                                    <td>{{ $user->user_nif }}</td>
                                </tr>
                                <tr>
                                    <th>Criado em : </th>
                                    <td>{{ $user->created_at }}</td>
                                </tr>
                                <tr>
                                    <th>Atualizado em : </th>
                                    <td>{{ $user->updated_at }}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm">
                        </div>
                        <div class="col-sm">
                            <a href="{{ route('users.edit', ['id' => $user->user_id]) }}" class="btn btn-primary">Editar usuário</a>

                        </div>
                    </div>
                    
                </div>
            </div>
            {{-- /.container-fluid --}}

        </section>
        {{-- /.content --}}
    
   
@endsection
