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

{% block body %}
    <h1>MAC LİSTESİ</h1>

    <ul>
        <li>
            <a href="{{ path('mac_new') }}">Yeni Mac Ekle</a>
        </li>
    </ul>
    <table>
        <thead>
        <tr>
            <th>Id</th>
            <th>MAC</th>
            <th>Email</th>
            <th>İşlemler</th>
        </tr>
        </thead>
        <tbody>
        {% for mac in macs %}
            <tr>
                <td><a href="{{ path('mac_show', { 'id': mac.id }) }}">{{ mac.id }}</a></td>
                <td>{{ mac.value }}</td>
                <td>{{ mac.product.person.email }}</td>
                <td>
                    <ul>
                        <li>
                            <a href="{{ path('mac_show', { 'id': mac.id }) }}">Göster</a>
                        </li>
                        <li>
                            <a href="{{ path('mac_edit', { 'id': mac.id }) }}">Düzenle</a>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

{% endblock %}
