feat/admin-send-quote #15

Merged
llama merged 5 commits from feat/admin-send-quote into master 2023-10-09 05:09:57 -04:00
4 changed files with 21 additions and 4 deletions

View 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>

View File

@ -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
Outdated
Review

I think this also needs to be /admin/send

I think this also needs to be /admin/send
</li>
<li>
{{-- TODO: fill with SVG icons to make it pretty --}}

View File

@ -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>

View File

@ -25,6 +25,10 @@ Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');
Route::view('send', 'admin.send')
Outdated
Review

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
Review

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');