2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Person.all_persons') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Person.all_persons') ?> (<?= count($persons) ?>)
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerRight') ?>
|
2024-04-26 17:57:25 +00:00
|
|
|
<?php // @icon('add-fill')?>
|
|
|
|
<Button uri="<?= route_to('person-create') ?>" variant="primary" iconLeft="add-fill"><?= lang('Person.create') ?></Button>
|
2021-02-10 16:20:01 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-10-21 13:12:38 +00:00
|
|
|
<?php if ($persons !== null): ?>
|
|
|
|
<div class="grid gap-4 grid-cols-cards">
|
2021-02-10 16:20:01 +00:00
|
|
|
<?php foreach ($persons as $person): ?>
|
2021-10-21 13:12:38 +00:00
|
|
|
<?= view('person/_card', [
|
|
|
|
'person' => $person,
|
|
|
|
]) ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
<?php endforeach; ?>
|
2021-10-21 13:12:38 +00:00
|
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<p class="italic"><?= lang('Person.no_person') ?></p>
|
|
|
|
<?php endif; ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|