feat/admin-send-quote #15
9
resources/views/admin/send.blade.php
Normal file
9
resources/views/admin/send.blade.php
Normal file
@ -0,0 +1,9 @@
|
||||
<x-app-layout>
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="p-6 text-nexi-black dark:text-gray-100">
|
||||
<livewire:pages.admin.send/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
@ -35,7 +35,7 @@
|
||||
<ul role="list" class="-mx-2 mt-2 space-y-1">
|
||||
<li>
|
||||
{{-- TODO: fill with SVG icons to make it pretty --}}
|
||||
{{-- <x-sidebar-nav :href="route('a-1')" route="a-1">First Page</x-sidebar-nav>--}}
|
||||
<x-sidebar-nav :href="route('admin.send')" route="send">Send Quote</x-sidebar-nav>
|
||||
|
benjamyn marked this conversation as resolved
Outdated
|
||||
</li>
|
||||
<li>
|
||||
{{-- TODO: fill with SVG icons to make it pretty --}}
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
<x-app-layout>
|
||||
@if(auth()->user()->is_admin)
|
||||
<livewire:pages.admin.send/>
|
||||
@endif
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="p-6 text-nexi-black dark:text-gray-100">
|
||||
{{ __("You're logged in!") }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
|
||||
@ -25,6 +25,10 @@ Route::view('profile', 'profile')
|
||||
->middleware(['auth'])
|
||||
->name('profile');
|
||||
|
||||
Route::view('send', 'admin.send')
|
||||
|
llama
commented
can we prefix send with admin/ once we start getting more admin tools, it'll get mess but the rest looks good to me :D can we prefix send with admin/
once we start getting more admin tools, it'll get mess but the rest looks good to me :D
llama
commented
Route::view('admin/send', 'admin.send') will be better I think Route::view('admin/send', 'admin.send')
will be better I think
|
||||
->middleware(['auth'])
|
||||
->name('admin.send');
|
||||
|
||||
Route::middleware('guest')->group(function () {
|
||||
Volt::route('login', 'pages.auth.login')
|
||||
->name('login');
|
||||
|
||||
Reference in New Issue
Block a user
I think this also needs to be /admin/send