Archived
feat: basic quotes list
This commit is contained in:
1 parent
317c9c2740
commit
4fdff98580
8 files changed
+61
-19
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<x-guest-layout>
|
||||
|
||||
|
||||
<livewire:pages.quote.list/>
|
||||
</x-guest-layout>
|
||||
@@ -24,19 +24,15 @@
|
||||
<body class="antialiased bg-nexi-primary dark:bg-nexi-primary-dark font-sans text-nexi-black transition-colors duration-300">
|
||||
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 ">
|
||||
{{-- TODO: REPLACE WITH OUR LOGO --}}
|
||||
<div>
|
||||
<a href="/" wire:navigate>
|
||||
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
|
||||
</a>
|
||||
<div class="mt-8">
|
||||
<img class="h-24 w-auto rounded" src="https://benjamyn.love/PriceyBot.png" alt="">
|
||||
</div>
|
||||
|
||||
@if (Route::has('login'))
|
||||
<livewire:guest.navigation />
|
||||
@endif
|
||||
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 overflow-hidden">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -33,7 +33,7 @@ new #[Layout('layouts.guest')] class extends Component
|
||||
}
|
||||
}; ?>
|
||||
|
||||
<div>
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 overflow-hidden">
|
||||
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@ new #[Layout('layouts.guest')] class extends Component
|
||||
}
|
||||
}; ?>
|
||||
|
||||
<div>
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 overflow-hidden">
|
||||
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }}
|
||||
</div>
|
||||
|
||||
@@ -69,7 +69,7 @@ new #[Layout('layouts.guest')] class extends Component
|
||||
}
|
||||
}; ?>
|
||||
|
||||
<div>
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 overflow-hidden">
|
||||
<!-- Session Status -->
|
||||
<x-auth-session-status class="mb-4" :status="session('status')"/>
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ new #[Layout('layouts.guest')] class extends Component
|
||||
}
|
||||
}; ?>
|
||||
|
||||
<div>
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 overflow-hidden">
|
||||
<form wire:submit="resetPassword">
|
||||
<!-- Email Address -->
|
||||
<div>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Quote;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Livewire\Attributes\Layout;
|
||||
use Livewire\Attributes\Rule;
|
||||
use Livewire\Volt\Component;
|
||||
|
||||
new #[Layout('layouts.guest')] class extends Component
|
||||
{
|
||||
public Collection $quotes;
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->quotes = Quote::all()->sortDesc();
|
||||
}
|
||||
}; ?>
|
||||
|
||||
|
||||
<div class="px-4 sm:px-6 lg:px-8">
|
||||
<div class="-mx-4 mt-10 ring-1 ring-gray-300 sm:mx-0 sm:rounded-lg bg-nexi-primary dark:bg-zinc-800 transition-colors duration-300">
|
||||
<table class="min-w-full divide-y divide-gray-300">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"
|
||||
class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-nexi-black dark:text-gray-200 sm:pl-6">
|
||||
Quotes
|
||||
</th>
|
||||
{{-- TODO: add logged in user stuff --}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($quotes as $quote)
|
||||
<tr>
|
||||
<td class="relative py-4 pl-4 pr-3 text-sm sm:pl-6 border-t text-nexi-black dark:text-gray-200">
|
||||
{{ $quote->quote }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user