{{-- <table class="table table-sm table-condensed table-striped table-sm">
    <thead>
        <tr class="table-secondary">
            <th><div align="center">ID</div></th>    
            <th>Descripción</th>
        </tr>
    </thead>
    <tbody>
        @foreach ($ciudades as $ciudad)
        <tr>
            <td width=10% align="center">{{$ciudad->idciudad}}</td>
            <td>{{$ciudad->nombre}}</td>
        </tr>
        @endforeach
    </tbody>
</table> 
<span>cant reg. {{$ciudad->count()}}</span> --}}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {{--  <title>e-SIGR</title>  --}}
    <!--<title> Document DGRP </title>-->
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <style>
        html {
            min-height: 100%;
            position: relative;
        }

        body {
            margin: 50px;
            border: 2cm;
            margin: 1cm;
            margin-bottom: 40px;
        }

        h1 {
            text-align: center;
        }

        h2 {
            text-align: center;
        }

        h3 {
            text-align: center;
        }

        img {
            display: block;
            margin: auto;
        }

        table {
            border-bottom: 1px solid rgb(138, 134, 134);
            width: 100%;
        }

        th {
            text-align: left;
            border-bottom: 1px solid rgb(138, 134, 134);
        }

        td {
            text-align: left;
        }

        /* footer  {margin: 50px; border:2cm; margin:1cm;} */
        /* footer  {
                        background-color: rgb(92, 87, 87);
                        margin-top:21cm;
                        position: absolute;
                        bottom: 0;
                        width: 100%;
                        height: 40px;
                        color: white;
                    } */
    </style>

</head>

<body>
    <header>
        {{--  <img src="{{ public_path('/images/logoCSJ_DGRP.jpg') }}" >   --}}
        @csrf
        <div class='row'>
            <div class="form-group col-sm-12">
                {{--  <img src="{{ public_path('/images/logoCSJ_DGRP.jpg') }}" width="200px" height="50">  --}}
            </div>
            <div class="form-group col-sm-6">
                Usuario: {{ auth()->user()->usuario }}
            </div>
            <hr>
        </div>
    </header>
    <!-- Brand Logo CORTE ESIGR-->
    {{-- <h3 style=" font-size:3rem">e-SIGR</h3> --}}
    {{-- <img src="{{ public_path('/images/logoCSJ_DGRP.jpg') }}" width="600px" height="60"> --}}
    {{--  <h1>Dirección General de los Registros Públicos</h1>  --}}
    {{-- <div class='row'>
        @php
           $nombrelistado= explode('.', Request::route()->getName())[0];
           echo  '<h2> Listado de '. $nombrelistado.'</h2>'
        @endphp
    </div> --}}
    <table>
        <table>
            @foreach ($ciudades as $row)
                @if ($loop->first)
                    <tr>
                        @foreach ($row as $key => $value)
                            <th>{!! $key !!}</th>
                        @endforeach
                    </tr>
                @endif
                <tr>
                    @foreach ($ciudades as $ciudad)
                <tr>
                    <td width=10% align="center">{{ $ciudad->idciudad }}</td>
                    <td>{{ $ciudad->nombre }}</td>
                </tr>
            @endforeach
            </tr>
            @endforeach
            <tr></tr>
        </table>
        <tfoot>
            <tr></tr>
            <tr>
                <td colspan="5">
                    <strong>Registros listados: {!! count($ciudades) !!}</strong>
                    <h3>** Fin del informe **</h3>
                    {{--  <strong></strong>  --}}
                </td>
            </tr>
        </tfoot>
</body>

</html>
