<div class="container py-4">
    <div class="row justify-content-center">
        <div class="col-md-8">
            {ADMIN_BREADCRUMBS}
            <div class="card shadow">
                <!-- Card Header -->
                <div class="card-header text-center bg-dark text-white">
                    <h3 class="card-title mb-0">{username}</h3>
                </div>

                <!-- Card Body -->
                <div class="card-body">
                    <div class="row align-items-center">
                        <!-- User Image -->
                        <div class="col-md-4 text-center">
                            <img src="{ROOT_URL}{avatar}" alt="User Pic" class="rounded-circle img-fluid" style="max-width: 150px;">
                        </div>

                        <!-- User Details -->
                        <div class="col-md-8">
                            <table class="table table-borderless">
                                <tbody>
                                    {ADMIN}
                                    <tr>
                                        <th scope="row">Confirmed:</th>
                                        <td>{confirmedText}</td>
                                    </tr>
									<tr>
										<th scope="row">Group:</th>
										<td><a href="{ROOT_URL}admin/groups/view/{userGroup}">{groupName}</a></td>
									</tr>
                                    {/ADMIN}
                                    <tr>
                                        <th scope="row">Registered:</th>
                                        <td>{DTC}{registered}{/DTC}</td>
                                    </tr>
                                    <tr>
                                        <th scope="row">Last Seen:</th>
                                        <td>{DTC}{lastLogin}{/DTC}</td>
                                    </tr>
                                    <tr>
                                        <th scope="row">Gender:</th>
                                        <td>{gender}</td>
                                    </tr>
                                    {ADMIN}
                                    <tr>
                                        <th scope="row">Email:</th>
                                        <td><a href="mailto:{email}">{email}</a></td>
                                    </tr>
                                    <tr>
                                        <th scope="row">User ID:</th>
                                        <td>{ID}</td>
                                    </tr>
                                    {/ADMIN}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <!-- Admin Controls -->
                <div class="card-footer text-center">
                    {ADMIN}
                    <a href="{ROOT_URL}messages/create?prepopuser={USERNAME}" class="btn btn-primary btn-sm me-2" data-bs-toggle="tooltip" title="Broadcast Message">
                        <i class="fa fa-fw fa-envelope"></i>
                    </a>
                    <a href="{ROOT_URL}admin/users/edit/{ID}" class="btn btn-warning btn-sm me-2" data-bs-toggle="tooltip" title="Edit User">
                        <i class="fa fa-fw fa-pencil"></i>
                    </a>
                    <a href="{ROOT_URL}admin/users/delete/{ID}" class="btn btn-danger btn-sm" data-bs-toggle="tooltip" title="Delete User">
                        <i class="fa fa-fw fa-trash"></i>
                    </a>
                    {/ADMIN}
                </div>
            </div>
        </div>
    </div>
</div>
