<commit_before>{% extends 'EVTIntranetBundle::layout.html.twig' %}
{% block content %}
    <!-- BEGIN CONTAINER -->
    <div class="page-container">
    <!-- BEGIN SIDEBAR -->
    <div class="page-sidebar-wrapper">
    <div class="page-sidebar navbar-collapse collapse">
    <!-- BEGIN SIDEBAR MENU -->
{{ knp_menu_render('EVTIntranetBundle:Builder:mainMenu', {'currentClass': 'active', 'template': 'EVTIntranetBundle:Menu:metronic_menu.html.twig'}) }}
    <!-- END SIDEBAR MENU -->
    </div>
    </div>
    <!-- END SIDEBAR -->
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE HEADER-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title">Leads</h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li>
                            <i class="fa fa-exchange"></i>
                            <a href="/">Leads</a>
                        </li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-md-12">
					<!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box grey">
						<div class="portlet-title">
							<div class="caption">Leads</div>
						</div>
						<div class="portlet-body flip-scroll">
						{% if leads|length > 0 %}
							<table class="table table-bordered table-striped table-condensed flip-content">
							<thead class="flip-content">
							<tr>
							    <th>Vertical</th>    
						        <th>Provider</th>
								<th>Name</th>
								<th>Email</th>
								<th>Phone</th>
								<th>Event Type</th>
								<th>Event Date</th>
								<th>Event Location</th>
								<th>&nbsp;</th>
							</tr>
							</thead>
							<tbody>
							{% for lead in leads %}
							<tr>
								<td>{{ lead.showroom.vertical.domain }}</td>
							    <td>{{ lead.showroom.provider.name }}</td>
								<td>{{ lead.personal_info.name }}</td>
								<td>{{ lead.email.email }}</td>
								<td>{{ lead.personal_info.phone }}</td>
								<td>{{ lead.event.type.name }}</td>
								<td>{{ lead.event.date }}</td>
							    <td>{{ lead.event.location.admin_level1 }} ({{ lead.event.location.admin_level2 }})</td>
                                <td class="highlight">
									<a href="/leads/{{ lead.id }}"  class="btn default btn-xs green-stripe">details</a>
								</td>
						    </tr>
							{% endfor %}
							</tbody>
							</table>
						{% else %}<commit_msg>[#AE-10] - Differentiate between rean and not<commit_after>{% extends 'EVTIntranetBundle::layout.html.twig' %}
{% block content %}
    <!-- BEGIN CONTAINER -->
    <div class="page-container">
    <!-- BEGIN SIDEBAR -->
    <div class="page-sidebar-wrapper">
    <div class="page-sidebar navbar-collapse collapse">
    <!-- BEGIN SIDEBAR MENU -->
{{ knp_menu_render('EVTIntranetBundle:Builder:mainMenu', {'currentClass': 'active', 'template': 'EVTIntranetBundle:Menu:metronic_menu.html.twig'}) }}
    <!-- END SIDEBAR MENU -->
    </div>
    </div>
    <!-- END SIDEBAR -->
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE HEADER-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title">Leads</h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li>
                            <i class="fa fa-exchange"></i>
                            <a href="/">Leads</a>
                        </li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-md-12">
					<!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box grey">
						<div class="portlet-title">
							<div class="caption">Leads</div>
						</div>
						<div class="portlet-body flip-scroll">
						{% if leads|length > 0 %}
							<table class="table table-bordered table-striped table-condensed flip-content">
							<thead class="flip-content">
							<tr>
							    <th>Vertical</th>    
						        <th>Provider</th>
								<th>Name</th>
								<th>Email</th>
								<th>Phone</th>
								<th>Event Type</th>
								<th>Event Date</th>
								<th>Event Location</th>
								<th>&nbsp;</th>
							</tr>
							</thead>
							<tbody>
							{% for lead in leads %}
							<tr {% if lead.read_at is not defined  %}class="success"{% endif %}>
								<td>{{ lead.showroom.vertical.domain }}</td>
							    <td>{{ lead.showroom.provider.name }}</td>
								<td>{{ lead.personal_info.name }}</td>
								<td>{{ lead.email.email }}</td>
								<td>{{ lead.personal_info.phone }}</td>
								<td>{{ lead.event.type.name }}</td>
								<td>{{ lead.event.date }}</td>
							    <td>{{ lead.event.location.admin_level1 }} ({{ lead.event.location.admin_level2 }})</td>
                                <td class="highlight">
									<a href="/leads/{{ lead.id }}"  class="btn default btn-xs green-stripe">
									{% if lead.read_at is not defined  %}
									read
									{% else %}
									details
									{% endif %}
									</a>
								</td>
						    </tr>
							{% endfor %}
							</tbody>
							</table>
						{% else %}
{'fraction_non_alphanumeric': 0.18089216719353707, 'fraction_numerical': 0.0035124692658939235, 'mean_word_length': 1.5745931283905967, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '13446', 'n_tokens_mistral': 2376, 'n_tokens_neox': 1723, 'n_words': 354}