mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-19 23:53:24 +02:00
21 lines
559 B
PHP
21 lines
559 B
PHP
<?php declare(strict_types=1);
|
|
|
|
if (session()->has('message')): ?>
|
|
<Alert variant="success" class="mb-4"><?= session('message') ?></Alert>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('error')): ?>
|
|
<Alert variant="danger" class="mb-4"><?= session('error') ?></Alert>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('errors')): ?>
|
|
<Alert variant="danger" class="mb-4">
|
|
<ul>
|
|
<?php foreach (session('errors') as $error): ?>
|
|
<li><?= $error ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</Alert>
|
|
<?php endif;
|
|
?>
|