{% extends "home/header.html" %} {% block content %} {% load custom_tags %} Back {% if 'faculty' in request.session %}

{{ studnt_data.name }}

Gender: {% if studnt_data.gender == 1 %}{{ 'Male' }}{% else %}{{ 'Female' }}{% endif %}
Mother's Name: {{ studnt_data.mother_name }}
Univ Roll No.: {{ studnt_data.roll_no }}
E-mail: {{ studnt_data.email }}
Phone No.: {{ studnt_data.phone }}

Attendance Day-wise:

{% for attendance in attendance_data %} {% if attendance.faculty == request.session.faculty %}

{{ forloop.counter }}{{attendance.attendance_date}}

{% with attendance.student|split:"," as attndnc %} {% with studnt_data.pk|int_to_str as studnt_id %} {% if studnt_id in attndnc %}

{{ ' Present ' }}

{% else %}

{{ ' Absent ' }}

{% endif %} {% endwith %} {% endwith %} {% endif %}
{% endfor %}
{% else %}

You are not authorised to access the page.

{% endif %} {% endblock %}