integarting admin dashboard

This commit is contained in:
UronShrestha 2024-07-12 12:51:02 +05:45
parent 2510de390a
commit 1550ab5d30
1758 changed files with 313760 additions and 10 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AdminController extends Controller
{
public function admin()
{
return view('Dashboard.index');
}
}

View File

@ -60,6 +60,8 @@ class OnboardingConversation extends Conversation
{ {
$this->ask('Can you tell us your email?', function (Answer $answer) { $this->ask('Can you tell us your email?', function (Answer $answer) {
$this->email = $answer->getText(); $this->email = $answer->getText();
// Validate Email
if (filter_var($this->email, FILTER_VALIDATE_EMAIL)) { if (filter_var($this->email, FILTER_VALIDATE_EMAIL)) {
$this->say("Your email is " . $this->email); $this->say("Your email is " . $this->email);
$this->confirmEmail(); $this->confirmEmail();
@ -74,7 +76,7 @@ class OnboardingConversation extends Conversation
{ {
$this->ask('Confirm your Email (Y/N):', function (Answer $answer) { $this->ask('Confirm your Email (Y/N):', function (Answer $answer) {
$confirmEmail = $answer->getText(); $confirmEmail = $answer->getText();
if (strtolower($confirmEmail) == 'y') { if (strtolower($confirmEmail) == 'y' || strtolower($confirmEmail) == 'yes') {
$this->say("We got your details. Thank you!"); $this->say("We got your details. Thank you!");
// Save the details to the database // Save the details to the database
@ -83,7 +85,7 @@ class OnboardingConversation extends Conversation
'phone_number' => $this->phoneNumber, 'phone_number' => $this->phoneNumber,
'email' => $this->email, 'email' => $this->email,
]); ]);
} elseif (strtolower($confirmEmail) == 'n') { } elseif (strtolower($confirmEmail) == 'n' || strtolower($confirmEmail) == 'no') {
$this->say("Please confirm your email."); $this->say("Please confirm your email.");
$this->askEmail(); // Re-ask for the email $this->askEmail(); // Re-ask for the email
} else { } else {

View File

@ -233,14 +233,6 @@ class MainController extends Controller
} }
public function checkout(Request $data) public function checkout(Request $data)
{ {
if (session()->has('id')) { if (session()->has('id')) {

View File

@ -0,0 +1,26 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class adminfooter extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.adminfooter');
}
}

View File

@ -0,0 +1,26 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class adminheader extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.adminheader');
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Some files were not shown because too many files have changed in this diff Show More