{% extends 'template-admin.html.twig' %}

{% block title %}{{ parent() }}{% endblock %}

{% block stylesheets %}
    {{ parent() }}

{% endblock %}


{% block javascripts  %}
    {{ parent() }}
{% endblock %}

{% block body %}
<div class="container-fluid py-4">
    <div class="row">
        <div class="card">
            <div class="card">
                <div class="card-body">
                    <div class="col-2">
                        <a href="{{ path('app_admin_empresa_add') }}" class="btn btn-primary text-uppercase shadow-none" style=" color: #fff;"><i class="ni ni-settings-gear-65"></i> Configurar dados da clínica</a>
                    </div>
                </div>

            </div>
            <div class="card-header">
                <h5 class="card-title text-uppercase bold">Dados da clínica</h5>
            </div>
            <!-- /.card-header -->
            <div class="card-body">
                <table id="example1" class="table table-bordered  table-hover">
                    <thead>
                    <tr>
                        <th><i class="fa fa-institution"></i> NOME DA EMPRESA</th>
                        <th><i class="fa fa-pen-nib"></i> NIF</th>
                        <th><i class="fa fa-map"></i> ENDEREÇO</th>
                        <th><i class="fa fa-phone"></i> CONTATO</th>
                        <th><i class="fa fa-image"></i> LOGOMARCA</th>
                        <th>Ações</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% for empre in empresa %}
                        <tr>
                            <td>{{ empre.nome }}</td>
                            <td>{{ empre.nif }}</td>
                            <td>{{ empre.Bairro.nome }}</td>
                            <td>{{ empre.telefone }}</td>
                            <td style="text-align: center;"><img src="{{ asset('images/' ~ empre.logomarca ) }}" width="170"></td>
                            <td>
                                <a href="#" class="btn btn-warning"><i class="ni ni-ruler-pencil"></i></a>
                            </td>
                        </tr>
                    {% endfor %}
                    </tbody>
                    {# <tfoot>
                     <tr>
                         <th>Rendering engine</th>
                         <th>Browser</th>
                         <th>Platform(s)</th>
                         <th>Engine version</th>
                         <th>CSS grade</th>
                     </tr>
                     </tfoot>#}
                </table>
            </div>
            <!-- /.card-body -->
        </div>
        <!-- /.card -->
    </div>
</div>
{% endblock %}
