Sync
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xl">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xl">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('custom_styles')
|
||||
@endsection
|
||||
|
||||
54
resources/views/admin/layouts/app.blade.php
Normal file
54
resources/views/admin/layouts/app.blade.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<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 name="description" content="">
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
|
||||
@vite('resources/sass/app-admin.scss')
|
||||
|
||||
<!-- Custom styles for this Page-->
|
||||
@yield('custom_styles')
|
||||
|
||||
</head>
|
||||
|
||||
<body class="theme-light">
|
||||
<div class="page" id="app">
|
||||
<div class="sticky-top">
|
||||
|
||||
|
||||
|
||||
@include('admin.layouts.header')
|
||||
|
||||
@include('admin.layouts.navigation')
|
||||
|
||||
</div>
|
||||
<div class="page-wrapper">
|
||||
|
||||
<div class="container-xl">
|
||||
|
||||
@include('admin.partials.flash_messages')
|
||||
</div>
|
||||
|
||||
@yield('content')
|
||||
|
||||
@include('admin.layouts.footer')
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Core plugin JavaScript-->
|
||||
@vite('resources/js/app-admin.js')
|
||||
|
||||
<!-- Page level custom scripts -->
|
||||
@yield('custom_scripts')
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
35
resources/views/admin/layouts/footer.blade.php
Normal file
35
resources/views/admin/layouts/footer.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<footer class="footer footer-transparent d-print-none">
|
||||
<div class="container-xl">
|
||||
<div class="row text-center align-items-center flex-row-reverse">
|
||||
<div class="col-lg-auto ms-lg-auto">
|
||||
<ul class="list-inline list-inline-dots mb-0">
|
||||
{{-- <li class="list-inline-item"><a href="https://preview.tabler.io" target="_blank" class="link-secondary" rel="noopener">Tabler Demo</a></li>
|
||||
<li class="list-inline-item"><a href="https://preview.tabler.io/docs/index.html" target="_blank" class="link-secondary" rel="noopener">Tabler Doc.</a></li>
|
||||
<li class="list-inline-item"><a href="https://preview.tabler.io/license.html" target="_blank" class="link-secondary" rel="noopener">Tabler License</a></li>
|
||||
<li class="list-inline-item"><a href="https://github.com/tabler/tabler" target="_blank" class="link-secondary" rel="noopener">Tabler Source code</a></li>
|
||||
<li class="list-inline-item">
|
||||
<a href="https://github.com/sponsors/codecalm" target="_blank" class="link-secondary" rel="noopener">
|
||||
<!-- Download SVG icon from http://tabler-icons.io/i/heart -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon text-pink icon-filled icon-inline" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" /></svg>
|
||||
Sponsor
|
||||
</a>
|
||||
</li> --}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-12 col-lg-auto mt-3 mt-lg-0">
|
||||
<ul class="list-inline list-inline-dots mb-0">
|
||||
<li class="list-inline-item">
|
||||
© {{ date('Y') }}
|
||||
<a href="{{ config('app.url') }}" class="link-secondary">{{ config('app.name') }}</a>
|
||||
</li>
|
||||
<li class="list-inline-item">
|
||||
Version {{ config('platform.general.app_version') }}
|
||||
</li>
|
||||
<li class="list-inline-item">
|
||||
Created by Charles Teh
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
32
resources/views/admin/layouts/guest.blade.php
Normal file
32
resources/views/admin/layouts/guest.blade.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<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 name="description" content="">
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
@vite('resources/sass/app-admin.scss')
|
||||
</head>
|
||||
|
||||
<body class="border-top-wide border-primary d-flex flex-column">
|
||||
|
||||
<div class="page page-center">
|
||||
<div class="container-tight py-4">
|
||||
<div class="text-center mb-4">
|
||||
<a href="{{ config('app.url') }}" class="navbar-brand navbar-brand-autodark">
|
||||
<img src="{{ url('img/logo.svg') }}" height="36" alt="" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@yield('content')
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@vite('resources/js/app-admin.js')
|
||||
</body>
|
||||
|
||||
</html>
|
||||
37
resources/views/admin/layouts/header.blade.php
Normal file
37
resources/views/admin/layouts/header.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<header class="navbar navbar-expand-md navbar-light sticky-top d-print-none">
|
||||
<div class="container-xl">
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<a href="#" class="h1 navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
|
||||
{{ config('app.name') }} CMS
|
||||
</a>
|
||||
<div class="navbar-nav flex-row order-md-last">
|
||||
|
||||
@auth
|
||||
<div class="nav-item dropdown">
|
||||
<a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown"
|
||||
aria-label="Open user menu">
|
||||
<span class="avatar avatar-sm"
|
||||
style="background-image: url(https://eu.ui-avatars.com/api/?name={{ urlencode(auth()->user()->name) }})"></span>
|
||||
<div class="d-none d-xl-block ps-2">
|
||||
{{ auth()->user()->name ?? null }}
|
||||
</div>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
|
||||
<a href="{{ route('profile.show') }}" class="dropdown-item">{{ __('Profile') }}</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
<a href="{{ route('logout') }}" class="dropdown-item"
|
||||
onclick="event.preventDefault(); this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endauth
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
163
resources/views/admin/layouts/navigation.blade.php
Normal file
163
resources/views/admin/layouts/navigation.blade.php
Normal file
@@ -0,0 +1,163 @@
|
||||
<div class="navbar-expand-md">
|
||||
<div class="collapse navbar-collapse" id="navbar-menu">
|
||||
<div class="navbar navbar-light">
|
||||
<div class="container-xl">
|
||||
<ul class="navbar-nav">
|
||||
|
||||
<li class="nav-item @if (request()->routeIs('home')) active @endif">
|
||||
<a class="nav-link" href="{{ route('home') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/home -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-door-exit"
|
||||
width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M13 12v.01"></path>
|
||||
<path d="M3 21h18"></path>
|
||||
<path d="M5 21v-16a2 2 0 0 1 2 -2h7.5m2.5 10.5v7.5"></path>
|
||||
<path d="M14 7h7m-3 -3l3 3l-3 3"></path>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
{{ __('Home') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
{{-- <li class="nav-item @if (request()->routeIs('dashboard')) active @endif">
|
||||
<a class="nav-link" href="{{ route('dashboard') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/home -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24"
|
||||
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
|
||||
stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||
<polyline points="5 12 3 12 12 3 21 12 19 12" />
|
||||
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
|
||||
<path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
{{ __('Dashboard') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
--}}
|
||||
<li class="nav-item @if (request()->routeIs('posts.manage')) active @endif">
|
||||
<a class="nav-link" href="{{ route('posts.manage') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/home -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-list"
|
||||
width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M9 6l11 0"></path>
|
||||
<path d="M9 12l11 0"></path>
|
||||
<path d="M9 18l11 0"></path>
|
||||
<path d="M5 6l0 .01"></path>
|
||||
<path d="M5 12l0 .01"></path>
|
||||
<path d="M5 18l0 .01"></path>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
{{ __('Posts') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{--
|
||||
<li class="nav-item @if (request()->routeIs('users.index')) active @endif">
|
||||
<a class="nav-link" href="{{ route('users.index') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/file-text -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-users"
|
||||
width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<circle cx="9" cy="7" r="4"></circle>
|
||||
<path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"></path>
|
||||
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
|
||||
<path d="M21 21v-2a4 4 0 0 0 -3 -3.85"></path>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
{{ __('Users') }}
|
||||
</span>
|
||||
</a>
|
||||
</li> --}}
|
||||
|
||||
{{-- <li class="nav-item @if (request()->routeIs('about')) active @endif">
|
||||
<a class="nav-link" href="{{ route('about') }}">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/file-text -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-info-circle"
|
||||
width="24" height="24" viewBox="0 0 24 24" stroke-width="2"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<circle cx="12" cy="12" r="9"></circle>
|
||||
<line x1="12" y1="8" x2="12.01" y2="8"></line>
|
||||
<polyline points="11 12 12 12 12 16 13 16"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
{{ __('About') }}
|
||||
</span>
|
||||
</a>
|
||||
</li> --}}
|
||||
|
||||
{{-- <li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#navbar-extra" data-bs-toggle="dropdown"
|
||||
data-bs-auto-close="outside" role="button" aria-expanded="false">
|
||||
<span
|
||||
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/star -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
class="icon icon-tabler icon-tabler-list-details" width="24" height="24"
|
||||
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
|
||||
stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M13 5h8"></path>
|
||||
<path d="M13 9h5"></path>
|
||||
<path d="M13 15h8"></path>
|
||||
<path d="M13 19h5"></path>
|
||||
<rect x="3" y="4" width="6" height="6"
|
||||
rx="1"></rect>
|
||||
<rect x="3" y="14" width="6" height="6"
|
||||
rx="1"></rect>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="nav-link-title">
|
||||
Submenus
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#">
|
||||
Submenu Item #1
|
||||
</a>
|
||||
<div class="dropend">
|
||||
<a class="dropdown-item dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
||||
data-bs-auto-close="outside" role="button" aria-expanded="false">
|
||||
Submenu Item #2
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
<a href="#" class="dropdown-item">
|
||||
Subsubmenu Item #1
|
||||
</a>
|
||||
<a href="#" class="dropdown-item">
|
||||
Subsubmenu Item #2
|
||||
</a>
|
||||
<a href="#" class="dropdown-item">
|
||||
Subsubmenu Item #3
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="dropdown-item" href="#">
|
||||
Submenu Item #3
|
||||
</a>
|
||||
</div>
|
||||
</li> --}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('custom_styles')
|
||||
@endsection
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xl">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xl text-center">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@extends('layouts.admin.app')
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xl">
|
||||
|
||||
Reference in New Issue
Block a user