2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Person.all_persons') ?> (<?= count($persons) ?>)
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerRight') ?>
|
2024-12-17 15:06:08 +00:00
|
|
|
<?php // @icon("add-fill")?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button uri="<?= route_to('person-create') ?>" variant="primary" iconLeft="add-fill"><?= lang('Person.create') ?></x-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() ?>
|