Moved to blade components
This commit is contained in:
45
resources/views/components/layout.blade.php
Normal file
45
resources/views/components/layout.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/png" href="/images/icon.png" />
|
||||
{{$meta ?? ''}}
|
||||
<link href="{{ mix('/css/app.css') }}" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
|
||||
<script src="{{ mix('/js/manifest.js') }}"></script>
|
||||
<script src="{{ mix('/js/vendor.js') }}" defer></script>
|
||||
<script src="{{ mix('/js/app.js') }}" defer></script>
|
||||
@yield('js')
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
|
||||
<div class="container mx-auto">
|
||||
@include('partials.header')
|
||||
|
||||
<main class="mt-12">
|
||||
|
||||
{{ $slot }}
|
||||
</main>
|
||||
|
||||
<x-footer>
|
||||
<x-slot name="credits">
|
||||
<a href="https://github.com/jinas123" class="text-blue-600 hover:underline">@jinas123</a>,
|
||||
<a href="https://github.com/Dharisd" class="text-blue-600 hover:underline">@dharisd</a>,
|
||||
<a href="https://github.com/shihaamabr" class="text-blue-600 hover:underline">@shihaamabr</a>
|
||||
</x-slot>
|
||||
</x-footer>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@include('sweetalert::alert')
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user