<!DOCTYPE html>
<html lang="FA-IR" dir="rtl">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    @php
        $docSiteName = $siteName ?? \App\Models\Setting::get('site_name', config('app.name', 'فروشگاه'));
        $pagePart = trim($__env->yieldContent('title'));
        $documentTitle = $pagePart !== '' ? $docSiteName . ' - ' . $pagePart : $docSiteName;
        $faviconHref = $siteFavicon ?? null;
        if (!$faviconHref) {
            $faviconFile = \App\Models\Setting::get('site_favicon', '');
            $faviconHref = $faviconFile ? asset('uploads/site/' . $faviconFile) : null;
        }
    @endphp
    <title>{{ $documentTitle }}</title>
    @if($faviconHref)
    <link rel="icon" href="{{ $faviconHref }}">
    @endif
    <link rel="stylesheet" href="{{ asset('theme/assets/css/bootstrap.rtl.min.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/font/bootstrap-icon/bootstrap-icons.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/font/tabler-icons/tabler-icons.min.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/plugin/waves/waves.min.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/plugin/swiper/swiper-bundle.min.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/plugin/timer/timer.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/plugin/bootstrap-touchspin/jquery.bootstrap-touchspin.min.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/css/style.css') }}?v={{ @filemtime(public_path('theme/assets/css/style.css')) ?: '1' }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/css/responsive.css') }}">
    @yield('styles')
</head>

<body class="bg-auth">

    <main class="digi-auth-page">
        @yield('content')
    </main>

    <script src="{{ asset('theme/assets/js/jquery.min.js') }}"></script>
    <script src="{{ asset('theme/assets/js/bootstrap.bundle.min.js') }}"></script>
    <script src="{{ asset('theme/assets/js/app.js') }}"></script>
    @yield('scripts')

</body>

</html>
