- Replace interactive buttons with anchor tags in Jumbotron and Category sections to improve navigation and SEO. - Fix SQL calculation for gross profit in OrdersTable to ensure correct aggregation. - Remove unused `selectedOutletIds` property from Studio Dashboard Analysis and Overview components. - Adjust padding in the right Jumbotron section for better responsiveness.
59 lines
1.2 KiB
PHP
59 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Livewire\Auth;
|
|
|
|
use App\Traits\Components\WithToast;
|
|
use Illuminate\View\View;
|
|
use Livewire\Attributes\Layout;
|
|
use Livewire\Component;
|
|
|
|
#[Layout('components.layouts.auth', [
|
|
'title' => 'Verifikasi Email',
|
|
])]
|
|
class VerifyEmail extends Component
|
|
{
|
|
use WithToast;
|
|
|
|
public function mount(): void
|
|
{
|
|
$user = auth()->user();
|
|
|
|
if ($user?->hasVerifiedEmail()) {
|
|
$this->redirectIntended(route('member.overview'), navigate: true);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Send email verification notification to the user.
|
|
*/
|
|
public function resend(): void
|
|
{
|
|
$user = auth()->user();
|
|
|
|
if ($user?->hasVerifiedEmail()) {
|
|
$this->redirectIntended(route('member.overview'), navigate: true);
|
|
|
|
return;
|
|
}
|
|
|
|
$user?->sendEmailVerificationNotification();
|
|
|
|
$this->toast('Tautan verifikasi baru telah dikirim ke alamat email Anda.');
|
|
}
|
|
|
|
/**
|
|
* Log the user out of the application.
|
|
*/
|
|
public function logout(): void
|
|
{
|
|
auth()->logout();
|
|
|
|
$this->redirect(route('login'), navigate: true);
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('livewire.auth.verify-email');
|
|
}
|
|
}
|