{% extends 'admin.html.twig' %} {% block content %}

{{ contact.getFullName }}

{% for contactField in contact.getContactForms() %} {% endfor %}
Imię i nazwisko {{contact.getFullName}}
Email {{contact.email}}
Telefon {{contact.phone}}
Źródło {{contact.getSource}}
Opiekun {{contact.user}}
Data dodania {{contact.createdAt|date('d.m.Y')}}
Opis {{contact.description}}
{{ contactField.clientForm.name}} {{contactField.value}}
{% for sale in contact.sales %} {% if (sale.salesStep.type == constant('nordmind\\AdminBundle\\Entity\\SalesStep::STEP_SUCCESS')) %} {% for product in sale.salesProducts %} {% endfor %} {% endif %} {% endfor %}
{{ product.product }} {{ sale.expectedDate|date('d.m.Y') }} {{ product.price|number_format(2, '.', ',') }}
{% for sale in contact.sales %} {% if (sale.salesStep.type == constant('nordmind\\AdminBundle\\Entity\\SalesStep::STEP_FAILURE')) %} {% for product in sale.salesProducts %} {% endfor %} {% endif %} {% endfor %}
{{ product.product }} {{ sale.expectedDate|date('d.m.Y') }} {{ product.price|number_format(2, '.', ',') }}
{% for sale in contact.sales %} {% if (sale.salesStep.type == constant('nordmind\\AdminBundle\\Entity\\SalesStep::STEP_MIDDLE')) %} {% for product in sale.salesProducts %} {% endfor %} {% endif %} {% endfor %}
{{ product.product }} {{ sale.expectedDate|date('d.m.Y') }} {{ product.price|number_format(2, '.', ',') }}

Historia klienta

{% for sale in contact.sales %} {% endfor %}
{{ sale.createdAt|date('d.m.Y') }} {{sale.description}}
{% endblock content %}