Skip to content

Commit

Permalink
added layout for error page
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 10, 2023
1 parent 7b2040f commit 3acfe7d
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 9 deletions.
2 changes: 0 additions & 2 deletions resources/views/components/layouts/auth/head.blade.php
Expand Up @@ -35,8 +35,6 @@

@stack('stylesheet')

@livewireStyles

<script type="text/javascript"><!--
var url = '{{ url("/" . company_id()) }}';
var app_url = '{{ config("app.url") }}';
Expand Down
10 changes: 5 additions & 5 deletions resources/views/components/layouts/error.blade.php
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html dir="{{ language()->direction() }}" lang="{{ app()->getLocale() }}">
<x-layouts.admin.head>
<x-layouts.error.head>
<x-slot name="title">
{!! !empty($title->attributes->has('title')) ? $title->attributes->get('title') : $title !!}
</x-slot>
</x-layouts.admin.head>
</x-layouts.error.head>

@mobile
<body class="bg-body">
Expand All @@ -17,16 +17,16 @@
<div class="main-content xl:ltr:ml-64 xl:rtl:mr-64 transition-all ease-in-out" id="panel">
<div id="main-body">
<div class="container">
<x-layouts.admin.content>
<x-layouts.error.content>
{!! $content !!}
</x-layouts.admin.content>
</x-layouts.error.content>

</div>
</div>
</div>

@stack('body_end')

<x-layouts.admin.scripts />
<x-layouts.error.scripts />
</body>
</html>
15 changes: 15 additions & 0 deletions resources/views/components/layouts/error/content.blade.php
@@ -0,0 +1,15 @@
@stack('content_start')
<div id="app">
@stack('content_content_start')

{!! $slot !!}

@stack('content_content_end')

<notifications></notifications>

<form id="form-dynamic-component" method="POST" action="#"></form>

<component v-bind:is="component"></component>
</div>
@stack('content_end')
57 changes: 57 additions & 0 deletions resources/views/components/layouts/error/head.blade.php
@@ -0,0 +1,57 @@
@props([
'title',
])

<head>
@stack('head_start')

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8; charset=ISO-8859-1"/>

<title>{!! $title !!} - {{ config('app.name') }}</title>

<base href="{{ config('app.url') . '/' }}">

<x-layouts.pwa.head />

<!-- Favicon -->
<link rel="icon" href="{{ asset('public/img/favicon.ico') }}" type="image/png">

<!--Icons-->
<link rel="stylesheet" href="{{ asset('public/css/fonts/material-icons/style.css?v=' . version('short')) }}" type="text/css">

<!-- Font -->
<link rel="stylesheet" href="{{ asset('public/vendor/quicksand/css/quicksand.css?v=' . version('short')) }}" type="text/css">

<!-- Css -->
<link rel="stylesheet" href="{{ asset('public/css//third_party/swiper-bundle.min.css?v=' . version('short')) }}" type="text/css">
<link rel="stylesheet" href="{{ asset('public/css/element.css?v=' . version('short')) }}" type="text/css">
<link rel="stylesheet" href="{{ asset('public/css/app.css?v=' . version('short')) }}" type="text/css">

@stack('css')

@stack('stylesheet')

<script type="text/javascript"><!--
var url = '{{ url("/") }}';
var app_url = '{{ config("app.url") }}';
//--></script>

@stack('js')

<script type="text/javascript"><!--
window.Laravel = <?php echo json_encode([
'csrfToken' => csrf_token(),
]); ?>;
var flash_notification = {!! (session()->has('flash_notification')) ? json_encode(session()->get('flash_notification')) : 'false' !!};
//--></script>

{{ session()->forget('flash_notification') }}

@stack('scripts')

@stack('head_end')
</head>
11 changes: 11 additions & 0 deletions resources/views/components/layouts/error/scripts.blade.php
@@ -0,0 +1,11 @@
@stack('scripts_start')

@stack('body_css')

@stack('body_stylesheet')

@stack('body_js')

@stack('body_scripts')

@stack('scripts_end')
2 changes: 0 additions & 2 deletions resources/views/components/layouts/install/head.blade.php
Expand Up @@ -34,8 +34,6 @@

@stack('stylesheet')

@livewireStyles

<script type="text/javascript"><!--
var url = '{{ url("/") }}';
var app_url = '{{ config("app.url") }}';
Expand Down

0 comments on commit 3acfe7d

Please sign in to comment.