Последняя версия с сервера прошлого разработчика
This commit is contained in:
31
nova/resources/views/auth/layout.blade.php
Executable file
31
nova/resources/views/auth/layout.blade.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full font-sans antialiased">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ \Laravel\Nova\Nova::name() }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,800,800i,900,900i" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{{ mix('app.css', 'vendor/nova') }}">
|
||||
|
||||
<!-- Custom Meta Data -->
|
||||
@include('nova::partials.meta')
|
||||
|
||||
<!-- Theme Styles -->
|
||||
@foreach(\Laravel\Nova\Nova::themeStyles() as $publicPath)
|
||||
<link rel="stylesheet" href="{{ $publicPath }}">
|
||||
@endforeach
|
||||
</head>
|
||||
<body class="bg-40 text-black h-full">
|
||||
<div class="h-full">
|
||||
<div class="px-view py-view mx-auto">
|
||||
@yield('content')
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
58
nova/resources/views/auth/login.blade.php
Executable file
58
nova/resources/views/auth/login.blade.php
Executable file
@@ -0,0 +1,58 @@
|
||||
@extends('nova::auth.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('nova::auth.partials.header')
|
||||
|
||||
<form
|
||||
class="bg-white shadow rounded-lg p-8 max-w-login mx-auto"
|
||||
method="POST"
|
||||
action="{{ route('nova.login') }}"
|
||||
>
|
||||
{{ csrf_field() }}
|
||||
|
||||
@component('nova::auth.partials.heading')
|
||||
{{ __('Welcome Back!') }}
|
||||
@endcomponent
|
||||
|
||||
@if ($errors->any())
|
||||
<p class="text-center font-semibold text-danger my-3">
|
||||
@if ($errors->has('email'))
|
||||
{{ $errors->first('email') }}
|
||||
@else
|
||||
{{ $errors->first('password') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
|
||||
<div class="mb-6 {{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="email">{{ __('Email Address') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="email" type="email" name="email" value="{{ old('email') }}" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 {{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="password">{{ __('Password') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="password" type="password" name="password" required>
|
||||
</div>
|
||||
|
||||
<div class="flex mb-6">
|
||||
<label class="flex items-center block text-xl font-bold">
|
||||
<input class="" type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
<span class="text-base ml-2">{{ __('Remember Me') }}</span>
|
||||
</label>
|
||||
|
||||
|
||||
@if (\Laravel\Nova\Nova::resetsPasswords())
|
||||
<div class="ml-auto">
|
||||
<a class="text-primary dim font-bold no-underline" href="{{ route('nova.password.request') }}">
|
||||
{{ __('Forgot Your Password?') }}
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<button class="w-full btn btn-default btn-primary hover:bg-primary-dark" type="submit">
|
||||
{{ __('Login') }}
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
9
nova/resources/views/auth/partials/errors.blade.php
Executable file
9
nova/resources/views/auth/partials/errors.blade.php
Executable file
@@ -0,0 +1,9 @@
|
||||
@if ($errors->any())
|
||||
<p class="text-center font-semibold text-danger my-3">
|
||||
@if ($errors->has('email'))
|
||||
{{ $errors->first('email') }}
|
||||
@else
|
||||
{{ $errors->first('password') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
3
nova/resources/views/auth/partials/header.blade.php
Executable file
3
nova/resources/views/auth/partials/header.blade.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<div class="mx-auto py-8 max-w-sm text-center text-90">
|
||||
@include('nova::auth.partials.logo')
|
||||
</div>
|
||||
4
nova/resources/views/auth/partials/heading.blade.php
Executable file
4
nova/resources/views/auth/partials/heading.blade.php
Executable file
@@ -0,0 +1,4 @@
|
||||
<h2 class="text-2xl text-center font-normal mb-6 text-90">{{ $slot }}</h2>
|
||||
<svg class="block mx-auto mb-6" xmlns="http://www.w3.org/2000/svg" width="100" height="2" viewBox="0 0 100 2">
|
||||
<path fill="#D8E3EC" d="M0 0h100v2H0z"/>
|
||||
</svg>
|
||||
1
nova/resources/views/auth/partials/logo.blade.php
Executable file
1
nova/resources/views/auth/partials/logo.blade.php
Executable file
@@ -0,0 +1 @@
|
||||
@include('nova::partials.logo', ['width' => '200', 'height' => '39'])
|
||||
35
nova/resources/views/auth/passwords/email.blade.php
Executable file
35
nova/resources/views/auth/passwords/email.blade.php
Executable file
@@ -0,0 +1,35 @@
|
||||
@extends('nova::auth.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('nova::auth.partials.header')
|
||||
|
||||
<form
|
||||
class="bg-white shadow rounded-lg p-8 max-w-login mx-auto"
|
||||
method="POST"
|
||||
action="{{ route('nova.password.email') }}"
|
||||
>
|
||||
{{ csrf_field() }}
|
||||
|
||||
@component('nova::auth.partials.heading')
|
||||
{{ __('Forgot your password?') }}
|
||||
@endcomponent
|
||||
|
||||
@if (session('status'))
|
||||
<div class="text-success text-center font-semibold my-3">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('nova::auth.partials.errors')
|
||||
|
||||
<div class="mb-6 {{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="email">{{ __('Email Address') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="email" type="email" name="email" value="{{ old('email') }}" required>
|
||||
</div>
|
||||
|
||||
<button class="w-full btn btn-default btn-primary hover:bg-primary-dark" type="submit">
|
||||
{{ __('Send Password Reset Link') }}
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
41
nova/resources/views/auth/passwords/reset.blade.php
Executable file
41
nova/resources/views/auth/passwords/reset.blade.php
Executable file
@@ -0,0 +1,41 @@
|
||||
@extends('nova::auth.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('nova::auth.partials.header')
|
||||
|
||||
<form
|
||||
class="bg-white shadow rounded-lg p-8 max-w-login mx-auto"
|
||||
method="POST"
|
||||
action="{{ route('nova.password.request') }}"
|
||||
>
|
||||
{{ csrf_field() }}
|
||||
|
||||
@component('nova::auth.partials.heading')
|
||||
{{ __('Reset Password') }}
|
||||
@endcomponent
|
||||
|
||||
@include('nova::auth.partials.errors')
|
||||
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="mb-6 {{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="email">{{ __('Email Address') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="email" type="email" name="email" value="{{ $email ?? old('email') }}" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 {{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="password">{{ __('Password') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="password" type="password" name="password" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 {{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
|
||||
<label class="block font-bold mb-2" for="password-confirm">{{ __('Confirm Password') }}</label>
|
||||
<input class="form-control form-input form-input-bordered w-full" id="password-confirm" type="password" name="password_confirmation" required>
|
||||
</div>
|
||||
|
||||
<button class="w-full btn btn-default btn-primary hover:bg-primary-dark" type="submit">
|
||||
{{ __('Reset Password') }}
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
5
nova/resources/views/dashboard.blade.php
Executable file
5
nova/resources/views/dashboard.blade.php
Executable file
@@ -0,0 +1,5 @@
|
||||
@extends('nova::layout')
|
||||
|
||||
@section('content')
|
||||
Dashboard Content
|
||||
@endsection
|
||||
30
nova/resources/views/dashboard/navigation.blade.php
Executable file
30
nova/resources/views/dashboard/navigation.blade.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<router-link exact tag="h3"
|
||||
:to="{
|
||||
name: 'dashboard.custom',
|
||||
params: {
|
||||
name: 'main'
|
||||
}
|
||||
}"
|
||||
class="cursor-pointer flex items-center font-normal dim text-white mb-8 text-base no-underline">
|
||||
<svg class="sidebar-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20"><defs><path id="b" d="M11 18v-5H9v5c0 1.1045695-.8954305 2-2 2H4c-1.1045695 0-2-.8954305-2-2v-7.5857864l-.29289322.2928932c-.39052429.3905243-1.02368927.3905243-1.41421356 0-.3905243-.3905243-.3905243-1.02368929 0-1.41421358l9-9C9.48815536.09763107 9.74407768 0 10 0c.2559223 0 .5118446.09763107.7071068.29289322l9 9c.3905243.39052429.3905243 1.02368928 0 1.41421358-.3905243.3905243-1.0236893.3905243-1.4142136 0L18 10.4142136V18c0 1.1045695-.8954305 2-2 2h-3c-1.1045695 0-2-.8954305-2-2zm5 0V8.41421356l-6-6-6 6V18h3v-5c0-1.1045695.8954305-2 2-2h2c1.1045695 0 2 .8954305 2 2v5h3z"/><filter id="a" width="135%" height="135%" x="-17.5%" y="-12.5%" filterUnits="objectBoundingBox"><feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.166610054 0"/></filter></defs><g fill="none" fill-rule="evenodd"><use fill="#000" filter="url(#a)" xlink:href="#b"/><use fill="var(--sidebar-icon)" xlink:href="#b"/></g></svg>
|
||||
<span class="text-white sidebar-label">{{ __('Dashboard') }}</span>
|
||||
</router-link>
|
||||
@if (\Laravel\Nova\Nova::availableDashboards(request()))
|
||||
<ul class="list-reset mb-8">
|
||||
@foreach (\Laravel\Nova\Nova::availableDashboards(request()) as $dashboard)
|
||||
<li class="leading-wide mb-4 ml-8 text-sm">
|
||||
<router-link :to='{
|
||||
name: "dashboard.custom",
|
||||
params: {
|
||||
name: "{{ $dashboard::uriKey() }}",
|
||||
},
|
||||
query: @json($dashboard->meta()),
|
||||
}'
|
||||
exact
|
||||
class="text-white no-underline dim">
|
||||
{{ $dashboard::label() }}
|
||||
</router-link>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
102
nova/resources/views/layout.blade.php
Executable file
102
nova/resources/views/layout.blade.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full font-sans antialiased">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=1280">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ \Laravel\Nova\Nova::name() }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,800,800i,900,900i" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{{ mix('app.css', 'vendor/nova') }}">
|
||||
|
||||
<!-- Tool Styles -->
|
||||
@foreach(\Laravel\Nova\Nova::availableStyles(request()) as $name => $path)
|
||||
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
|
||||
<link rel="stylesheet" href="{!! $path !!}">
|
||||
@else
|
||||
<link rel="stylesheet" href="/nova-api/styles/{{ $name }}">
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<!-- Custom Meta Data -->
|
||||
@include('nova::partials.meta')
|
||||
|
||||
<!-- Theme Styles -->
|
||||
@foreach(\Laravel\Nova\Nova::themeStyles() as $publicPath)
|
||||
<link rel="stylesheet" href="{{ $publicPath }}">
|
||||
@endforeach
|
||||
</head>
|
||||
<body class="min-w-site bg-40 text-90 font-medium min-h-full">
|
||||
<div id="nova">
|
||||
<div v-cloak class="flex min-h-screen">
|
||||
<!-- Sidebar -->
|
||||
<div class="min-h-screen flex-none pt-header min-h-screen w-sidebar bg-grad-sidebar px-6">
|
||||
<a href="{{ \Laravel\Nova\Nova::path() }}">
|
||||
<div class="absolute pin-t pin-l pin-r bg-logo flex items-center w-sidebar h-header px-6 text-white">
|
||||
@include('nova::partials.logo')
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@foreach (\Laravel\Nova\Nova::availableTools(request()) as $tool)
|
||||
{!! $tool->renderNavigation() !!}
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="content">
|
||||
<div class="flex items-center relative shadow h-header bg-white z-20 px-view">
|
||||
<a v-if="@json(\Laravel\Nova\Nova::name() !== null)" href="{{ \Illuminate\Support\Facades\Config::get('nova.url') }}" class="no-underline dim font-bold text-90 mr-6">
|
||||
{{ \Laravel\Nova\Nova::name() }}
|
||||
</a>
|
||||
|
||||
@if (count(\Laravel\Nova\Nova::globallySearchableResources(request())) > 0)
|
||||
<global-search dusk="global-search-component"></global-search>
|
||||
@endif
|
||||
|
||||
<dropdown class="ml-auto h-9 flex items-center dropdown-right">
|
||||
@include('nova::partials.user')
|
||||
</dropdown>
|
||||
</div>
|
||||
|
||||
<div data-testid="content" class="px-view py-view mx-auto">
|
||||
@yield('content')
|
||||
|
||||
@include('nova::partials.footer')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
window.config = @json(\Laravel\Nova\Nova::jsonVariables(request()));
|
||||
</script>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ mix('manifest.js', 'vendor/nova') }}"></script>
|
||||
<script src="{{ mix('vendor.js', 'vendor/nova') }}"></script>
|
||||
<script src="{{ mix('app.js', 'vendor/nova') }}"></script>
|
||||
|
||||
<!-- Build Nova Instance -->
|
||||
<script>
|
||||
window.Nova = new CreateNova(config)
|
||||
</script>
|
||||
|
||||
<!-- Tool Scripts -->
|
||||
@foreach (\Laravel\Nova\Nova::availableScripts(request()) as $name => $path)
|
||||
@if (\Illuminate\Support\Str::startsWith($path, ['http://', 'https://']))
|
||||
<script src="{!! $path !!}"></script>
|
||||
@else
|
||||
<script src="/nova-api/scripts/{{ $name }}"></script>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<!-- Start Nova -->
|
||||
<script>
|
||||
Nova.liftOff()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
7
nova/resources/views/partials/footer.blade.php
Executable file
7
nova/resources/views/partials/footer.blade.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<p class="mt-8 text-center text-xs text-80">
|
||||
<a href="https://nova.laravel.com" class="text-primary dim no-underline">Laravel Nova</a>
|
||||
<span class="px-1">·</span>
|
||||
© {{ date('Y') }} Laravel LLC - By Taylor Otwell, David Hemphill, and Steve Schoger.
|
||||
<span class="px-1">·</span>
|
||||
v{{ \Laravel\Nova\Nova::version() }}
|
||||
</p>
|
||||
9
nova/resources/views/partials/logo.blade.php
Executable file
9
nova/resources/views/partials/logo.blade.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<svg
|
||||
class="fill-current"
|
||||
width="{{ $width ?? '126' }}"
|
||||
height="{{ $height ?? '24' }}"
|
||||
viewBox="{{ $viewBox ?? '0 0 126 24' }}"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path d="M40.76 18h-6.8V7.328h2.288V16h4.512v2zm8.064 0h-2.048v-.816c-.528.64-1.44 1.008-2.448 1.008-1.232 0-2.672-.832-2.672-2.56 0-1.824 1.44-2.496 2.672-2.496 1.04 0 1.936.336 2.448.944v-.976c0-.784-.672-1.296-1.696-1.296-.816 0-1.584.32-2.224.912l-.8-1.424c.944-.848 2.16-1.216 3.376-1.216 1.776 0 3.392.704 3.392 2.928V18zm-3.68-1.184c.656 0 1.296-.224 1.632-.672v-.96c-.336-.448-.976-.688-1.632-.688-.8 0-1.456.432-1.456 1.168s.656 1.152 1.456 1.152zM52.856 18h-2.032v-7.728h2.032v1.04c.56-.672 1.504-1.232 2.464-1.232v1.984a2.595 2.595 0 0 0-.56-.048c-.672 0-1.568.384-1.904.88V18zm10.416 0h-2.048v-.816c-.528.64-1.44 1.008-2.448 1.008-1.232 0-2.672-.832-2.672-2.56 0-1.824 1.44-2.496 2.672-2.496 1.04 0 1.936.336 2.448.944v-.976c0-.784-.672-1.296-1.696-1.296-.816 0-1.584.32-2.224.912l-.8-1.424c.944-.848 2.16-1.216 3.376-1.216 1.776 0 3.392.704 3.392 2.928V18zm-3.68-1.184c.656 0 1.296-.224 1.632-.672v-.96c-.336-.448-.976-.688-1.632-.688-.8 0-1.456.432-1.456 1.168s.656 1.152 1.456 1.152zM69.464 18h-2.192l-3.104-7.728h2.176l2.016 5.376 2.032-5.376h2.176L69.464 18zm7.648.192c-2.352 0-4.128-1.584-4.128-4.064 0-2.24 1.664-4.048 4-4.048 2.32 0 3.872 1.728 3.872 4.24v.48h-5.744c.144.944.912 1.728 2.224 1.728.656 0 1.552-.272 2.048-.752l.912 1.344c-.768.704-1.984 1.072-3.184 1.072zm1.792-4.8c-.064-.736-.576-1.648-1.92-1.648-1.264 0-1.808.88-1.888 1.648h3.808zM84.36 18h-2.032V7.328h2.032V18zm15.232 0h-1.28l-6.224-8.512V18H90.76V7.328h1.36l6.144 8.336V7.328h1.328V18zm5.824.192c-2.352 0-3.824-1.824-3.824-4.064s1.472-4.048 3.824-4.048 3.824 1.808 3.824 4.048-1.472 4.064-3.824 4.064zm0-1.072c1.648 0 2.56-1.408 2.56-2.992 0-1.568-.912-2.976-2.56-2.976-1.648 0-2.56 1.408-2.56 2.976 0 1.584.912 2.992 2.56 2.992zm9.152.88h-1.312l-3.216-7.728h1.312l2.56 6.336 2.576-6.336h1.296L114.568 18zm10.496 0h-1.2v-.88c-.624.704-1.52 1.072-2.56 1.072-1.296 0-2.688-.88-2.688-2.56 0-1.744 1.376-2.544 2.688-2.544 1.056 0 1.936.336 2.56 1.04v-1.392c0-1.024-.832-1.616-1.952-1.616-.928 0-1.68.32-2.368 1.072l-.56-.832c.832-.864 1.824-1.28 3.088-1.28 1.648 0 2.992.736 2.992 2.608V18zm-3.312-.672c.832 0 1.648-.32 2.112-.96v-1.472c-.464-.624-1.28-.944-2.112-.944-1.136 0-1.92.704-1.92 1.68 0 .992.784 1.696 1.92 1.696zM20.119 20.455A12.184 12.184 0 0 1 11.5 24a12.18 12.18 0 0 1-9.333-4.319c4.772 3.933 11.88 3.687 16.36-.738a7.571 7.571 0 0 0 0-10.8c-3.018-2.982-7.912-2.982-10.931 0a3.245 3.245 0 0 0 0 4.628 3.342 3.342 0 0 0 4.685 0 1.114 1.114 0 0 1 1.561 0 1.082 1.082 0 0 1 0 1.543 5.57 5.57 0 0 1-7.808 0 5.408 5.408 0 0 1 0-7.714c3.881-3.834 10.174-3.834 14.055 0a9.734 9.734 0 0 1 .03 13.855zm.714-16.136C16.06.386 8.953.632 4.473 5.057a7.571 7.571 0 0 0 0 10.8c3.018 2.982 7.912 2.982 10.931 0a3.245 3.245 0 0 0 0-4.628 3.342 3.342 0 0 0-4.685 0 1.114 1.114 0 0 1-1.561 0 1.082 1.082 0 0 1 0-1.543 5.57 5.57 0 0 1 7.808 0 5.408 5.408 0 0 1 0 7.714c-3.881 3.834-10.174 3.834-14.055 0a9.734 9.734 0 0 1-.015-13.87C5.096 1.35 8.138 0 11.5 0c3.75 0 7.105 1.68 9.333 4.319z" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
1
nova/resources/views/partials/meta.blade.php
Executable file
1
nova/resources/views/partials/meta.blade.php
Executable file
@@ -0,0 +1 @@
|
||||
{{-- <link rel="icon" type="image/png" href="{{ asset('/img/favicon.png') }} "> --}}
|
||||
22
nova/resources/views/partials/user.blade.php
Executable file
22
nova/resources/views/partials/user.blade.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<dropdown-trigger class="h-9 flex items-center">
|
||||
@isset($user->email)
|
||||
<img
|
||||
src="https://secure.gravatar.com/avatar/{{ md5(\Illuminate\Support\Str::lower($user->email)) }}?size=512"
|
||||
class="rounded-full w-8 h-8 mr-3"
|
||||
/>
|
||||
@endisset
|
||||
|
||||
<span class="text-90">
|
||||
{{ $user->name ?? $user->email ?? __('Nova User') }}
|
||||
</span>
|
||||
</dropdown-trigger>
|
||||
|
||||
<dropdown-menu slot="menu" width="200" direction="rtl">
|
||||
<ul class="list-reset">
|
||||
<li>
|
||||
<a href="{{ route('nova.logout') }}" class="block no-underline text-90 hover:bg-30 p-3">
|
||||
{{ __('Logout') }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dropdown-menu>
|
||||
30
nova/resources/views/resources/navigation.blade.php
Executable file
30
nova/resources/views/resources/navigation.blade.php
Executable file
@@ -0,0 +1,30 @@
|
||||
@if (count(\Laravel\Nova\Nova::resourcesForNavigation(request())))
|
||||
<h3 class="flex items-center font-normal text-white mb-6 text-base no-underline">
|
||||
<svg class="sidebar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
|
||||
<path fill="var(--sidebar-icon)" d="M3 1h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2H3c-1.1045695 0-2-.8954305-2-2V3c0-1.1045695.8954305-2 2-2zm0 2v4h4V3H3zm10-2h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2h-4c-1.1045695 0-2-.8954305-2-2V3c0-1.1045695.8954305-2 2-2zm0 2v4h4V3h-4zM3 11h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2H3c-1.1045695 0-2-.8954305-2-2v-4c0-1.1045695.8954305-2 2-2zm0 2v4h4v-4H3zm10-2h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2h-4c-1.1045695 0-2-.8954305-2-2v-4c0-1.1045695.8954305-2 2-2zm0 2v4h4v-4h-4z"
|
||||
/>
|
||||
</svg>
|
||||
<span class="sidebar-label">{{ __('Resources') }}</span>
|
||||
</h3>
|
||||
|
||||
@foreach($navigation as $group => $resources)
|
||||
@if (count($groups) > 1)
|
||||
<h4 class="ml-8 mb-4 text-xs text-white-50% uppercase tracking-wide">{{ $group }}</h4>
|
||||
@endif
|
||||
|
||||
<ul class="list-reset mb-8">
|
||||
@foreach($resources as $resource)
|
||||
<li class="leading-tight mb-4 ml-8 text-sm">
|
||||
<router-link :to="{
|
||||
name: 'index',
|
||||
params: {
|
||||
resourceName: '{{ $resource::uriKey() }}'
|
||||
}
|
||||
}" class="text-white text-justify no-underline dim" dusk="{{ $resource::uriKey() }}-resource-link">
|
||||
{{ $resource::label() }}
|
||||
</router-link>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endforeach
|
||||
@endif
|
||||
12
nova/resources/views/router.blade.php
Executable file
12
nova/resources/views/router.blade.php
Executable file
@@ -0,0 +1,12 @@
|
||||
@extends('nova::layout')
|
||||
|
||||
@section('content')
|
||||
<loading ref="loading"></loading>
|
||||
|
||||
<fade-transition>
|
||||
<router-view :key="$route.name + ($route.params.resourceName || '')"></router-view>
|
||||
</fade-transition>
|
||||
|
||||
<portal-target name="modals" transition="fade-transition"></portal-target>
|
||||
<portal-target name="dropdowns" transition="fade-transition"></portal-target>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user