@if (empty($data))
    <div class="col-md-12 text-center">---- @traducir('No se encontraron resultados', 'No se encontraron resultados') ----
    </div>
@else
    <link rel="stylesheet" type="text/css" href="../components/flag-icon-css-master/css/flag-icon.min.css">
    <table class="table table-hover table-condensed" id="tablaBusqueda">
        <thead>
            <tr class="bg-fidelitas bg-gradient text-light">
                <th class="text-center">@traducir('País', 'País')</th>
                <th class="text-center">@traducir('Nombre', 'Nombre')</th>
                <th class="text-center">@traducir('Tipo', 'Tipo')</th>
                <th class="text-center">@traducir('Identificación', 'Identificación')</th>
            </tr>
        </thead>
        <tbody>
            @foreach($data as $k => $persona)
                <tr class="prow" data-id-padron="{{ $persona->id_padron }}">
                    <td class="text-center"><span
                            class="flag-icon flag-icon-background flag-icon-{{ strtolower($persona->country_code) }}"></span>
                    </td>
                    <td class="text-start">{{ $persona->nombre_persona }}</td>
                    <td class="text-center">{{ $persona->abreviatura }}</td>
                    <td class="text-center">{{ $persona->identificacion }}</td>
                </tr>
            @endforeach
        </tbody>
    </table>
    <style>
        .prow {
            cursor: pointer;
        }

        .prow:hover {
            text-decoration: underline;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            padronBusquedaContrapartes();
        });
    </script>
@endif