<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ app()->getLocale() === 'ar' ? 'rtl' : 'ltr' }}">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    @vite('resources/css/app.css')
    @livewireStyles
    @filamentStyles

    <title>{{ $title ?? 'Sekaya' }}</title>
</head>

<body
    class="{{ app()->getLocale() === 'ar' ? 'text-right [&_*]:placeholder:text-right' : 'text-left [&_*]:placeholder:text-left' }}">

    {{ $slot }}

    @livewireScripts
    @filamentScripts

    <x-impersonate::banner />
</body>

</html>