Merge branch 'master' of bitbucket.org:venbainformationtechnology/golf_backend
This commit is contained in:
commit
1fcf0d4889
@ -87,13 +87,9 @@ $routes->match(['get','post'],'/rule','Admin_controller::rule');
|
||||
$routes->match(['get','post'],'/booked_slot','Admin_controller::booked_slot');
|
||||
$routes->match(['get','post'],'/manage_availability','Admin_controller::manage_availability');
|
||||
$routes->match(['get','post'],'/add_to_cart_package','Admin_controller::add_to_cart_package');
|
||||
$routes->match(['get','post'],'/continue_shopping/(:any)','Admin_controller::continue_shopping/$1');
|
||||
|
||||
|
||||
|
||||
$routes->match(['get'],'/credits_pack','Admin_controller::credits_pack');
|
||||
|
||||
|
||||
$routes->match(['get'],'/admin_home','Dashboard::admin_home');
|
||||
$routes->match(['get'],'/member_home','Dashboard::member_home');
|
||||
|
||||
@ -109,6 +105,17 @@ $routes->match(['get','post'],'/verify_email/(:any)','Sendmail_controller::verif
|
||||
$routes->match(['get','post'],'/forgot_password','Sendmail_controller::forgot_password');
|
||||
|
||||
|
||||
$routes->match(['get','post'],'/membership','Cart_controller::index');
|
||||
$routes->match(['get','post'],'/add_package_cartdata','Cart_controller::add_package_cartdata');
|
||||
$routes->match(['get','post'],'/view_cart/(:any)','Cart_controller::view_cart/$1');
|
||||
$routes->match(['get','post'],'/continue_shopping/(:any)','Cart_controller::continue_shopping/$1');
|
||||
$routes->match(['get','post'],'/remove_product/(:any)','Cart_controller::remove_product/$1');
|
||||
|
||||
|
||||
$routes->match(['get','post'],'/test/(:any)','Test_controller::index/$1');
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* --------------------------------------------------------------------
|
||||
* Additional Routing
|
||||
|
||||
@ -10,7 +10,7 @@ use App\Models\Credits_usage_tracking_model;
|
||||
use App\Models\Email_template_model;
|
||||
use App\Models\Variable_model;
|
||||
use App\Models\Rule_model;
|
||||
use App\Models\Wp_php_token_model;
|
||||
use App\Models\Cart_token_model;
|
||||
class Admin_controller extends BaseController
|
||||
{
|
||||
public $session;
|
||||
@ -26,7 +26,7 @@ class Admin_controller extends BaseController
|
||||
$this->MailModel = new Email_template_model();
|
||||
$this->VariableModel = new Variable_model();
|
||||
$this->RuleModel = new Rule_model();
|
||||
$this->Wp_php_token_model = new Wp_php_token_model();
|
||||
$this->Cart_token_model = new Cart_token_model();
|
||||
helper(['form', 'url']);
|
||||
}
|
||||
public function index()
|
||||
@ -234,12 +234,6 @@ class Admin_controller extends BaseController
|
||||
echo view('layout/footer');
|
||||
}
|
||||
|
||||
public function credits_pack()
|
||||
{
|
||||
$data = $this->PackagesModel->where('package_type', 'Presales' )->findAll();
|
||||
return json_encode($data);
|
||||
}
|
||||
|
||||
|
||||
public function credits_pack_edit($pack_id = null)
|
||||
{
|
||||
@ -519,22 +513,22 @@ class Admin_controller extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
public function add_to_cart_package()
|
||||
{
|
||||
$data = $this->request->getVar();
|
||||
$data['table_name'] = 'packages_and_pricing';
|
||||
$save_data = $this->Wp_php_token_model->save($data);
|
||||
echo $save_data;
|
||||
}
|
||||
// public function add_to_cart_package()
|
||||
// {
|
||||
// $data = $this->request->getVar();
|
||||
// $data['table_name'] = 'packages_and_pricing';
|
||||
// $save_data = $this->Wp_php_token_model->save($data);
|
||||
// echo $save_data;
|
||||
// }
|
||||
|
||||
public function continue_shopping($param)
|
||||
{
|
||||
$token_exist = $this->Wp_php_token_model->where('token', $param )->find();
|
||||
if ($token_exist)
|
||||
return $token_exist[0]['token'];
|
||||
else
|
||||
return false;
|
||||
}
|
||||
// public function continue_shopping($param)
|
||||
// {
|
||||
// $token_exist = $this->Wp_php_token_model->where('token', $param )->find();
|
||||
// if ($token_exist)
|
||||
// return $token_exist[0]['token'];
|
||||
// else
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// -----------------------------------------------
|
||||
}
|
||||
|
||||
108
app/Controllers/Cart_controller.php
Normal file
108
app/Controllers/Cart_controller.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
use App\Models\User_model;
|
||||
use App\Models\Dashboard_model;
|
||||
use App\Models\Common_model;
|
||||
use App\Models\Member_credits_model;
|
||||
use App\Models\Packages_and_pricing_model;
|
||||
use App\Models\Credits_usage_tracking_model;
|
||||
use App\Models\Email_template_model;
|
||||
use App\Models\Variable_model;
|
||||
use App\Models\Rule_model;
|
||||
use App\Models\Cart_token_model;
|
||||
class Cart_controller extends BaseController
|
||||
{
|
||||
public $session;
|
||||
public function __construct()
|
||||
{
|
||||
$this->session = session();
|
||||
$this->UserModel = new User_model();
|
||||
$this->dModel = new Dashboard_model();
|
||||
$this->cModel = new Common_model();
|
||||
$this->creditsModel = new Member_credits_model();
|
||||
$this->PackagesModel = new Packages_and_pricing_model();
|
||||
$this->CreditsUsageTrackingModel = new Credits_usage_tracking_model();
|
||||
$this->MailModel = new Email_template_model();
|
||||
$this->VariableModel = new Variable_model();
|
||||
$this->RuleModel = new Rule_model();
|
||||
$this->Cart_token_model = new Cart_token_model();
|
||||
helper(['form', 'url']);
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$pack_data['pack_data'] = $this->credits_pack();
|
||||
echo view('membership.php' , $pack_data);
|
||||
}
|
||||
|
||||
public function credits_pack()
|
||||
{
|
||||
$data = $this->PackagesModel->where('package_type', 'Presales' )->findAll();
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function add_package_cartdata()
|
||||
{
|
||||
$token = rand(10 , 99 ).rand(10 , 99 ).rand(10 , 99 );
|
||||
if ($this->request->getVar('c_token')) {
|
||||
$tokendata = $this->Cart_token_model->where('md5(token)', $this->request->getVar('c_token') )->find();
|
||||
$data['token'] = $tokendata[0]['token'];
|
||||
}
|
||||
else {
|
||||
$data['token'] = $token;
|
||||
}
|
||||
$data['primary_id'] = $this->request->getVar('id');
|
||||
$data['table_name'] = 'packages_and_pricing';
|
||||
$this->Cart_token_model->save($data);
|
||||
if ($this->request->getVar('c_token')) {
|
||||
$tokendata = $this->Cart_token_model->where('md5(token)', $this->request->getVar('c_token') )->find();
|
||||
$data['token'] = md5($tokendata[0]['token']);
|
||||
}
|
||||
else {
|
||||
$data['token'] = md5($token);
|
||||
}
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function view_cart($token)
|
||||
{
|
||||
$data = $this->Cart_token_model->where('md5(token)', $token )->findAll();
|
||||
if ($data)
|
||||
{
|
||||
$array = [];
|
||||
foreach ($data as $key => $value) {
|
||||
$arr = $this->PackagesModel->where('id', $value['primary_id'] )->find();
|
||||
array_push($array , $arr[0]);
|
||||
}
|
||||
$val['pack_id'] = $data;
|
||||
$val['gst'] = $this->RuleModel->where('rule_key', 3 )->find();
|
||||
$val['pst'] = $this->RuleModel->where('rule_key', 4 )->find();
|
||||
$val['tokendata'] = $array;
|
||||
$val['token'] = $data[0]['token'];
|
||||
echo view('cart.php',$val);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->index();
|
||||
}
|
||||
}
|
||||
|
||||
public function continue_shopping($token)
|
||||
{
|
||||
$tokendata = $this->Cart_token_model->where('md5(token)', $token )->find();
|
||||
$data['token'] = $tokendata[0]['token'];
|
||||
$data['pack_data'] = $this->credits_pack();
|
||||
echo view('membership.php',$data);
|
||||
}
|
||||
|
||||
public function remove_product($id)
|
||||
{
|
||||
$tokendata = $this->Cart_token_model->where('md5(id)', $id )->findAll();
|
||||
$deletedata = $this->Cart_token_model->where('md5(id)', $id )->delete();
|
||||
return redirect()->to(base_url()."view_cart/".md5($tokendata[0]['token']));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -----------------------------------------------
|
||||
}
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Controllers;
|
||||
use App\Models\Member_model;
|
||||
use App\Models\User_model;
|
||||
use App\Models\Dashboard_model;
|
||||
use App\Models\Common_model;
|
||||
use App\Models\Member_credits_model;
|
||||
@ -18,6 +19,7 @@ class Member_controller extends BaseController
|
||||
|
||||
$this->session = session();
|
||||
$this->MemberModel = new Member_model();
|
||||
$this->UserModel = new User_model();
|
||||
$this->dModel = new Dashboard_model();
|
||||
$this->cModel = new Common_model();
|
||||
$this->creditsModel = new Member_credits_model();
|
||||
@ -237,8 +239,17 @@ class Member_controller extends BaseController
|
||||
{
|
||||
$email = $this->request->getVar('email');
|
||||
$user_data = $this->MemberModel->where('email', $email)->find();
|
||||
$this->session->setTempdata('id',$user_data[0]['id'],3);
|
||||
$this->session->setTempdata('email',$user_data[0]['email'],3);
|
||||
if ($user_data)
|
||||
{
|
||||
$this->session->setTempdata('id',$user_data[0]['id'],3);
|
||||
$this->session->setTempdata('email',$user_data[0]['email'],3);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data = $this->UserModel->where('email', $email)->find();
|
||||
$this->session->setTempdata('id',$data[0]['id'],3);
|
||||
$this->session->setTempdata('email',$data[0]['email'],3);
|
||||
}
|
||||
$this->session->setTempdata('mail_success', "OTP verification sucessfully",3);
|
||||
return view('set_password.php');
|
||||
}
|
||||
|
||||
46
app/Controllers/Test_controller.php
Normal file
46
app/Controllers/Test_controller.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
use App\Models\User_model;
|
||||
use App\Models\Dashboard_model;
|
||||
use App\Models\Common_model;
|
||||
use App\Models\Member_credits_model;
|
||||
use App\Models\Packages_and_pricing_model;
|
||||
use App\Models\Credits_usage_tracking_model;
|
||||
use App\Models\Email_template_model;
|
||||
use App\Models\Variable_model;
|
||||
use App\Models\Rule_model;
|
||||
use App\Models\Cart_token_model;
|
||||
class Test_controller extends BaseController
|
||||
{
|
||||
public $session;
|
||||
public function __construct()
|
||||
{
|
||||
$this->session = session();
|
||||
$this->UserModel = new User_model();
|
||||
$this->dModel = new Dashboard_model();
|
||||
$this->cModel = new Common_model();
|
||||
$this->creditsModel = new Member_credits_model();
|
||||
$this->PackagesModel = new Packages_and_pricing_model();
|
||||
$this->CreditsUsageTrackingModel = new Credits_usage_tracking_model();
|
||||
$this->MailModel = new Email_template_model();
|
||||
$this->VariableModel = new Variable_model();
|
||||
$this->RuleModel = new Rule_model();
|
||||
$this->Cart_token_model = new Cart_token_model();
|
||||
helper(['form', 'url']);
|
||||
}
|
||||
public function index($token)
|
||||
{
|
||||
if(!session()->has('logged_user'))
|
||||
{
|
||||
return redirect()->to(base_url());
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'gopi';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
// -----------------------------------------------
|
||||
}
|
||||
@ -2,9 +2,9 @@
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class Wp_php_token_model extends Model
|
||||
class Cart_token_model extends Model
|
||||
{
|
||||
protected $table = 'wp_php_token';
|
||||
protected $table = 'cart_token';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = ['primary_id','table_name','token'];
|
||||
117
app/Views/cart.php
Normal file
117
app/Views/cart.php
Normal file
@ -0,0 +1,117 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Cart - Golf Evolution</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" href="<?= base_url()."/public"; ?>/assets/member_images/favicon.png" sizes="192x192" />
|
||||
<link rel="apple-touch-icon" href="<?= base_url()."/public"; ?>/assets/member_images/favicon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?= base_url()."/public"; ?>/assets/member_css/front-style.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
|
||||
<script src="<?= base_url()."/public"; ?>/assets/member_js/ajax.js"></script>
|
||||
<input id="url" value="<?= base_url() ?>" type="hidden">
|
||||
</head>
|
||||
<body class="cart">
|
||||
|
||||
<?php include 'member_layout/header.php' ?>
|
||||
|
||||
<section class="pt-5 pb-3">
|
||||
<div class="container">
|
||||
<h1 class="heading-border">Cart</h1>
|
||||
|
||||
<form method="post" action="<?= base_url('/test/').md5($token); ?>">
|
||||
<?php foreach ($tokendata as $key => $value) { ?>
|
||||
|
||||
<input type ="hidden" name="pack_id[]" value="<?= $value['id'] ?>">
|
||||
|
||||
<!-- List of Products -->
|
||||
<div class="row border-bottom pt-4 pb-4">
|
||||
<div class="col-1 mt-2">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/cart-icon.png" width="70" height="70">
|
||||
</div>
|
||||
<div class="col-7">
|
||||
<div class="product-name"><?= $value['package_name'] ?></div>
|
||||
<div class="credits-number"><?= $value['credit'] ?> Credits</div>
|
||||
<div class="credit-point"><?= $value['offer_label'] ?></div>
|
||||
<div class="credit-price">1 Credit at $<?= round($value['cost'] / $value['credit'] , 2); ?></div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="quantity">
|
||||
<input type="number" id="<?php echo $key; ?>" class="input-text qty text" name="count[]" value="1" title="Qty" size="4" min="0" max="" step="1" placeholder="" inputmode="numeric" autocomplete="off"/>
|
||||
<button type="button" class="plus"><i class="fa fa-angle-up"></i></button>
|
||||
<button type="button" class="minus"><i class="fa fa-angle-down"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2 text-right-price">
|
||||
<div class="product-price <?php echo $key; ?>">$<?= $value['cost'] ?></div>
|
||||
<input id="cost_<?php echo $key; ?>" value="<?= $value['cost'] ?>" type="hidden">
|
||||
<div class="remove-product"><a href="<?= base_url('/remove_product/').md5($pack_id[$key]['id']); ?>">Remove</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- Product Sub total-->
|
||||
<div class="row sub-total border-bottom pt-4">
|
||||
<div class="col-12">
|
||||
<div class="row">
|
||||
<div class="col-3 pb-4">
|
||||
<div class="subtotal-label">Subtotal</div>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<?php $cost_sum = array_sum(array_column($tokendata, 'cost'));?>
|
||||
<div class="subtotal-price text-right-price subtotal"><span class="price-symbol">$</span><?= $cost_sum; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Product Tax-->
|
||||
<div class="row">
|
||||
<div class="col-3 pb-4">
|
||||
<div class="subtotal-label">Taxes</div>
|
||||
</div>
|
||||
<div class="col-9 ">
|
||||
<input id="pst" value="<?= $pst[0]['value'] ?>" type="hidden">
|
||||
<input id="gst" value="<?= $gst[0]['value'] ?>" type="hidden">
|
||||
<div class="subtotal-price text-right-price pst"><span class="price-symbol">$</span><?= $cost_sum * $pst[0]['value'] / 100; ?></div>
|
||||
<div class="subtotal-price text-right-price gst"><span class="price-symbol">$</span><?= $cost_sum * $gst[0]['value'] / 100; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Product Sub total-->
|
||||
<div class="row pt-4 pb-4">
|
||||
<div class="col-3 pb-4">
|
||||
<div class="subtotal-label">Total</div>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<div class="subtotal-price text-right-price total"><span class="price-symbol">$</span><?= round($cost_sum + $cost_sum * $pst[0]['value'] / 100 + $cost_sum * $gst[0]['value'] / 100 , 2 ) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Product Sub total-->
|
||||
<div class="row pt-4 pb-4">
|
||||
<div class="col-3 pb-4">
|
||||
<form class="coupon-field">
|
||||
<a href="<?= base_url('/continue_shopping/').md5($token); ?>" >Continue Shopping</a>
|
||||
<!-- <input type="text" placeholder="Have Coupon Code" name="coupon-code" class="coupon-input"/> -->
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-9 checkout-btn">
|
||||
<button type="submit">Checkout</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
<?php include 'member_layout/footer.php' ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
73
app/Views/member_layout/footer.php
Normal file
73
app/Views/member_layout/footer.php
Normal file
@ -0,0 +1,73 @@
|
||||
<section class="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 footer1">
|
||||
<div class="row mb-3">
|
||||
<div class="col-2">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/footer icon/Location-1.png" alt="">
|
||||
</div>
|
||||
<div class="col-10">
|
||||
<div class="footer-title">Our Location</div>
|
||||
<p>Kelowna, BC, Canada</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-2">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/footer icon/Mobile.png" alt="">
|
||||
</div>
|
||||
<div class="col-10">
|
||||
<div class="footer-title">Phone</div>
|
||||
<p>+1 123 456 7890</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-2">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/footer icon/Location-1.png" alt="">
|
||||
</div>
|
||||
<div class="col-10">
|
||||
<div class="footer-title">Email</div>
|
||||
<p>info@golfevolution.com</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 footer2">
|
||||
<div>
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/GolfEvolution-footer-Logo-White.png" alt="">
|
||||
<p>220 – 2544 Enterprise Way,<br/>Kelowna, V1X7X5</p>
|
||||
<ul>
|
||||
<li><a href="https://twitter.com/" target="_blank"><i class="fa fa-twitter"></i></a></li>
|
||||
<li><a href="https://facebook.com/" target="_blank"><i class="fa fa-facebook"></i></a></li>
|
||||
<li><a href="https://www.instagram.com/" target="_blank"><i class="fa fa-instagram"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 footer3">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6 col-6">
|
||||
<ul>
|
||||
<li><a href="https://golfevolutionkelowna.ca/evo-membership/">Pre-Sales Offer</a></li>
|
||||
<li><a href="#">Member Access</a></li>
|
||||
<li><a href="https://golfevolutionkelowna.ca/about-us/">About Us</a></li>
|
||||
<li><a href="https://golfevolutionkelowna.ca/contact-us/">Contact Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-6 ">
|
||||
<ul>
|
||||
<li><a href="#">FAQ</a></li>
|
||||
<li><a href="#">Blog</a></li>
|
||||
<li><a href="#">Terms & Conditions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row footer-copy">
|
||||
<div class="col-lg-12">
|
||||
Copyright © 2023 Golf Evolution
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
58
app/Views/member_layout/header.php
Normal file
58
app/Views/member_layout/header.php
Normal file
@ -0,0 +1,58 @@
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-2"></div>
|
||||
<div class="col-lg-8">
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="https://golfevolutionkelowna.ca/">Home</a></li>
|
||||
<li><a href="https://golfevolutionkelowna.ca/evo-membership/">Pre-Sales Offer</a></li>
|
||||
<li class="custom-logo-link"><a href="#" rel="home"><img src="<?= base_url()."/public"; ?>/assets/member_images/GolfEvolution-Logo-Colour.png" alt="" width="120" height="89"></a></li>
|
||||
<li><a href="https://golfevolutionkelowna.ca/about-us/">About Us</a></li>
|
||||
<li><a href="#" class="nav-button"><img src="<?= base_url()."/public"; ?>/assets/member_images/button-logo.png" width="20" height="20">MEMBER ACCESS</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
<section class="nav">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="nav-main">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/GolfEvolution-footer-Logo-White.png" alt="">
|
||||
<button class="button-menu"><i class="fa fa-bars"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<div id="demo">
|
||||
<section class="nav-hidden">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<ul>
|
||||
<li><a href="">ABOUT US</a></li>
|
||||
<li><a href="">CONTACT US</a></li>
|
||||
<li><a href="">EVO Membership</a> </li>
|
||||
<li><a href="" class="nav-home" style="color: #0d6efd;">Home</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$(".button-menu").click(function(){
|
||||
$("#demo").toggle()
|
||||
});
|
||||
});
|
||||
</script>
|
||||
149
app/Views/membership.php
Normal file
149
app/Views/membership.php
Normal file
@ -0,0 +1,149 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Evo Membership - Golf Evolution</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" href="<?= base_url()."/public"; ?>/assets/member_images/favicon.png" sizes="192x192" />
|
||||
<link rel="apple-touch-icon" href="<?= base_url()."/public"; ?>/assets/member_images/favicon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?= base_url()."/public"; ?>/assets/member_css/front-style.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
|
||||
<script src="<?= base_url()."/public"; ?>/assets/member_js/ajax.js"></script>
|
||||
<input id="url" value="<?= base_url() ?>" type="hidden">
|
||||
<input id="c_token" value="<?php if ($token) { echo md5($token); } ?>" type="hidden">
|
||||
</head>
|
||||
<body class="membership">
|
||||
<?php include 'member_layout/header.php' ?>
|
||||
|
||||
<section class="pt-5 pb-5 evo-membership">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h1 class="heading-border">Evo Membership</h1>
|
||||
<p class="text-center">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.</p>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row membership-img">
|
||||
<div class="col-md-4">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/vector-3.png" width="68" height="80" alt="" class="mb-3"/>
|
||||
<h5 class="mem-icontitle">Lorem Ipsum Lorem</h5>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/vector-4.png" width="68" height="80" alt="" class="mb-3"/>
|
||||
<h5 class="mem-icontitle">Lorem Ipsum Lorem</h5>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/vector-5.png" width="68" height="80" alt="" class="mb-3"/>
|
||||
<h5 class="mem-icontitle">Lorem Ipsum Lorem</h5>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="presale-offer-section">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-6">
|
||||
<h3 class="mb-3 heading-font">Get Credit Packs on <br/>Pre-Sales Offer</h3>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="credit-offer-box">
|
||||
<div class="offer-tag"><img src="<?= base_url()."/public"; ?>/assets/member_images/Offer.png"/ width="43" height="71"></div>
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/cart-icon.png" alt="" width="70" height="70"/>
|
||||
<h6 class="pack-title font-bold"><?= $pack_data[0]['package_name']; ?></h6>
|
||||
<div class="pack-desc"><?= $pack_data[0]['discription']; ?></div>
|
||||
<div class="pack-price font-bold"><span class="price-symbol">$</span><?= $pack_data[0]['cost']; ?></div>
|
||||
<div class="pack-tax font-bold">+ Taxes</div>
|
||||
<div class="pack-credit-number font-bold"><?= $pack_data[0]['credit']; ?> Credits</div>
|
||||
<div class="pack-credit-point"><?= $pack_data[0]['offer_label']; ?></div>
|
||||
<div class="pack-credit-price">1 Credit at $<?= round($pack_data[0]['cost'] / $pack_data[0]['credit'] , 2); ?></div>
|
||||
<a id="<?= $pack_data[0]['id']; ?>" class="pack-submit blue">Add To Cart</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 second-pack">
|
||||
<div class="credit-offer-box">
|
||||
<div class="offer-tag"><img src="<?= base_url()."/public"; ?>/assets/member_images/Offer.png"/ width="43" height="71"></div>
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/cart-icon.png" alt="" width="70" height="70"/>
|
||||
<h6 class="pack-title font-bold"><?= $pack_data[1]['package_name']; ?></h6>
|
||||
<div class="pack-desc"><?= $pack_data[1]['discription']; ?></div>
|
||||
<div class="pack-price font-bold"><span class="price-symbol">$</span><?= $pack_data[1]['cost']; ?></div>
|
||||
<div class="pack-tax font-bold">+ Taxes</div>
|
||||
<div class="pack-credit-number font-bold"><?= $pack_data[1]['credit']; ?> Credits</div>
|
||||
<div class="pack-credit-point"><?= $pack_data[1]['offer_label']; ?></div>
|
||||
<div class="pack-credit-price">1 Credit at $<?= round($pack_data[1]['cost'] / $pack_data[1]['credit'] , 2); ?></div>
|
||||
<a id="<?= $pack_data[1]['id']; ?>" class="pack-submit pink">Add To Cart</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="how-works" style="background-image:url(<?= base_url()."/public/assets/member_images/good-shot-buddy-shot-two-happy-men-playing-game-golf.png"; ?>);">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 pt-5 pb-5 pe-5 bg-white">
|
||||
<h3 class="mb-3 heading-font">How it Works</h3>
|
||||
<p class="mb-5">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
<div class="row work-section">
|
||||
<div class="col-12 mb-4">
|
||||
<h5>Lorem Ipsum</h5>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
<div class="col-12 mb-4">
|
||||
<h5>Lorem Ipsum</h5>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
<div class="col-12 mb-4">
|
||||
<h5>Lorem Ipsum</h5>
|
||||
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="work-submit pink">Get Now</a>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="contact-section pt-5 pb-5 text-center">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-3">
|
||||
|
||||
</div>
|
||||
<div class="col-lg-3 question-title">
|
||||
<h6>Have a question? Reach us</h6>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<a href="#" class="contact-btn">Contact Us</a>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php include 'member_layout/footer.php' ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user