{% extends 'base.html' %} {% block title %}HRMS - Tables at {{ restaurant.name }}{% endblock %} {% block styles %} {% endblock %} {% block content %}
{{ restaurant.name }}

{{ restaurant.address }}, {{ restaurant.city }} {{ restaurant.phone }}

Tables

{% for table_data in tables_data %}
Table {{ table_data.table.table_number }}
{% if table_data.table.status == 'available' %} Available {% else %} In Use {% endif %}
{% if table_data.reservation %}
Customer:
{{ table_data.user.full_name }}
Guests:
{{ table_data.reservation.guest_count }}
Date:
{{ table_data.reservation.reservation_date.strftime('%b %d, %Y') }}
{{ table_data.reservation.reservation_time.strftime('%I:%M %p') }}
Status:
{{ table_data.reservation.status | title }}
Edit
{% else %}

This table is available for reservation

Add
{% endif %}
{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}