2022-09-20 19:59:52 +00:00
|
|
|
@php
|
|
|
|
$config = [
|
|
|
|
'appName' => config('app.name'),
|
|
|
|
'locale' => $locale = app()->getLocale(),
|
|
|
|
'locales' => config('app.locales'),
|
|
|
|
'githubAuth' => config('services.github.client_id'),
|
|
|
|
'notion' => [
|
|
|
|
'worker' => config('services.notion.worker'),
|
|
|
|
],
|
|
|
|
'links' => config('links'),
|
|
|
|
'production' => App::isProduction(),
|
|
|
|
'hCaptchaSiteKey' => config('services.h_captcha.site_key'),
|
2022-09-21 15:23:37 +00:00
|
|
|
'google_analytics_code' => config('services.google_analytics_code'),
|
|
|
|
'amplitude_code' => config('services.amplitude_code'),
|
2023-10-08 12:35:15 +00:00
|
|
|
'sentry_dsn' => config('services.sentry_vue_dsn'),
|
2022-09-21 15:23:37 +00:00
|
|
|
'crisp_website_id' => config('services.crisp_website_id'),
|
2023-08-16 08:59:07 +00:00
|
|
|
'ai_features_enabled' => !is_null(config('services.openai.api_key')),
|
2023-08-30 07:58:29 +00:00
|
|
|
's3_enabled' => config('filesystems.default') === 's3',
|
|
|
|
'paid_plans_enabled' => !is_null(config('cashier.key'))
|
2022-09-20 19:59:52 +00:00
|
|
|
];
|
|
|
|
@endphp
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ app()->getLocale() }}">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
2023-01-21 11:57:37 +00:00
|
|
|
@vite('resources/js/app.js')
|
|
|
|
|
2022-09-20 19:59:52 +00:00
|
|
|
<link rel="icon" href="{{asset('/img/logo.svg')}}">
|
|
|
|
|
2022-11-29 14:17:30 +00:00
|
|
|
@if($meta)
|
|
|
|
<title>{{$meta['title']}}</title>
|
|
|
|
<meta name='description' content='{{$meta['description']}}'>
|
|
|
|
|
|
|
|
<meta name='og:title' content='{{$meta['title']}}'>
|
|
|
|
<meta name='og:description' content='{{$meta['description']}}'>
|
|
|
|
<meta name='og:image' content='{{$meta['image']}}'>
|
|
|
|
<meta name='og:site_name' content='OpenForm'>
|
|
|
|
|
|
|
|
<meta name="twitter:title" content="{{$meta['title']}}">
|
|
|
|
<meta name="twitter:description" content="{{$meta['description']}}">
|
|
|
|
<meta name="twitter:image" content="{{$meta['image']}}">
|
|
|
|
@endif
|
|
|
|
|
2022-09-20 19:59:52 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app"></div>
|
|
|
|
|
|
|
|
{{-- Global configuration object --}}
|
|
|
|
<script>
|
|
|
|
window.config = @json($config);
|
2022-12-24 08:48:59 +00:00
|
|
|
window.$crisp = []
|
2022-09-20 19:59:52 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2022-09-21 15:23:37 +00:00
|
|
|
@if($config['google_analytics_code'])
|
2022-09-20 19:59:52 +00:00
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2022-09-21 15:23:37 +00:00
|
|
|
<script defer src="https://www.googletagmanager.com/gtag/js?id={{ $config['google_analytics_code'] }}"></script>
|
2022-09-20 19:59:52 +00:00
|
|
|
<script defer>
|
|
|
|
window.dataLayer = window.dataLayer || []
|
|
|
|
|
|
|
|
function gtag () {dataLayer.push(arguments)}
|
|
|
|
|
|
|
|
gtag('js', new Date())
|
|
|
|
|
2022-12-14 09:27:21 +00:00
|
|
|
gtag('config', "{{ $config['google_analytics_code'] }}" {{ \Illuminate\Support\Facades\App::isProduction() ? '' : ', { send_page_view: false, debug_mode:true }' }})
|
2022-09-20 19:59:52 +00:00
|
|
|
</script>
|
2022-09-21 15:23:37 +00:00
|
|
|
@endif
|
|
|
|
|
2022-09-20 19:59:52 +00:00
|
|
|
</body>
|
|
|
|
</html>
|