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