<table class="table">
    <thead>
        <tr>
            <th>NO</th>
            <th>NOMBRE</th>
            <th>CLAVE</th>
            <th>PLAN DE ESTUDIO</th>
        </tr>
    </thead>
    <tbody>
        @foreach ($mat as $m)
            <tr>
                <td>{{ $loop->iteration }}</td>
                <td>{{ $m->nombre_mat }}</td>
                <td>{{ $m->clave_mat }}</td>
                <td>{{ $m->planestudios->claveOfi_planest }}</td>
            </tr>
        @endforeach
    </tbody>
</table>
