{% extends 'base.html.twig' %}

{% block title %}KingNotification index{% endblock %}

{% block body %}
    <h1>KingNotification index</h1>

    <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>Title</th>
                <th>Message</th>
                <th>Type</th>
                <th>IsRead</th>
                <th>DateCreated</th>
                <th>actions</th>
            </tr>
        </thead>
        <tbody>
        {% for king_notification in king_notifications %}
            <tr>
                <td>{{ king_notification.id }}</td>
                <td>{{ king_notification.title }}</td>
                <td>{{ king_notification.message }}</td>
                <td>{{ king_notification.type }}</td>
                <td>{{ king_notification.isRead ? 'Yes' : 'No' }}</td>
                <td>{{ king_notification.dateCreated ? king_notification.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
                <td>
                    <a href="{{ path('app_king_notification_show', {'id': king_notification.id}) }}">show</a>
                    <a href="{{ path('app_king_notification_edit', {'id': king_notification.id}) }}">edit</a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="7">no records found</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <a href="{{ path('app_king_notification_new') }}">Create new</a>
{% endblock %}
