{% extends 'base.html' %}
{% load static %}

{% block title %}Parent Portal - Rapha-Bethel BNPS{% endblock %}

{% block content %}
<div class="container-fluid">
    <h1 class="h3 mb-4 text-gray-800">Parent Portal</h1>

    <div class="row">
        {% for student in students %}
        <div class="col-md-6 mb-4">
            <div class="card shadow">
                <div class="card-header">
                    <h5 class="mb-0">{{ student.first_name }} {{ student.last_name }}</h5>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-6">
                            <p><strong>Class:</strong> {{ student.current_class }}</p>
                            <p><strong>Student ID:</strong> {{ student.student_id }}</p>
                            <p><strong>Attendance:</strong> 85% this month</p>
                        </div>
                        <div class="col-md-6">
                            <p><strong>Fee Status:</strong> <span class="badge bg-success">Paid</span></p>
                            <p><strong>Next Payment:</strong> 15 Jan 2026</p>
                            <a href="#" class="btn btn-sm btn-primary">View Details</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {% empty %}
        <div class="col-12">
            <p class="text-center">No students linked to your account</p>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %}