added invidual purchase
This commit is contained in:
@@ -611,6 +611,7 @@ class PaypalController extends Controller
|
||||
//throw $th;
|
||||
// echo $e->getCode();
|
||||
echo $e->getData();
|
||||
// var_dump($e->getData());
|
||||
Session::put('cartkeyError', 'Invalid payment.');
|
||||
return Redirect::route('cart');
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23,7 +23,6 @@ Route::controllers([
|
||||
'password' => 'Auth\PasswordController',
|
||||
]);
|
||||
|
||||
|
||||
// Route::get('/', 'MainController@index');
|
||||
Route::get('/sportslist', 'MainController@sports');
|
||||
Route::get('/sports/{url}', 'MainController@templatesCat');
|
||||
@@ -147,6 +146,9 @@ Route::group(['middleware' => 'normaluser'], function () {
|
||||
Route::get('user/announcement', 'user\UserController@announcementIndex');
|
||||
Route::post('user/announcement/updateSave', 'user\UserController@announcementUpdateSave');
|
||||
Route::post('user/announcement/status/update', 'user\UserController@announcementUpdateStatus');
|
||||
|
||||
|
||||
Route::post('user/store-items/personal-design', 'user\UserController@saveNewItemFromDesigner');
|
||||
});
|
||||
|
||||
Route::group(['middleware' => 'auth'], function () {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</form>
|
||||
|
||||
<div class="text-center py-3">
|
||||
<nuxt-link to="/auth/reset-password">Forgot your password?</nuxt-link>
|
||||
<a href="{{ url('/password/email') }}">Forgot your password?</a>
|
||||
</div>
|
||||
<hr class="custom-hr" />
|
||||
<div class="text-center py-3">
|
||||
|
||||
@@ -1,55 +1,64 @@
|
||||
@extends('app')
|
||||
@extends('merchbay_main')
|
||||
|
||||
@section('content')
|
||||
@section('main-content')
|
||||
<style>
|
||||
.error{
|
||||
.error {
|
||||
color: red;
|
||||
}
|
||||
.form-wrapper{
|
||||
|
||||
.form-wrapper {
|
||||
margin-top: 20%;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="col-md-4 col-md-offset-4">
|
||||
<div class="form-wrapper">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="text-center">R E S E T P A S S W O R D</h3>
|
||||
<div class="wrapper pb-5">
|
||||
<div class="main__content">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-lg-5 pt-5 text-center text-lg-start">
|
||||
<h4>Forgot Password</h4>
|
||||
<hr class="custom-hr" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form role="form" method="POST" action="{{ url('/password/email') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="form-group">
|
||||
<label for="username" class="control-label">Email Address</label>
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}" title="Please enter your email address" placeholder="example@gmail.com">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default btn-block">Send Password Reset Link</button>
|
||||
</form>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-lg-5">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form role="form" method="POST" action="{{ url('/password/email') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="mb-3">
|
||||
<label for="exampleInputEmail1" class="form-label">Email address</label>
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}" title="Please enter your email address" placeholder="example@gmail.com">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-green btn-sm w-100">
|
||||
Submit
|
||||
</button>
|
||||
<a href="{{ url('./auth/login')}}" class="btn btn-black btn-sm w-100 mt-2">
|
||||
Cancel
|
||||
</a>
|
||||
</form>
|
||||
|
||||
<!-- <hr class="custom-hr" />
|
||||
<div class="text-center py-3">
|
||||
Don't have an account?
|
||||
<a href="{{ url('./auth/register')}}" class="btn btn-black btn-sm w-100">Register</a>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@endsection
|
||||
@@ -1,62 +1,59 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
@extends('merchbay_main')
|
||||
|
||||
@section('main-content')
|
||||
<style>
|
||||
.error{
|
||||
.error {
|
||||
color: red;
|
||||
}
|
||||
.form-wrapper{
|
||||
|
||||
.form-wrapper {
|
||||
margin-top: 20%;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="col-md-4 col-md-offset-4">
|
||||
<div class="form-wrapper">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="text-center">R E S E T P A S S W O R D</h3>
|
||||
<div class="wrapper pb-5">
|
||||
<div class="main__content">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-lg-5 pt-5 text-center text-lg-start">
|
||||
<h4>Reset Password</h4>
|
||||
<hr class="custom-hr" />
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form role="form" method="POST" action="{{ url('/password/reset') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label">Email Address</label>
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}" title="Please enter your email address" placeholder="example@gmail.com">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Password</label>
|
||||
<input type="password" class="form-control" name="password" placeholder="Password">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Confirm Password</label>
|
||||
<input type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default btn-block">Reset Password</button>
|
||||
</form>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-lg-5">
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form role="form" method="POST" action="{{ url('/password/reset') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
<div class="mb-3">
|
||||
<label for="exampleInputEmail1" class="form-label">Email address</label>
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}" title="Please enter your email address" placeholder="example@gmail.com">
|
||||
<!-- <div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div> -->
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="exampleInputPassword1" class="form-label">New password</label>
|
||||
<input type="password" class="form-control" name="password" placeholder="Password" title="Please enter your password">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="exampleInputPassword1" class="form-label">Confirm new password</label>
|
||||
<input type="password" class="form-control" name="password_confirmation" placeholder="Password" title="Please enter your password">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-green btn-sm w-100">
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@endsection
|
||||
@@ -1,140 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
<title>Designer</title>
|
||||
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
|
||||
<!-- ---- Include the above in your HEAD tag -------- -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
<link href="{{asset('/public/designer/css/custom-style.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('/public/designer/css/tab-styles.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('/public/designer/css/input-range-style.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('/public/designer/css/spectrum.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('/public/designer/css/one-by-one-slider.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('/public/designer/custom-fonts/custom-fonts.php')}}" rel='stylesheet' type='text/css'>
|
||||
<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet">
|
||||
<link href="{{asset('/public/designer/css/build.css')}}" rel="stylesheet">
|
||||
<style>
|
||||
.custom-navbar-brand>img {
|
||||
display: block;
|
||||
height: 36px;
|
||||
margin-top: -9px;
|
||||
}
|
||||
.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-loader, .thumbnail a>img, .thumbnail>img{
|
||||
margin: 0 auto;
|
||||
height: 200px;
|
||||
}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
<title>Designer</title>
|
||||
|
||||
.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-thumb-custom, .thumbnail a>img, .thumbnail>img{
|
||||
margin: 0 auto;
|
||||
height: 418.53px;
|
||||
}
|
||||
|
||||
.panel-design-details{
|
||||
height: 484px;
|
||||
overflow: auto;
|
||||
}
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
||||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
|
||||
.error{
|
||||
color : #ff0000;
|
||||
}
|
||||
<!-- ---- Include the above in your HEAD tag -------- -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
.roster-input{
|
||||
border-radius: 0px;
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
}
|
||||
.table-bordered>thead>tr>td, .table-bordered>thead>tr>th{
|
||||
border-bottom-width: 0px;
|
||||
}
|
||||
.btn-roster-action{
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.btn-group-sm>.btn, .btn-roster-action {
|
||||
padding: 0px 5px;
|
||||
}
|
||||
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
|
||||
vertical-align: unset;
|
||||
}
|
||||
<link href="{{ asset('/public/designer/css/custom-style.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/public/designer/css/tab-styles.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/public/designer/css/input-range-style.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/public/designer/css/spectrum.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/public/designer/css/one-by-one-slider.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/public/designer/custom-fonts/custom-fonts.php') }}" rel='stylesheet' type='text/css'>
|
||||
<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet">
|
||||
<link href="{{ asset('/public/designer/css/build.css') }}" rel="stylesheet">
|
||||
<style>
|
||||
.custom-navbar-brand>img {
|
||||
display: block;
|
||||
height: 36px;
|
||||
margin-top: -9px;
|
||||
}
|
||||
|
||||
.table>thead>tr>th{
|
||||
border-bottom:none;
|
||||
}
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
display: -webkit-inline-box;
|
||||
}
|
||||
</style>
|
||||
.carousel-inner>.item>a>img,
|
||||
.carousel-inner>.item>img,
|
||||
.img-loader,
|
||||
.thumbnail a>img,
|
||||
.thumbnail>img {
|
||||
margin: 0 auto;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136108155-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
.carousel-inner>.item>a>img,
|
||||
.carousel-inner>.item>img,
|
||||
.img-thumb-custom,
|
||||
.thumbnail a>img,
|
||||
.thumbnail>img {
|
||||
margin: 0 auto;
|
||||
height: 418.53px;
|
||||
}
|
||||
|
||||
gtag('config', 'UA-136108155-1');
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
.panel-design-details {
|
||||
height: 484px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
.roster-input {
|
||||
border-radius: 0px;
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.table-bordered>thead>tr>td,
|
||||
.table-bordered>thead>tr>th {
|
||||
border-bottom-width: 0px;
|
||||
}
|
||||
|
||||
.btn-roster-action {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.btn-group-sm>.btn,
|
||||
.btn-roster-action {
|
||||
padding: 0px 5px;
|
||||
}
|
||||
|
||||
.table>tbody>tr>td,
|
||||
.table>tbody>tr>th,
|
||||
.table>tfoot>tr>td,
|
||||
.table>tfoot>tr>th,
|
||||
.table>thead>tr>td,
|
||||
.table>thead>tr>th {
|
||||
vertical-align: unset;
|
||||
}
|
||||
|
||||
.table>thead>tr>th {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.hide-bullets {
|
||||
list-style: none;
|
||||
margin-left: -40px;
|
||||
margin-top: 20px;
|
||||
display: -webkit-inline-box;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136108155-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-136108155-1');
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@include('layout.navbar')
|
||||
<div class="body-spacer"></div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4>{{ $client_design_array[0]->DesignName }}
|
||||
<button class="btn btn-default btn-md pull-right" id="btn-reload-design" title="Reload Design"><i class="fa fa-refresh"></i></button>
|
||||
</h4>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
@foreach($templatepaths_arrays as $k => $template)
|
||||
@if($k == 0)
|
||||
<img id="{{ strtolower($template->Side) }}-image-thumb" src="{{asset('/public/images/loading-please-wait.gif')}}" class="img img-responsive img-loader main-thumbnail">
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<ul class="hide-bullets">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@if (!Auth::guest())
|
||||
<div class="panel-footer">
|
||||
<div id="dd_footer_button">
|
||||
<!-- <a href="{{ url('user/my-designs') }}" type="button" class="btn btn-primary pull-right" style="margin-left: 10px;"><i class="fa fa-plus-square"></i> Purchase this Item</a> -->
|
||||
<div class="body-spacer"></div>
|
||||
|
||||
<a href="{{ url('user/my-designs') }}" type="button" class="btn btn-default pull-right"><i class="fa fa-arrow-left"></i> Go to My Designs</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4>{{ $client_design_array[0]->DesignName }}
|
||||
<button class="btn btn-default btn-md pull-right" id="btn-reload-design"
|
||||
title="Reload Design"><i class="fa fa-refresh"></i></button>
|
||||
</h4>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- <input type="hidden" id="images_thumb"> --}}
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
@foreach ($templatepaths_arrays as $k => $template)
|
||||
@if ($k == 0)
|
||||
<img id="{{ strtolower($template->Side) }}-image-thumb"
|
||||
src="{{ asset('/public/images/loading-please-wait.gif') }}"
|
||||
class="img img-responsive img-loader main-thumbnail">
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<ul class="hide-bullets">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@if (!Auth::guest())
|
||||
<div class="panel-footer">
|
||||
<div id="dd_footer_button">
|
||||
<button type="button" class="btn btn-primary pull-right btn-purchase"
|
||||
style="margin-left: 10px;"><i class="fa fa-plus-square"></i> Purchase this
|
||||
Item</button>
|
||||
|
||||
<a href="{{ url('user/my-designs') }}" type="button"
|
||||
class="btn btn-default pull-right"><i class="fa fa-arrow-left"></i> Go to My
|
||||
Designs</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<!-- End Footer -->
|
||||
@@ -142,22 +178,23 @@
|
||||
<!-- JQUERY -->
|
||||
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
|
||||
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous">
|
||||
</script>
|
||||
<!-- FABRIC JS -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.15/fabric.min.js"></script>
|
||||
<!-- FABRIC JS CURVE TEXT -->
|
||||
<script src="https://rawgit.com/EffEPi/fabric.curvedText/master/fabric.curvedText.js"></script>
|
||||
<script src="https://rawgit.com/EffEPi/fabric.curvedText/master/fabric.curvedText.js"></script>
|
||||
<!-- SPECTRUM -->
|
||||
<script src="{{asset('/public/designer/js/spectrum.js')}}"></script>
|
||||
<script src="{{ asset('/public/designer/js/spectrum.js') }}"></script>
|
||||
<!-- CUSTOM SCRIPT -->
|
||||
<script src="{{asset('/public/designer/js/custom-script.js')}}"></script>
|
||||
<script src="{{ asset('/public/designer/js/custom-script.js') }}"></script>
|
||||
<!-- PRICE FORMAT -->
|
||||
<script src="{{asset('/public/designer/js/jquery.priceformat.min.js')}}"></script>
|
||||
<script src="{{ asset('/public/designer/js/jquery.priceformat.min.js') }}"></script>
|
||||
<!-- JQUERY VALIDATE -->
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
@@ -168,133 +205,144 @@
|
||||
myCart();
|
||||
|
||||
$('.price_format').priceFormat({
|
||||
prefix: '$ '
|
||||
});
|
||||
prefix: '$ '
|
||||
});
|
||||
|
||||
$(document).on('button click', '#publish_chk', function(){
|
||||
if(!$(this).is(':checked')){
|
||||
$(document).on('button click', '#publish_chk', function() {
|
||||
if (!$(this).is(':checked')) {
|
||||
// $('#sale_chk').removeAttr("checked");
|
||||
$('#sale_chk').prop('checked', false);
|
||||
$('#item_price').attr("disabled", "disabled");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('button click', '#sale_chk', function(){
|
||||
$(document).on('button click', '#sale_chk', function() {
|
||||
|
||||
if($(this).is(':checked')){
|
||||
if ($(this).is(':checked')) {
|
||||
$('#publish_chk').prop('checked', true);
|
||||
$('#item_price').removeAttr("disabled");
|
||||
$('#itemName').removeAttr("disabled");
|
||||
$('#itemDescription').removeAttr("disabled");
|
||||
}else{
|
||||
} else {
|
||||
// $('#publish_chk').prop('checked', false);
|
||||
$('#item_price').attr("disabled", "disabled");
|
||||
$('#itemName').attr("disabled", "disabled");
|
||||
$('#itemDescription').attr("disabled", "disabled");
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
generateThumbnails();
|
||||
// console.log('{{ $client_design_array[0]->DesignCode }}');
|
||||
$('#toTop').click(function() {
|
||||
$('body,html').animate({scrollTop:0},800);
|
||||
});
|
||||
$('body,html').animate({
|
||||
scrollTop: 0
|
||||
}, 800);
|
||||
});
|
||||
|
||||
$('#custom-navbar-brand').html('<img src="{{asset("/public/images/logo.png")}}">');
|
||||
$('#custom-navbar-brand').html('<img src="{{ asset('/public/images/logo.png') }}">');
|
||||
|
||||
|
||||
$("#frm-design-details").validate({
|
||||
rules: {
|
||||
designName: {
|
||||
required: true
|
||||
},
|
||||
itemName: {
|
||||
required: true
|
||||
},
|
||||
itemDescription: {
|
||||
required: true
|
||||
},
|
||||
storeId: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
designName: {
|
||||
required: true
|
||||
},
|
||||
itemName: {
|
||||
required: true
|
||||
},
|
||||
itemDescription: {
|
||||
required: true
|
||||
},
|
||||
storeId: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).append(error);
|
||||
}else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
submitHandler: submitDesignDetails
|
||||
}); /* edit account validation */
|
||||
|
||||
$(document).on('button click', '.btn-buy', function(){
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).append(error);
|
||||
} else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
submitHandler: submitDesignDetails
|
||||
}); /* edit account validation */
|
||||
|
||||
$(document).on('button click', '.btn-buy', function() {
|
||||
|
||||
var getTemplateCode = $('#template_code').val();
|
||||
|
||||
$('.panel-design-details').load("{{ url('designer/a/buy-form') }}", { temp_code : getTemplateCode }, function(response, status, xhr){
|
||||
$('.panel-design-details').load("{{ url('designer/a/buy-form') }}", {
|
||||
temp_code: getTemplateCode
|
||||
}, function(response, status, xhr) {
|
||||
// console.log(response, status, xhr)
|
||||
$('#dd_footer_button').html('<button type="button" class="btn btn-default pull-right" id="btn_cancel_buy" style="margin-left: 5px;">Cancel</button> ' +
|
||||
'<button type="submit" class="btn btn-primary pull-right" id="btn-submit-publish">Add to Cart</button>');
|
||||
$('#dd_footer_button').html(
|
||||
'<button type="button" class="btn btn-default pull-right" id="btn_cancel_buy" style="margin-left: 5px;">Cancel</button> ' +
|
||||
'<button type="submit" class="btn btn-primary pull-right" id="btn-submit-publish">Add to Cart</button>'
|
||||
);
|
||||
$('.inputName').keyup(function() {
|
||||
this.value = this.value.toLocaleUpperCase();
|
||||
});
|
||||
|
||||
$('#frm-roster').attr("action", "{{ url('/designer/a/save-roster') }}");
|
||||
$('#frm-roster').attr("method", "POST");
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('button click', '.btn-sell', function(){
|
||||
$(document).on('button click', '.btn-sell', function() {
|
||||
|
||||
// var getTemplateCode = $('#template_code').val();
|
||||
alert("adasdas");
|
||||
|
||||
});
|
||||
|
||||
$(document).on('button click', '#btn_cancel_buy', function(){
|
||||
|
||||
$(document).on('button click', '#btn_cancel_buy', function() {
|
||||
// alert("asda")
|
||||
$('.panel-design-details').html('<div class="row"> ' +
|
||||
'<div class="col-sm-12"> ' +
|
||||
'<div class="text-center" style="margin-top: 5em;"> ' +
|
||||
'<div class="form-group"> ' +
|
||||
'<button type="button" class="btn btn-info btn-lg btn-buy" style="width:150px;"><i class="fa fa-list-ol"></i> Add Roster</button>' +
|
||||
'</div> ' +
|
||||
'</div> ' +
|
||||
'</div> ' +
|
||||
'</div>');
|
||||
$('#dd_footer_button').html('<a href="{{ url('user/my-designs') }}" type="button" class="btn btn-default pull-right"><i class="fa fa-arrow-left"></i> Go to My Designs</a>');
|
||||
'<div class="col-sm-12"> ' +
|
||||
'<div class="text-center" style="margin-top: 5em;"> ' +
|
||||
'<div class="form-group"> ' +
|
||||
'<button type="button" class="btn btn-info btn-lg btn-buy" style="width:150px;"><i class="fa fa-list-ol"></i> Add Roster</button>' +
|
||||
'</div> ' +
|
||||
'</div> ' +
|
||||
'</div> ' +
|
||||
'</div>');
|
||||
var link = "{{ url('user/my-designs') }}";
|
||||
$('#dd_footer_button').html('<a href="' + link +
|
||||
'" type="button" class="btn btn-default pull-right"><i class="fa fa-arrow-left"></i> Go to My Designs</a>'
|
||||
);
|
||||
});
|
||||
|
||||
$(document).on('button click', '#addNewRow', function(){
|
||||
$(document).on('button click', '#addNewRow', function() {
|
||||
|
||||
var orderCounterValue = $('#orderCounterValue').val();
|
||||
var numi = document.getElementById('orderCounterValue');
|
||||
var num = (document.getElementById('orderCounterValue').value -1) + 2;
|
||||
var num = (document.getElementById('orderCounterValue').value - 1) + 2;
|
||||
numi.value = num;
|
||||
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
|
||||
type: "POST",
|
||||
url: "{{ url('/designer/a/add-new-row') }}",
|
||||
data:{
|
||||
data: {
|
||||
|
||||
itemCount : num,
|
||||
tempCode : "{{ $client_design_array[0]->TemplateCode }}"
|
||||
itemCount: num,
|
||||
tempCode: "{{ $client_design_array[0]->TemplateCode }}"
|
||||
|
||||
},
|
||||
|
||||
dataType: "html", //expect html to be returned
|
||||
dataType: "html", //expect html to be returned
|
||||
|
||||
success: function(response){
|
||||
var className = "row" + (num - 1);
|
||||
$('.tr-remove-btn').html('<button type="button" class="btn btn-danger btn-sm removeRow btn-roster-action" data-toggle="tooltip" title="Remove"><i class="fa fa-remove" aria-hidden="true"></i></button>');
|
||||
success: function(response) {
|
||||
var className = "row" + (num - 1);
|
||||
$('.tr-remove-btn').html(
|
||||
'<button type="button" class="btn btn-danger btn-sm removeRow btn-roster-action" data-toggle="tooltip" title="Remove"><i class="fa fa-remove" aria-hidden="true"></i></button>'
|
||||
);
|
||||
$('#addnew-btn-tbl-row').remove();
|
||||
$('#tableRow tbody').append(response);
|
||||
$('#orderListPanel').scrollTop($('#orderListPanel')[0].scrollHeight);
|
||||
@@ -308,159 +356,202 @@
|
||||
});
|
||||
|
||||
|
||||
$(document).on('button click', '.removeRow', function(){
|
||||
$(document).on('button click', '.removeRow', function() {
|
||||
var str = $(this).closest('tr').attr('class');
|
||||
var trCount = $('#tableRow tbody').children('tr').length;
|
||||
|
||||
if(trCount == 2){
|
||||
|
||||
if (trCount == 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(trCount == 3){
|
||||
if (trCount == 3) {
|
||||
$('#addnew-btn-tbl-row').remove();
|
||||
$('.tr-remove-btn').html('<button type="button" id="addNewRow" class="btn btn-success btn-sm btn-roster-action" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i></button>');
|
||||
$('.tr-remove-btn').html(
|
||||
'<button type="button" id="addNewRow" class="btn btn-success btn-sm btn-roster-action" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i></button>'
|
||||
);
|
||||
}
|
||||
$('.'+str).remove();
|
||||
$('.' + str).remove();
|
||||
});
|
||||
|
||||
$(document).on('select change', '.order-size', function(){
|
||||
$(document).on('select change', '.order-size', function() {
|
||||
var row_number = $(this).data('row-number');
|
||||
|
||||
|
||||
var jersey_size = "order_jersey_size_" + row_number;
|
||||
var shorts_size = "order_shorts_size_" + row_number;
|
||||
// console.log($(this, 'option').eq(1).val());
|
||||
// if($('#'+jersey_size).val() == "none" && $('#'+shorts_size).val() == "none"){
|
||||
|
||||
|
||||
// }
|
||||
|
||||
});
|
||||
|
||||
$(document).on('a click', '.a_thumbnail', function(){
|
||||
$(document).on('a click', '.a_thumbnail', function() {
|
||||
$('.main-thumbnail').attr('src', $(this).find("img").attr('src'));
|
||||
$('.a_thumbnail').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
});
|
||||
});
|
||||
|
||||
function generateThumbnails(){
|
||||
|
||||
var ip = "{{ config('site_config.prod_private_server_ip') }}";
|
||||
var port = "{{ $array_cat_name[0]->Port }}";
|
||||
var template_format = "{{ $array_templates[0]->TemplateFormat }}";
|
||||
var gen_url;
|
||||
|
||||
if(template_format == "png"){
|
||||
if(port == 5952){
|
||||
gen_url = ip+":"+port+"/merchbay/ap/{{ $client_design_array[0]->DesignCode }}";
|
||||
}else{
|
||||
gen_url = ip+":"+port+"/merchbay/mask/{{ $client_design_array[0]->DesignCode }}";
|
||||
}
|
||||
|
||||
}else{
|
||||
if(port == 5953){
|
||||
gen_url = ip+":"+port+"/merchbay/classic-mask/{{ $client_design_array[0]->DesignCode }}";
|
||||
}else{
|
||||
gen_url = ip+":"+port+"/merchbay/tb/{{ $client_design_array[0]->DesignCode }}";
|
||||
}
|
||||
}
|
||||
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
type: "GET",
|
||||
url: gen_url,
|
||||
dataType: "jsonp", //expect html to be returned
|
||||
beforeSend: function() {
|
||||
console.log('loading images');
|
||||
},
|
||||
success: function(response){
|
||||
|
||||
var SideAndPath = {!! json_encode($templatepaths_arrays) !!};
|
||||
|
||||
for (var i = 0; i < SideAndPath.length; i++) {
|
||||
if(i == 0){
|
||||
var sideName = SideAndPath[i]['Side'];
|
||||
var type = SideAndPath[i]['Type'];
|
||||
|
||||
$('#'+sideName.toLowerCase()+'-image-thumb').attr('src', response['thumb_'+sideName.toLowerCase()]);
|
||||
$('#'+sideName.toLowerCase()+'-image-thumb').removeClass("img-loader");
|
||||
$('#'+sideName.toLowerCase()+'-image-thumb').addClass("img-thumb-custom");
|
||||
}
|
||||
}
|
||||
for (var j = 0; j < SideAndPath.length; j++) {
|
||||
var sideName = SideAndPath[j]['Side'];
|
||||
var type = SideAndPath[j]['Type'];
|
||||
|
||||
if(j == 0){
|
||||
$('.hide-bullets').append('<div class="text-center"> ' +
|
||||
'<li style="padding:10px" class="item-thumb"> ' +
|
||||
'<a class="thumbnail a_thumbnail active" style="min-width: 130px;"> ' +
|
||||
'<img style="height: 100px;" src="'+response['thumb_'+sideName.toLowerCase()]+'" class="img img-responsive">' +
|
||||
'</a> ' +
|
||||
'</li> ' +
|
||||
'</div>');
|
||||
}else{
|
||||
$('.hide-bullets').append('<div class="text-center"> ' +
|
||||
'<li style="padding:10px" class="item-thumb"> ' +
|
||||
'<a class="thumbnail a_thumbnail" style="min-width: 130px;"> ' +
|
||||
'<img style="height: 100px;" src="'+response['thumb_'+sideName.toLowerCase()]+'" class="img img-responsive">' +
|
||||
'</a> ' +
|
||||
'</li> ' +
|
||||
'</div>');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function submitDesignDetails(){
|
||||
var data = $("#frm-design-details").serialize();
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('/designer/a/save-design-details') }}",
|
||||
data : data,
|
||||
beforeSend:function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
$(document).on('a click', '.btn-purchase', function() {
|
||||
var designCode = "{{ $client_design_array[0]->DesignCode }}";
|
||||
// var images_thumb = $('#images_thumb').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "{{ url('/user/store-items/personal-design') }}",
|
||||
data: {
|
||||
designCode: designCode
|
||||
},
|
||||
beforeSend: function(xhr) {
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest');
|
||||
|
||||
// $("#edit-account-msg").fadeOut();
|
||||
// $("#btn-update-account").html('Saving <span class="glyphicon glyphicon-transfer"></span>');
|
||||
},
|
||||
success : function(response){
|
||||
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
||||
},
|
||||
success: function(response) {
|
||||
// console.log(response)
|
||||
if (response.success) {
|
||||
window.location = response.link;
|
||||
} else {
|
||||
alert("Something went wrong. Please try again.");
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
if(response){
|
||||
function generateThumbnails() {
|
||||
|
||||
var ip = "{{ config('site_config.prod_private_server_ip') }}";
|
||||
var port = "{{ $array_cat_name[0]->Port }}";
|
||||
var template_format = "{{ $array_templates[0]->TemplateFormat }}";
|
||||
var gen_url;
|
||||
|
||||
if (template_format == "png") {
|
||||
if (port == 5952) {
|
||||
gen_url = ip + ":" + port + "/merchbay/ap/{{ $client_design_array[0]->DesignCode }}";
|
||||
} else {
|
||||
gen_url = ip + ":" + port + "/merchbay/mask/{{ $client_design_array[0]->DesignCode }}";
|
||||
}
|
||||
|
||||
} else {
|
||||
if (port == 5953) {
|
||||
gen_url = ip + ":" + port + "/merchbay/classic-mask/{{ $client_design_array[0]->DesignCode }}";
|
||||
} else {
|
||||
gen_url = ip + ":" + port + "/merchbay/tb/{{ $client_design_array[0]->DesignCode }}";
|
||||
}
|
||||
}
|
||||
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
type: "GET",
|
||||
url: gen_url,
|
||||
dataType: "jsonp", //expect html to be returned
|
||||
beforeSend: function() {
|
||||
console.log('loading images');
|
||||
},
|
||||
success: function(response) {
|
||||
|
||||
var SideAndPath = {!! json_encode($templatepaths_arrays) !!};
|
||||
|
||||
for (var i = 0; i < SideAndPath.length; i++) {
|
||||
if (i == 0) {
|
||||
var sideName = SideAndPath[i]['Side'];
|
||||
var type = SideAndPath[i]['Type'];
|
||||
|
||||
$('#' + sideName.toLowerCase() + '-image-thumb').attr('src', response['thumb_' +
|
||||
sideName.toLowerCase()]);
|
||||
$('#' + sideName.toLowerCase() + '-image-thumb').removeClass("img-loader");
|
||||
$('#' + sideName.toLowerCase() + '-image-thumb').addClass("img-thumb-custom");
|
||||
}
|
||||
}
|
||||
// var thumbs = [];
|
||||
|
||||
for (var j = 0; j < SideAndPath.length; j++) {
|
||||
var sideName = SideAndPath[j]['Side'];
|
||||
var type = SideAndPath[j]['Type'];
|
||||
|
||||
if (j == 0) {
|
||||
$('.hide-bullets').append('<div class="text-center"> ' +
|
||||
'<li style="padding:10px" class="item-thumb"> ' +
|
||||
'<a class="thumbnail a_thumbnail active" style="min-width: 130px;"> ' +
|
||||
'<img style="height: 100px;" src="' + response['thumb_' + sideName
|
||||
.toLowerCase()] + '" class="img img-responsive">' +
|
||||
'</a> ' +
|
||||
'</li> ' +
|
||||
'</div>');
|
||||
} else {
|
||||
$('.hide-bullets').append('<div class="text-center"> ' +
|
||||
'<li style="padding:10px" class="item-thumb"> ' +
|
||||
'<a class="thumbnail a_thumbnail" style="min-width: 130px;"> ' +
|
||||
'<img style="height: 100px;" src="' + response['thumb_' + sideName
|
||||
.toLowerCase()] + '" class="img img-responsive">' +
|
||||
'</a> ' +
|
||||
'</li> ' +
|
||||
'</div>');
|
||||
}
|
||||
|
||||
// thumbs.push(response['thumb_' + sideName
|
||||
// .toLowerCase()].replace(/^.*\/\/[^\/]+/, '').replace("/", ""))
|
||||
}
|
||||
|
||||
// $('#images_thumb').val(thumbs.join())
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function submitDesignDetails() {
|
||||
var data = $("#frm-design-details").serialize();
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "{{ url('/designer/a/save-design-details') }}",
|
||||
data: data,
|
||||
beforeSend: function(xhr) {
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
||||
|
||||
// $("#edit-account-msg").fadeOut();
|
||||
// $("#btn-update-account").html('Saving <span class="glyphicon glyphicon-transfer"></span>');
|
||||
},
|
||||
success: function(response) {
|
||||
|
||||
if (response) {
|
||||
alert("Successfully saved.");
|
||||
location.reload();
|
||||
}else{
|
||||
} else {
|
||||
alert("Something went wrong. Please try again.");
|
||||
location.reload();
|
||||
}
|
||||
// console.log(response);
|
||||
// alert("Item is successfully added");
|
||||
// $("#edit-account-msg").html("");
|
||||
// $("#edit-account-msg").fadeIn(1000, function(){
|
||||
// $("#edit-account-msg").html(response);
|
||||
// $("#btn-update-account").html('Save Changes');
|
||||
// });
|
||||
}
|
||||
});
|
||||
return false;
|
||||
// $("#edit-account-msg").html("");
|
||||
// $("#edit-account-msg").fadeIn(1000, function(){
|
||||
// $("#edit-account-msg").html(response);
|
||||
// $("#btn-update-account").html('Save Changes');
|
||||
// });
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function myCart(){
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
function myCart() {
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
|
||||
type: "GET",
|
||||
url: "{{url('cartcount')}}",
|
||||
dataType: "html",
|
||||
success: function(response){
|
||||
url: "{{ url('cartcount') }}",
|
||||
dataType: "html",
|
||||
success: function(response) {
|
||||
$("#my-cart-count").html(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1 +1,18 @@
|
||||
Click here to reset your password: {{ url('password/reset/'.$token) }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Reset Password</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p> You requested a link to change your current merchbay account password.</p>
|
||||
<p>Please click this <a href="{{ url('password/reset/'.$token) }}">link</a> to set your new password.</p>
|
||||
|
||||
<br><br><br><br><br>
|
||||
--
|
||||
This is an auto-generated email. Do not reply to this message.
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,63 +1,65 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.design-name-holder{
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
My Designs
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li class="active">My Designs</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<!-- <div class="box-header with-border">
|
||||
<style>
|
||||
.design-name-holder {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
My Designs
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li class="active">My Designs</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<!-- <div class="box-header with-border">
|
||||
asda
|
||||
</div> -->
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
@foreach($array_client_designs as $row)
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<span class="thumbnail">
|
||||
<img src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" >
|
||||
<h4 class="design-name-holder">{{ $row->DesignName }}</h4>
|
||||
<small>{{ date('F j, Y g:i a', strtotime($row->DateCreated)) }}</small>
|
||||
<hr class="line">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<a href="{{ url('/') }}/{{ Request::path() }}/view/{{ $row->DesignCode }} " class="btn btn-warning btn-xs"><i class="fa fa-eye"></i> View</a>
|
||||
<!-- <a href="{{ url('designer/edit') }}/{{ $row->DesignCode }}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i> Edit Design</a> -->
|
||||
<!-- <a href="{{ url('user/my-designs/buy-design') }}/{{ $row->DesignCode }}" class="btn btn-primary btn-xs"><i class="fa fa-shopping-cart"></i> Buy</a> -->
|
||||
@if(Auth::user()->role == "store_owner")
|
||||
<a href="{{ url('user/my-designs/sell-design/' . $row->DesignCode) }}" class="btn btn-success btn-xs"><i class="fa fa-usd"></i> Sell</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
@foreach($array_client_designs as $row)
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<span class="thumbnail">
|
||||
<img src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}">
|
||||
<h4 class="design-name-holder">{{ $row->DesignName }}</h4>
|
||||
<small>{{ date('F j, Y g:i a', strtotime($row->DateCreated)) }}</small>
|
||||
<hr class="line">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<a href="{{ url('/') }}/{{ Request::path() }}/view/{{ $row->DesignCode }} " class="btn btn-warning btn-xs"><i class="fa fa-eye"></i> View</a>
|
||||
<!-- <a href="{{ url('designer/edit') }}/{{ $row->DesignCode }}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i> Edit Design</a> -->
|
||||
<!-- <a href="{{ url('user/my-designs/buy-design') }}/{{ $row->DesignCode }}" class="btn btn-primary btn-xs"><i class="fa fa-shopping-cart"></i> Buy</a> -->
|
||||
<button class="btn btn-primary btn-xs btn-purchase" data-design-code="{{ $row->DesignCode }}"><i class="fa fa-plus-square"></i> Purchase</a>
|
||||
|
||||
@if(Auth::user()->role == "store_owner")
|
||||
<a href="{{ url('user/my-designs/sell-design/' . $row->DesignCode) }}" class="btn btn-success btn-xs"><i class="fa fa-usd"></i> Sell</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="col-md-12 col-sm-12 pull-right">
|
||||
{!! $array_client_designs->render() !!}
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="col-md-12 col-sm-12 pull-right">
|
||||
{!! $array_client_designs->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
</div>
|
||||
@endsection
|
||||
@@ -1723,6 +1723,36 @@
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).on('button click', '.btn-purchase', function() {
|
||||
// console.log()
|
||||
var designCode = $(this).data('design-code');
|
||||
// var images_thumb = $('#images_thumb').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "{{ url('/user/store-items/personal-design') }}",
|
||||
data: {
|
||||
designCode: designCode
|
||||
},
|
||||
beforeSend: function(xhr) {
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
||||
},
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
window.location = response.link;
|
||||
} else {
|
||||
alert("Something went wrong. Please try again.");
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
// fetchUSA()
|
||||
// fetchCanada()
|
||||
getSelectedCountry()
|
||||
|
||||
Reference in New Issue
Block a user