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

{% block body %}
    <h1>Alış Fiyat Listesi</h1>
    <ul>
        <li>
            <a class="buttonSubmit" href="{{ path('producthistory_new') }}">Yeni Kayıt</a>
        </li>
    </ul>
    <table>
        <thead>
            <tr>
                <th>Eklenme Tarihi</th>
                <th>Fiyat</th>
                <th>İşlemler</th>
            </tr>
        </thead>
        <tbody>
        {% for productHistory in productHistories %}
            <tr>

                <td>{% if productHistory.creationDate %}{{ productHistory.creationDate|date('Y-m-d H:i:s') }}{% endif %}</td>

                <td>{{ productHistory.price }}</td>
                <td>
                    <ul>
                        <li>
                            <a href="{{ path('producthistory_show', { 'id': productHistory.id }) }}">Göster</a>
                        </li>
                        <li>
                            <a href="{{ path('producthistory_edit', { 'id': productHistory.id }) }}">Düzenle</a>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>


{% endblock %}
