refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
72
resources/views/layouts/skeleton.blade.php
Normal file
72
resources/views/layouts/skeleton.blade.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ \App::getLocale() }}" dir="{{ htmldir() }}">
|
||||
<head>
|
||||
<base href="{{ url('/') }}/" />
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="apple-mobile-web-app-title" content="Monica">
|
||||
<meta name="application-name" content="Monica">
|
||||
<meta name="theme-color" content="#325776">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>@yield('title', trans('app.application_title'))</title>
|
||||
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
|
||||
<link rel="stylesheet" href="{{ asset(mix('css/app-'.htmldir().'.css')) }}">
|
||||
{{-- Required only for the Upgrade account page --}}
|
||||
@if (Route::currentRouteName() == 'settings.subscriptions.upgrade' || Route::currentRouteName() == 'settings.subscriptions.confirm')
|
||||
<link rel="stylesheet" href="{{ asset(mix('css/stripe.css')) }}">
|
||||
@endif
|
||||
|
||||
<link rel="shortcut icon" href="img/favicon.png">
|
||||
|
||||
<link rel="apple-touch-icon" href="img/icons/touch-icon-iphone.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="img/icons/touch-icon-ipad.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="img/icons/touch-icon-iphone-retina.png">
|
||||
<link rel="apple-touch-icon" sizes="167x167" href="img/icons/touch-icon-ipad-retina.png">
|
||||
|
||||
<link rel="shortcut icon" sizes="196x196" href="img/icons/favicon-196.png">
|
||||
|
||||
<script>
|
||||
window.Laravel = {!! \Safe\json_encode([
|
||||
'locale' => \App::getLocale(),
|
||||
'htmldir' => htmldir(),
|
||||
'profileDefaultView' => auth()->user()->profile_active_tab,
|
||||
'timezone' => auth()->user()->timezone,
|
||||
'env' => \App::environment(),
|
||||
]); !!}
|
||||
</script>
|
||||
</head>
|
||||
<body data-account-id="{{ auth()->user()->account_id }}" class="bg-gray-monica min-vh-100 flex flex-column">
|
||||
|
||||
<div id="app" class="flex-grow-1">
|
||||
@if (Route::currentRouteName() != 'settings.subscriptions.confirm')
|
||||
@include('partials.header')
|
||||
@include('partials.subscription')
|
||||
@endif
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
@if (Route::currentRouteName() != 'settings.subscriptions.confirm')
|
||||
@include('partials.footer')
|
||||
@endif
|
||||
|
||||
{{-- THE JS FILE OF THE APP --}}
|
||||
@push('scripts')
|
||||
<script src="{{ asset(mix('js/manifest.js')) }}"></script>
|
||||
<script src="{{ asset(mix('js/vendor.js')) }}"></script>
|
||||
@endpush
|
||||
|
||||
{{-- Load everywhere except on the Upgrade account page --}}
|
||||
@if (Route::currentRouteName() != 'settings.subscriptions.upgrade' && Route::currentRouteName() != 'settings.subscriptions.confirm')
|
||||
@push('scripts')
|
||||
<script src="{{ asset(mix('js/app.js')) }}"></script>
|
||||
@endpush
|
||||
@endif
|
||||
|
||||
@stack('scripts')
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user