Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

custom-simple.blade.php 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @php
  2. use Filament\Support\Enums\MaxWidth;
  3. @endphp
  4. <x-filament-panels::layout.base :livewire="$livewire">
  5. @props([
  6. 'after' => null,
  7. 'heading' => null,
  8. 'subheading' => null,
  9. ])
  10. <div class="fi-simple-layout flex min-h-screen">
  11. @if (($hasTopbar ?? true) && filament()->auth()->check())
  12. <div
  13. class="absolute end-0 top-0 flex h-16 items-center gap-x-4 pe-4 md:pe-6 lg:pe-8"
  14. >
  15. @if (filament()->hasDatabaseNotifications())
  16. @livewire(Filament\Livewire\DatabaseNotifications::class, [
  17. 'lazy' => filament()->hasLazyLoadedDatabaseNotifications()
  18. ])
  19. @endif
  20. <x-filament-panels::user-menu/>
  21. </div>
  22. @endif
  23. <div class="relative hidden w-0 flex-1 lg:block">
  24. <img class="absolute inset-0 size-full object-cover"
  25. src="https://img.freepik.com/free-vector/abstract-cyber-background-with-flowing-particles-design_1048-15243.jpg?t=st=1731895585~exp=1731899185~hmac=3397976be08b5dabed940a75fb1fd957cee7f1a32cd1da1f5951435265cf36f9&w=2000"
  26. alt="">
  27. </div>
  28. <div
  29. class="fi-simple-main-ctn flex flex-1 flex-col justify-center px-4 py-12 sm:px-6 lg:flex-none lg:px-20 xl:px-24 w-1/2 bg-white"
  30. >
  31. <main
  32. @class([
  33. 'fi-simple-main mx-auto w-full',
  34. match ($maxWidth ?? null) {
  35. MaxWidth::ExtraSmall, 'xs' => 'sm:max-w-xs',
  36. MaxWidth::Small, 'sm' => 'sm:max-w-sm',
  37. MaxWidth::Medium, 'md' => 'sm:max-w-md',
  38. MaxWidth::ExtraLarge, 'xl' => 'sm:max-w-xl',
  39. MaxWidth::TwoExtraLarge, '2xl' => 'sm:max-w-2xl',
  40. MaxWidth::ThreeExtraLarge, '3xl' => 'sm:max-w-3xl',
  41. MaxWidth::FourExtraLarge, '4xl' => 'sm:max-w-4xl',
  42. MaxWidth::FiveExtraLarge, '5xl' => 'sm:max-w-5xl',
  43. MaxWidth::SixExtraLarge, '6xl' => 'sm:max-w-6xl',
  44. MaxWidth::SevenExtraLarge, '7xl' => 'sm:max-w-7xl',
  45. default => 'sm:max-w-lg',
  46. },
  47. ])
  48. >
  49. {{ $slot }}
  50. </main>
  51. </div>
  52. {{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::FOOTER, scopes: $livewire->getRenderHookScopes()) }}
  53. </div>
  54. </x-filament-panels::layout.base>