mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
- enhance plugin card ui - refactor components to be more consistent - invert toggler label for better UX - edit view components regex
33 lines
1,018 B
PHP
33 lines
1,018 B
PHP
<?php declare(strict_types=1);
|
|
|
|
if (session()->has('message')): ?>
|
|
<x-Alert variant="success" class="mb-4"><?= esc(session('message')) ?></x-Alert>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('error')): ?>
|
|
<x-Alert variant="danger" class="mb-4"><?= esc(session('error')) ?></x-Alert>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('errors')): ?>
|
|
<x-Alert variant="danger" class="mb-4">
|
|
<ul>
|
|
<?php foreach (session('errors') as $error): ?>
|
|
<li><?= esc($error) ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</x-Alert>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('warning')): ?>
|
|
<x-Alert variant="warning" class="mb-4"><?= esc(session('warning')) ?></x-Alert>
|
|
<?php endif; ?>
|
|
|
|
<?php if (session()->has('warnings')): ?>
|
|
<x-Alert variant="warning" class="mb-4">
|
|
<ul>
|
|
<?php foreach (session('warnings') as $warning): ?>
|
|
<li><?= esc($warning) ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</x-Alert>
|
|
<?php endif; ?>
|