<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <title>{{ _('access_requests') }}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container mt-5">
    <div class="card shadow p-4">
        <div class="d-flex justify-content-between align-items-center mb-3">
            <h2 class="mb-0 text-primary"><i class="bi bi-list-check me-2"></i>{{ _('access_requests') }}</h2>
            <a href="{{ url_for('home') }}" class="btn btn-secondary"><i class="bi bi-arrow-left me-1"></i>{{ _('back') }}</a>
        </div>
        <table class="table table-bordered table-hover table-striped align-middle">
            <thead class="table-dark">
                <tr>
                    <th>{{ _('id') }}</th>
                    <th>{{ _('user') }}</th>
                    <th>{{ _('reason') }}</th>
                    <th>{{ _('time') }}</th>
                    <th>{{ _('status') }}</th>
                    <th class="text-center">{{ _('action') }}</th>
                </tr>
            </thead>
            <tbody>
                {% for istek in istekler %}
                <tr>
                    <td>{{ istek.id }}</td>
                    <td>{{ istek.kullanici }}</td>
                    <td>{{ istek.neden }}</td>
                    <td>{{ istek.zaman }}</td>
                    <td>{{ istek.durum }}</td>
                    <td class="text-center">
                        <button class="btn btn-sm btn-success me-1" disabled><i class="bi bi-check-circle me-1"></i>{{ _('grant_access') }}</button>
                        <button class="btn btn-sm btn-danger" disabled><i class="bi bi-x-circle me-1"></i>{{ _('reject') }}</button>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
</body>
</html> 