mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-08 19:59:20 +02:00
23 lines
686 B
PHP
23 lines
686 B
PHP
<?php declare(strict_types=1);
|
|
|
|
if (session()->has('message')): ?>
|
|
<div class="px-4 py-2 mb-4 font-semibold text-green-900 bg-green-200 border border-green-700">
|
|
<?= session('message') ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('error')): ?>
|
|
<div class="px-4 py-2 mb-4 font-semibold text-red-900 bg-red-200 border border-red-700">
|
|
<?= session('error') ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('errors')): ?>
|
|
<ul class="px-4 py-2 mb-4 font-semibold text-red-900 bg-red-200 border border-red-700">
|
|
<?php foreach (session('errors') as $error): ?>
|
|
<li><?= $error ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php endif;
|
|
?>
|