<?php
/**
 * @var \App\View\AppView $this
 * @var iterable<\App\Model\Entity\CitasServicio> $citasServicios
 */
?>
<div class="citasServicios index content">
    <?= $this->Html->link(__('New Citas Servicio'), ['action' => 'add'], ['class' => 'button float-right']) ?>
    <h3><?= __('Citas Servicios') ?></h3>
    <div class="table-responsive">
        <table>
            <thead>
                <tr>
                    <th><?= $this->Paginator->sort('id') ?></th>
                    <th><?= $this->Paginator->sort('servicio_id') ?></th>
                    <th><?= $this->Paginator->sort('cita_id') ?></th>
                    <th><?= $this->Paginator->sort('created') ?></th>
                    <th><?= $this->Paginator->sort('modified') ?></th>
                    <th class="actions"><?= __('Actions') ?></th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($citasServicios as $citasServicio): ?>
                <tr>
                    <td><?= $this->Number->format($citasServicio->id) ?></td>
                    <td><?= $citasServicio->hasValue('servicio') ? $this->Html->link($citasServicio->servicio->nombre, ['controller' => 'Servicios', 'action' => 'view', $citasServicio->servicio->id]) : '' ?></td>
                    <td><?= $citasServicio->hasValue('cita') ? $this->Html->link($citasServicio->cita->id, ['controller' => 'Citas', 'action' => 'view', $citasServicio->cita->id]) : '' ?></td>
                    <td><?= h($citasServicio->created) ?></td>
                    <td><?= h($citasServicio->modified) ?></td>
                    <td class="actions">
                        <?= $this->Html->link(__('View'), ['action' => 'view', $citasServicio->id]) ?>
                        <?= $this->Html->link(__('Edit'), ['action' => 'edit', $citasServicio->id]) ?>
                        <?= $this->Form->postLink(
                            __('Delete'),
                            ['action' => 'delete', $citasServicio->id],
                            [
                                'method' => 'delete',
                                'confirm' => __('Are you sure you want to delete # {0}?', $citasServicio->id),
                            ]
                        ) ?>
                    </td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
    <div class="paginator">
        <ul class="pagination">
            <?= $this->Paginator->first('<< ' . __('first')) ?>
            <?= $this->Paginator->prev('< ' . __('previous')) ?>
            <?= $this->Paginator->numbers() ?>
            <?= $this->Paginator->next(__('next') . ' >') ?>
            <?= $this->Paginator->last(__('last') . ' >>') ?>
        </ul>
        <p><?= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?></p>
    </div>
</div>
