<!DOCTYPE html>
<html lang="id">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">

        <title>{{ $title ?? config('app.name') }}</title>
        <meta name="description" content="{{ $description ?? '' }}">
        <link rel="canonical" href="{{ url()->current() }}">

        <meta property="og:type" content="website">
        <meta property="og:title" content="{{ $title ?? config('app.name') }}">
        <meta property="og:description" content="{{ $description ?? '' }}">
        <meta property="og:url" content="{{ url()->current() }}">
        @isset($ogImage)
            <meta property="og:image" content="{{ $ogImage }}">
        @endisset

        <meta name="twitter:card" content="summary_large_image">
        <meta name="twitter:title" content="{{ $title ?? config('app.name') }}">
        <meta name="twitter:description" content="{{ $description ?? '' }}">
        @isset($ogImage)
            <meta name="twitter:image" content="{{ $ogImage }}">
        @endisset

        <link rel="icon" href="data:,">
        @vite(['resources/css/app.css', 'resources/js/app.js'])
    </head>
    <body>
        {{ $slot }}

        @stack('scripts')
    </body>
</html>
