mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 23:09:18 +02:00
26 lines
787 B
PHP
26 lines
787 B
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Person.all_persons') ?> (<?= count($persons) ?>)
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('headerRight') ?>
|
|
<?php // @icon("add-fill")?>
|
|
<x-Button uri="<?= route_to('person-create') ?>" variant="primary" iconLeft="add-fill"><?= lang('Person.create') ?></x-Button>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?php if ($persons !== null): ?>
|
|
<div class="grid gap-4 grid-cols-cards">
|
|
<?php foreach ($persons as $person): ?>
|
|
<?= view('person/_card', [
|
|
'person' => $person,
|
|
]) ?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php else: ?>
|
|
<p class="italic"><?= lang('Person.no_person') ?></p>
|
|
<?php endif; ?>
|
|
|
|
<?= $this->endSection() ?>
|