Files
investbrain/resources/views/components/ui/alert.blade.php
T
hackerESQ e6f38d9481 Chore: Upgrade to Laravel 12 + remove Mary and Jetstream dependencies (#141)
* docs: remove requirement for setting APP_KEY manually

* optimize date picker

* clean up modals

* spot light working

* reorganization

* add lazy load

* wip

* remove filament

* styling
2025-09-26 17:41:28 -05:00

37 lines
897 B
PHP

@props([
'id' => null,
'title' => null
'icon' => null,
'description' => null,
'shadow' => false,
'dismissable' => false
])
<div
wire:key="{{ $id }}"
{{ $attributes->whereDoesntStartWith('class') }}
{{ $attributes->class(['alert rounded-md', 'shadow-md' => $shadow])}}
x-data="{ show: true }" x-show="show"
>
@if($icon)
<x-icon :name="$icon" class="self-center" />
@endif
@if($title)
<div>
<div @class(["font-bold" => $description])>{{ $title }}</div>
<div class="text-xs">{{ $description }}</div>
</div>
@else
<span>{{ $slot }}</span>
@endif
<div class="flex items-center gap-3">
{{ $actions }}
</div>
@if($dismissible)
<x-button icon="o-x-mark" @click="show = false" class="btn-xs btn-circle btn-ghost static self-start end-0" />
@endif
</div>