<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
        integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" href="css/estilosPdf.css">
    <title>Listado de la calendarización</title>
</head>

<body>

    <style>
        @page {
            margin: 0cm 0cm;
        }

        body {
            font-family: sans-serif;
            margin-top: 2cm;
            margin-bottom: 2cm;
            margin-left: 2cm;
            margin-right: 2cm;
        }

        header {
            position: fixed;
            top: 0cm;
            left: 0cm;
            right: 0cm;
            height: 2cm;
            text-align: center;
            line-height: 30px;

        }

        footer {
            position: fixed;
            bottom: 0cm;
            left: 0cm;
            right: 0cm;
            height: 2cm;
            text-align: center;
            line-height: 35px;
        }
    </style>
    <header>
        <img src="https://academico.zitacuaro.tecnm.mx/img/encabezado_pie/{{ $enca->encabezado_encpie }}" width="90%"
            alt="">

    </header>
    <h1 class="text-center">Listado de la calendarización</h1>
    <table class="table table-striped">
        <thead>
            <tr>
                <th scope="col">No</th>
                <th scope="col">Periodo</th>
                <th scope="col">Fecha de creación</th>
            </tr>
        </thead>
        <tbody>
            @foreach ($calenda as $ca)
                <tr>
                    <td scope="row text-center">{{ $loop->iteration }}</td>
                    <td scope="row">{{ $ca->periodos->nombre }}</td>
                    @php
                        $fecha = date('d-m-Y H:i:s', strtotime($ca->created_at));
                    @endphp
                    <td scope="row">{{ $fecha }}</td>
                </tr>
            @endforeach
        </tbody>
    </table>

</body>

</html>
