integarting admin dashboard
13
app/Http/Controllers/AdminController.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
@ -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 {
|
||||||
|
@ -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')) {
|
||||||
|
26
app/View/Components/adminfooter.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
26
app/View/Components/adminheader.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
30595
public/Dashboard/css/vertical-layout-light/style.css
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Bold.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Bold.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Bold.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Bold.woff2
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraBold.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraBold.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraBold.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraBold.woff2
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraLight.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraLight.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraLight.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-ExtraLight.woff2
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Light.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Light.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Light.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Light.woff2
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Medium.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Medium.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Medium.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Medium.woff2
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Regular.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Regular.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Regular.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-Regular.woff2
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-SemiBold.eot
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-SemiBold.ttf
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-SemiBold.woff
Normal file
BIN
public/Dashboard/fonts/Manrope/Manrope-SemiBold.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Black.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Black.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Black.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Black.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Bold.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Bold.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Bold.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Bold.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraBold.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraBold.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraBold.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraBold.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraLight.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraLight.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraLight.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-ExtraLight.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Italic.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Italic.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Italic.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Italic.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Light.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Light.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Light.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Light.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Regular.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Regular.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Regular.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-Regular.woff2
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-SemiBold.eot
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-SemiBold.ttf
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-SemiBold.woff
Normal file
BIN
public/Dashboard/fonts/Nunito/Nunito-SemiBold.woff2
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Black.eot
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Black.ttf
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Black.woff
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Black.woff2
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Bold.eot
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Bold.ttf
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Bold.woff
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Bold.woff2
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Light.eot
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Light.ttf
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Light.woff
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Light.woff2
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Medium.eot
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Medium.ttf
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Medium.woff
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Medium.woff2
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Regular.eot
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Regular.ttf
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Regular.woff
Normal file
BIN
public/Dashboard/fonts/Roboto/Roboto-Regular.woff2
Normal file
BIN
public/Dashboard/images/auth/lockscreen-bg.jpg
Normal file
After Width: | Height: | Size: 208 KiB |
BIN
public/Dashboard/images/auth/login-bg.jpg
Normal file
After Width: | Height: | Size: 162 KiB |
BIN
public/Dashboard/images/auth/register-bg.jpg
Normal file
After Width: | Height: | Size: 269 KiB |
BIN
public/Dashboard/images/carousel/banner_1.jpg
Normal file
After Width: | Height: | Size: 178 KiB |
BIN
public/Dashboard/images/carousel/banner_10.jpg
Normal file
After Width: | Height: | Size: 137 KiB |
BIN
public/Dashboard/images/carousel/banner_11.jpg
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
public/Dashboard/images/carousel/banner_12.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
public/Dashboard/images/carousel/banner_2.jpg
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
public/Dashboard/images/carousel/banner_3.jpg
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
public/Dashboard/images/carousel/banner_4.jpg
Normal file
After Width: | Height: | Size: 224 KiB |
BIN
public/Dashboard/images/carousel/banner_5.jpg
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
public/Dashboard/images/carousel/banner_6.jpg
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
public/Dashboard/images/carousel/banner_7.jpg
Normal file
After Width: | Height: | Size: 76 KiB |