first commit
This commit is contained in:
233
resources/views/app.blade.php
Normal file
233
resources/views/app.blade.php
Normal file
@@ -0,0 +1,233 @@
|
||||
<!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">
|
||||
<title>CREW Sportswear</title>
|
||||
|
||||
<link href="{{ asset('public/css/app.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href='//fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
<link href="{{asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
<!-- <link href="{{asset('public/assets/login/css/style.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('public/assets/login/css/form-elements.css')}}" rel="stylesheet"> -->
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
<!-- 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>
|
||||
<!-- <nav class="navbar navbar-default">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle Navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{{ url('/') }}"><i class="fa fa-angle-double-left"></i> Back</a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@if (Auth::guest())
|
||||
<li><a href="{{ url('/auth/login') }}">Login</a></li>
|
||||
<li><a href="{{ url('/auth/register') }}">Register</a></li>
|
||||
@else
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->username }} <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="{{ url('user') }}">Dashboard</a></li>
|
||||
<li><a href="{{ url('/auth/logout') }}">Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav> -->
|
||||
@include('layout.navbar')
|
||||
@yield('content')
|
||||
<!-- Footer -->
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('.reveal-password').click(function(e){
|
||||
var $pwd = $(".pwd");
|
||||
if ($pwd.attr('type') === 'password') {
|
||||
$pwd.attr('type', 'text');
|
||||
$(this).html('<i class="fa fa-eye-slash"></i>');
|
||||
} else {
|
||||
$pwd.attr('type', 'password');
|
||||
$(this).html('<i class="fa fa-eye"></i>');
|
||||
}
|
||||
});
|
||||
|
||||
if($('.data-errors').length > 0){
|
||||
$('#team-store-login').modal('show')
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#frm-login").validate({
|
||||
rules: {
|
||||
email: {
|
||||
required: true,
|
||||
email: true
|
||||
},
|
||||
password: {
|
||||
required: true
|
||||
//minlength: 6 // <-- removed underscore
|
||||
}
|
||||
},
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).append(error);
|
||||
}else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
submitHandler: submitLoginForm
|
||||
});
|
||||
|
||||
$("#frm-register").validate({
|
||||
rules: {
|
||||
name: {
|
||||
required : true
|
||||
},
|
||||
username: {
|
||||
required : true
|
||||
},
|
||||
email: {
|
||||
required: true,
|
||||
email: true
|
||||
},
|
||||
password: {
|
||||
required: true
|
||||
//minlength: 6 // <-- removed underscore
|
||||
}
|
||||
},
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).append(error);
|
||||
}else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
submitHandler: submitRegisterForm
|
||||
});
|
||||
|
||||
$('.password-protected').click(function(){
|
||||
|
||||
$('#_teamstore_id').val($(this).data('store-id'))
|
||||
// console.log($(this).data('store-id'))
|
||||
$('#team-store-login').modal('show')
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
$(document).on('change', '#select_sort_stores', function(event) {
|
||||
event.preventDefault();
|
||||
$('#frm_search_store').submit();
|
||||
});
|
||||
|
||||
|
||||
}); // end document ready
|
||||
|
||||
function submitLoginForm (){
|
||||
// method="POST" action="{{ url('/auth/login') }}"
|
||||
var data = $("#frm-login").serialize();
|
||||
// console.log(data)
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('/custom/auth') }}",
|
||||
data : data,
|
||||
dataType : 'json',
|
||||
beforeSend: function() {
|
||||
$("#login-response-msg").fadeOut();
|
||||
$("#btn-login").html('Signing in <i class="fa fa-spinner fa-spin"></i>');
|
||||
},
|
||||
success : function(response){
|
||||
$("#login-response-msg").html("");
|
||||
$("#login-response-msg").fadeIn(1000, function(){
|
||||
|
||||
if(response.success){
|
||||
// $("#login-response-msg").html(response);
|
||||
// console.log();
|
||||
location.reload();
|
||||
}else{
|
||||
$("#login-response-msg").html(response.message);
|
||||
}
|
||||
//
|
||||
|
||||
// console.log(response.success);
|
||||
$("#btn-login").html('<span class="glyphicon glyphicon-log-in"></span> Sign In');
|
||||
});
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}/* login submit */
|
||||
|
||||
function submitRegisterForm (){
|
||||
var data = $("#frm-register").serialize();
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('/custom/register') }}",
|
||||
data : data,
|
||||
dataType : 'json',
|
||||
beforeSend: function() {
|
||||
$("#register-response-msg").fadeOut();
|
||||
$("#btn-register").html('Please wait <i class="fa fa-spinner fa-spin"></i>');
|
||||
},
|
||||
success : function(response){
|
||||
$("#register-response-msg").html("");
|
||||
$("#register-response-msg").fadeIn(1000, function(){
|
||||
|
||||
if(response.success){
|
||||
location.reload();
|
||||
}else{
|
||||
$("#register-response-msg").html(response.message);
|
||||
}
|
||||
$("#btn-register").html('Register');
|
||||
});
|
||||
|
||||
// console.log(response);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
121
resources/views/auth.old/login.blade.php
Normal file
121
resources/views/auth.old/login.blade.php
Normal file
@@ -0,0 +1,121 @@
|
||||
<!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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear.">
|
||||
<meta name="keywords" content="custom uniforms, footwear, athletic equipment, sporting goods">
|
||||
<meta name="author" content="Frank John Begornia">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
<meta name="company_url" content="CREW Uniform Designer" />
|
||||
|
||||
<meta property="og:url" content="http://uniformnetwork.com/crew/" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="CREW Uniform Customizer" />
|
||||
<meta property="og:description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear." />
|
||||
<meta property="og:image" content="{{asset('public/images/fb-share-logo.png')}}" />
|
||||
|
||||
<!-- favicons
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{asset('public/favicons/apple-touch-icon.png')}}">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-32x32.png')}}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-16x16.png')}}" sizes="16x16">
|
||||
<link rel="manifest" href="{{asset('public/favicons/manifest.json')}}">
|
||||
<link rel="mask-icon" href="{{asset('public/favicons/safari-pinned-tab.svg')}}" color="#5bbad5">
|
||||
<meta name="theme-color" content="#ffffff">-->
|
||||
<!-- end favicons -->
|
||||
<title>CREW Uniform Designer</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="{{asset('public/assets/css/bootstrap.min.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<link href="{{asset('public/assets/css/ie10-viewport-bug-workaround.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="{{asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||
<script src="{{asset('public/assets/js/ie-emulation-modes-warning.js')}}"></script>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
|
||||
<![endif]-->
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Social Media Share button
|
||||
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=599bc5cf6d61950012975405&product=sticky-share-buttons"></script>-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<div class="login-box-body">
|
||||
<div class="login-logo">
|
||||
|
||||
<img src="images/lg-logo.png" height="50px">
|
||||
</div>
|
||||
<form method="post" id="login-form">
|
||||
<div class="form-group has-feedback">
|
||||
<input type="text" class="form-control" name="username" placeholder="User Id" data-error="#errNm1">
|
||||
<span class="glyphicon glyphicon-user form-control-feedback"></span>
|
||||
<span id="errNm1" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input type="password" class="form-control" name="password" placeholder="Password" data-error="#errNm2">
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
<span id="errNm2" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" id="btn-login" class="btn btn-primary btn-block btn-flat">Sign In</button>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
<br><br><br><br>
|
||||
<!-- /.social-auth-links -->
|
||||
</div>
|
||||
</div> <!-- /container -->
|
||||
<footer class="footer-distributed">
|
||||
<div class="container">
|
||||
<div class="footer-right">
|
||||
<p><span id="siteseal"><script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=4YeGQJyydUcXfgYPaDjEqhST5vLFxix7Ko8NSASTBziYliwFqt7Ou3trqNtv"></script></span></p>
|
||||
<!-- <a href="#"><i class="fa fa-twitter"></i></a>
|
||||
<a href="#"><i class="fa fa-linkedin"></i></a>
|
||||
<a href="#"><i class="fa fa-github"></i></a> -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-left">
|
||||
|
||||
<p class="footer-links">
|
||||
<a href="#">Privacy</a>
|
||||
·
|
||||
<a href="#">Terms of Use</a>
|
||||
·
|
||||
<a href="#">Contact</a>
|
||||
</p>
|
||||
|
||||
<p>CREW © 2017 · Powered by <a href="#">uniformnetwork.com</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- Bootstrap core JavaScript ================================================= !-->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="{{asset('public/assets/js/vendor/jquery.min.js')}}"><\/script>')</script>
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>
|
||||
<script src="{{asset('public/assets/js/crew-designer.js')}}"></script>
|
||||
</body>
|
||||
</html>
|
||||
63
resources/views/auth/login.blade.php
Normal file
63
resources/views/auth/login.blade.php
Normal file
@@ -0,0 +1,63 @@
|
||||
@extends('merchbay_main')
|
||||
|
||||
@section('main-content')
|
||||
<style>
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
.form-wrapper{
|
||||
margin-top: 20%;
|
||||
}
|
||||
</style>
|
||||
<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>Sign in</h4>
|
||||
<hr class="custom-hr" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-lg-5">
|
||||
<div id="login-response-msg"></div>
|
||||
<form role="form" id="frm-login">
|
||||
<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 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"
|
||||
>Password</label
|
||||
>
|
||||
<input type="password" class="form-control" name="password" placeholder="Password" title="Please enter your password">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-green btn-sm w-100">
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="text-center py-3">
|
||||
<nuxt-link to="/auth/reset-password"
|
||||
>Forgot your password?</nuxt-link
|
||||
>
|
||||
</div>
|
||||
<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
|
||||
55
resources/views/auth/password.blade.php
Normal file
55
resources/views/auth/password.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
<style>
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
.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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
72
resources/views/auth/register.blade.php
Normal file
72
resources/views/auth/register.blade.php
Normal file
@@ -0,0 +1,72 @@
|
||||
@extends('merchbay_main')
|
||||
@section('main-content')
|
||||
<style>
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
.g-recaptcha {
|
||||
width:100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="wrapper bg-white 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>Register</h4>
|
||||
<hr class="custom-hr" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col col-lg-5">
|
||||
<form role="form" id="frm-register">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="mb-3">
|
||||
<label class="control-label">Fullname</label>
|
||||
<input type="text" class="form-control" name="name" value="{{ old('name') }}" placeholder="Fullname">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="control-label">Username</label>
|
||||
<input type="text" class="form-control" name="username" value="{{ old('username') }}" placeholder="Username">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="control-label">Email Address</label>
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email Address">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="control-label">Password</label>
|
||||
<input type="password" class="form-control" name="password" id="password" required placeholder="Password">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="control-label">Confirm Password</label>
|
||||
<input type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password" data-rule-equalTo="#password" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="g-recaptcha text-center" data-sitekey="{{ env('CAPTCHA_SITE_KEY') }}"></div>
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-black btn-sm w-100 mt-3"
|
||||
>
|
||||
Register
|
||||
</button>
|
||||
</form>
|
||||
<hr class="custom-hr" />
|
||||
<div class="py-3 text-start">
|
||||
Have already an account?
|
||||
<a href="{{ url('./auth/login') }}" class="btn btn-green btn-sm w-100"
|
||||
>Login here</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
62
resources/views/auth/reset.blade.php
Normal file
62
resources/views/auth/reset.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
.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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
24
resources/views/cliparts/index.blade.php
Normal file
24
resources/views/cliparts/index.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Dashboard
|
||||
<small>Control panel</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="text-center" id="homepage-logo">
|
||||
<img src="{{asset('/public/images/logo.png')}}" class="img img-responsive" />
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
71
resources/views/designer/buy_form.blade.php
Normal file
71
resources/views/designer/buy_form.blade.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<style>
|
||||
tbody#orderTableBody>tr>td {
|
||||
padding: 0px !important;
|
||||
}
|
||||
</style>
|
||||
<!-- <div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-info alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-info-circle"></i> Note:</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque blandit libero a metus condimentum commodo. Donec id lorem sit amet turpis ultricies varius ac eu tortor.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" value="1" id="orderCounterValue" name="orderCounterValue" />
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>#</th> -->
|
||||
<th class="col-md-4">Name</th>
|
||||
<th class="col-md-2">Number</th>
|
||||
<th class="col-md-3">Jersey Size</th>
|
||||
<th class="col-md-3">Shorts Size</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-1">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Name" required>
|
||||
</td>
|
||||
<td>
|
||||
<!-- <input type="text" name="order_numbers[]" id="order_numbers" class="form-control input-sm inputName" placeholder="Number"> -->
|
||||
<select class="form-control input-sm roster-input" name="order_number[]" id="order_number">
|
||||
<option value="null">none</option>
|
||||
@for($i = 0; $i <= 99; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_jersey_size[]" id="order_jersey_size_1" data-row-number="1">
|
||||
<option value="none">none</option>
|
||||
@foreach($jersey_sizes as $j_size)
|
||||
<option value="{{ $j_size }}">{{ $j_size }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td style="border-right: 1px solid #ddd;">
|
||||
<select class="form-control input-sm order-size roster-input" name="order_shorts_size[]" id="order_shorts_size_1" data-row-number="1">
|
||||
<option value="none">none</option>
|
||||
@foreach($shorts_sizes as $s_size)
|
||||
<option value="{{ $s_size }}">{{ $s_size }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
464
resources/views/designer/design_preview.blade.php
Normal file
464
resources/views/designer/design_preview.blade.php
Normal file
@@ -0,0 +1,464 @@
|
||||
<!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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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-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 -->
|
||||
|
||||
<!-- 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>
|
||||
<!-- 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>
|
||||
<!-- SPECTRUM -->
|
||||
<script src="{{asset('/public/designer/js/spectrum.js')}}"></script>
|
||||
<!-- CUSTOM SCRIPT -->
|
||||
<script src="{{asset('/public/designer/js/custom-script.js')}}"></script>
|
||||
<!-- PRICE FORMAT -->
|
||||
<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: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf_token"]').attr('content')
|
||||
}
|
||||
});
|
||||
|
||||
myCart();
|
||||
|
||||
$('.price_format').priceFormat({
|
||||
prefix: '$ '
|
||||
});
|
||||
|
||||
$(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(){
|
||||
|
||||
if($(this).is(':checked')){
|
||||
$('#publish_chk').prop('checked', true);
|
||||
$('#item_price').removeAttr("disabled");
|
||||
$('#itemName').removeAttr("disabled");
|
||||
$('#itemDescription').removeAttr("disabled");
|
||||
}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);
|
||||
});
|
||||
|
||||
$('#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
|
||||
}
|
||||
},
|
||||
|
||||
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){
|
||||
// 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>');
|
||||
$('.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(){
|
||||
|
||||
// var getTemplateCode = $('#template_code').val();
|
||||
alert("adasdas");
|
||||
|
||||
});
|
||||
|
||||
$(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>');
|
||||
});
|
||||
|
||||
$(document).on('button click', '#addNewRow', function(){
|
||||
|
||||
var orderCounterValue = $('#orderCounterValue').val();
|
||||
var numi = document.getElementById('orderCounterValue');
|
||||
var num = (document.getElementById('orderCounterValue').value -1) + 2;
|
||||
numi.value = num;
|
||||
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
|
||||
type: "POST",
|
||||
url: "{{ url('/designer/a/add-new-row') }}",
|
||||
data:{
|
||||
|
||||
itemCount : num,
|
||||
tempCode : "{{ $client_design_array[0]->TemplateCode }}"
|
||||
|
||||
},
|
||||
|
||||
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>');
|
||||
$('#addnew-btn-tbl-row').remove();
|
||||
$('#tableRow tbody').append(response);
|
||||
$('#orderListPanel').scrollTop($('#orderListPanel')[0].scrollHeight);
|
||||
$('.inputName').keyup(function() {
|
||||
this.value = this.value.toLocaleUpperCase();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$(document).on('button click', '.removeRow', function(){
|
||||
var str = $(this).closest('tr').attr('class');
|
||||
var trCount = $('#tableRow tbody').children('tr').length;
|
||||
|
||||
if(trCount == 2){
|
||||
return false;
|
||||
}
|
||||
|
||||
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>');
|
||||
}
|
||||
$('.'+str).remove();
|
||||
});
|
||||
|
||||
$(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(){
|
||||
$('.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+"/ap/{{ $client_design_array[0]->DesignCode }}";
|
||||
}else{
|
||||
gen_url = ip+":"+port+"/mask/{{ $client_design_array[0]->DesignCode }}";
|
||||
}
|
||||
|
||||
}else{
|
||||
if(port == 5953){
|
||||
gen_url = ip+":"+port+"/classic-mask/{{ $client_design_array[0]->DesignCode }}";
|
||||
}else{
|
||||
gen_url = ip+":"+port+"/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');
|
||||
|
||||
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{
|
||||
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;
|
||||
}
|
||||
|
||||
function myCart(){
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
|
||||
type: "GET",
|
||||
url: "{{url('cartcount')}}",
|
||||
dataType: "html",
|
||||
success: function(response){
|
||||
$("#my-cart-count").html(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
4298
resources/views/designer/designer.blade.php
Normal file
4298
resources/views/designer/designer.blade.php
Normal file
File diff suppressed because it is too large
Load Diff
4147
resources/views/designer/designer_edit.blade.php
Normal file
4147
resources/views/designer/designer_edit.blade.php
Normal file
File diff suppressed because it is too large
Load Diff
0
resources/views/designer/sell_form.blade.php
Normal file
0
resources/views/designer/sell_form.blade.php
Normal file
89
resources/views/designer/text_properties.blade.php
Normal file
89
resources/views/designer/text_properties.blade.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<div class="row">
|
||||
<div class="form-group col-md-9 col-sm-9 col-xs-9">
|
||||
|
||||
<label>Fonts</label>
|
||||
<div>
|
||||
<!-- <div class="input-group-btn select" id="select1"> -->
|
||||
<button type="button" id="btn-show-fonts" class="btn btn-default btn-block btn-show-fonts" >Fonts</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3 col-sm-3 col-xs-3">
|
||||
<label>Size (IN)</label>
|
||||
<input type="text" class="form-control text-font-size">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-4 col-sm-4 col-xs-4" style="'padding:0px;">
|
||||
<label>Font Color</label><br>
|
||||
<input type="text" class="fontColor form-control input-sm" />
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-5 col-sm-4 col-xs-4" style="'padding:0px;">
|
||||
<label>Outline Color</label><br>
|
||||
<input type="text" class="strokeColor" />
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-3 col-sm-3 col-xs-3" style="'padding:0px;">
|
||||
<label>Thickness</label>
|
||||
<select class="form-control input-sm outlineThickness" data-outline="strokeColor">
|
||||
@define $i
|
||||
@for($i=0 ; $i <= 10 ; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>';
|
||||
@endfor
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-3 col-sm-3 col-xs-3">
|
||||
<label>Spacing</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-sm-6 col-xs-6">
|
||||
|
||||
<input type="range" class="form-control input-sm spacingTextSlider" value="0" min="-100" max="100" />
|
||||
</div>
|
||||
<div class="form-group col-md-3 col-sm-3 col-xs-3">
|
||||
<input type="text" style="margin-top:5px;" class="form-control input-sm text-center spacingTextValue" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-3 col-sm-3 col-xs-3">
|
||||
<label>Rotate</label>
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-sm-6 col-xs-6">
|
||||
|
||||
<input type="range" class="form-control input-sm rotateTextSlider" value="0" min="-180" max="180" />
|
||||
</div>
|
||||
<div class="form-group col-md-3 col-sm-3 col-xs-3">
|
||||
<input type="text" style="margin-top:5px;" class="form-control input-sm text-center rotateTextValue" />
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12 col-sm-12 col-xs-12">
|
||||
<button class="btn btn-md btn-default btn-block" id="teamname_text_shape">Add text Shape</button>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-md-6 col-sm-6 col-xs-6">
|
||||
<label>Layer Order</label><br>
|
||||
<button class="btn btn-sm btn-default sendSelectedObjectToFront" title="Bring Forward"></button>
|
||||
<button class="btn btn-sm btn-default sendSelectedObjectBack" title="Send Backward"></button>
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-sm-6 col-xs-6">
|
||||
<label>Position</label><br>
|
||||
<!-- <button class="btn btn-sm btn-default " style="margin:2px;" onclick="teamNameStandardPos();">Standard Position</button>
|
||||
<button class="btn btn-sm btn-default" style="margin:2px;" onclick="centerVer();"> <img src="images/align-v1.png" height="16px;" /> Center <br>Vertical</button>
|
||||
<button class="btn btn-sm btn-default" style="margin:2px;" onclick="centerHor();" > <img src="images/align-h1.png" height="16px;" /> Center <br>Horizontal</button> -->
|
||||
<!-- <button class="btn btn-sm btn-default btn-send-middle" title="Standart Position" onclick="teamNameStandardPos();"></button> -->
|
||||
<button class="btn btn-sm btn-default" style="min-width:35px;" title="Center Vertical" onclick="centerVer();"><i class="fa fa-arrows-v"></i></button>
|
||||
<button class="btn btn-sm btn-default" style="min-width:35px;" title="Center Horizontal" onclick="centerHor();" ><i class="fa fa-arrows-h"></i></button>
|
||||
<button class="btn btn-sm btn-default flip-vertically" style="min-width:35px;" title="Flip Vertically"><i class="fa fa-angle-double-up"></i></button>
|
||||
<button class="btn btn-sm btn-default flip-horizontally" style="min-width:35px;" title="Flip Horizontally"><i class="fa fa-angle-double-right"></i></button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
619
resources/views/emails/orders.blade.php
Normal file
619
resources/views/emails/orders.blade.php
Normal file
@@ -0,0 +1,619 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Order Details</title>
|
||||
<style>
|
||||
/* -------------------------------------
|
||||
GLOBAL RESETS
|
||||
------------------------------------- */
|
||||
|
||||
/*All the styling goes here*/
|
||||
|
||||
img {
|
||||
border: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #f6f6f6;
|
||||
font-family: sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: separate;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
width: 100%; }
|
||||
table td {
|
||||
font-family: sans-serif;
|
||||
font-size: 12px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
BODY & CONTAINER
|
||||
------------------------------------- */
|
||||
|
||||
.body {
|
||||
background-color: #f6f6f6;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
|
||||
.container {
|
||||
display: block;
|
||||
margin: 0 auto !important;
|
||||
/* makes it centered */
|
||||
max-width: 680px;
|
||||
padding: 10px;
|
||||
width: 680px;
|
||||
}
|
||||
|
||||
/* This should also be a block element, so that it will fill 100% of the .container */
|
||||
.content {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
max-width: 680px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
HEADER, FOOTER, MAIN
|
||||
------------------------------------- */
|
||||
.main {
|
||||
background: #ffffff;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.content-block {
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
clear: both;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.footer td,
|
||||
.footer p,
|
||||
.footer span,
|
||||
.footer a {
|
||||
color: #999999;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
TYPOGRAPHY
|
||||
------------------------------------- */
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
color: #000000;
|
||||
font-family: sans-serif;
|
||||
font-weight: 400;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 35px;
|
||||
font-weight: 300;
|
||||
text-align: center;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
p,
|
||||
ul,
|
||||
ol {
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
p li,
|
||||
ul li,
|
||||
ol li {
|
||||
list-style-position: inside;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #3498db;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
BUTTONS
|
||||
------------------------------------- */
|
||||
.btn {
|
||||
box-sizing: border-box;
|
||||
width: 100%; }
|
||||
.btn > tbody > tr > td {
|
||||
padding-bottom: 15px; }
|
||||
.btn table {
|
||||
width: auto;
|
||||
}
|
||||
.btn table td {
|
||||
background-color: #ffffff;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
.btn a {
|
||||
background-color: #ffffff;
|
||||
border: solid 1px #3498db;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
color: #3498db;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
padding: 12px 25px;
|
||||
text-decoration: none;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.btn-primary table td {
|
||||
background-color: #3498db;
|
||||
}
|
||||
|
||||
.btn-primary a {
|
||||
background-color: #3498db;
|
||||
border-color: #3498db;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
OTHER STYLES THAT MIGHT BE USEFUL
|
||||
------------------------------------- */
|
||||
.last {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.first {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.mt0 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.mb0 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.preheader {
|
||||
color: transparent;
|
||||
display: none;
|
||||
height: 0;
|
||||
max-height: 0;
|
||||
max-width: 0;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
mso-hide: all;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.powered-by a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-bottom: 1px solid #f6f6f6;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
RESPONSIVE AND MOBILE FRIENDLY STYLES
|
||||
------------------------------------- */
|
||||
@media only screen and (max-width: 620px) {
|
||||
table[class=body] h1 {
|
||||
font-size: 28px !important;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
table[class=body] p,
|
||||
table[class=body] ul,
|
||||
table[class=body] ol,
|
||||
table[class=body] td,
|
||||
table[class=body] span,
|
||||
table[class=body] a {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
table[class=body] .wrapper,
|
||||
table[class=body] .article {
|
||||
padding: 10px !important;
|
||||
}
|
||||
table[class=body] .content {
|
||||
padding: 0 !important;
|
||||
}
|
||||
table[class=body] .container {
|
||||
padding: 0 !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
table[class=body] .main {
|
||||
border-left-width: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
border-right-width: 0 !important;
|
||||
}
|
||||
table[class=body] .btn table {
|
||||
width: 100% !important;
|
||||
}
|
||||
table[class=body] .btn a {
|
||||
width: 100% !important;
|
||||
}
|
||||
table[class=body] .img-responsive {
|
||||
height: auto !important;
|
||||
max-width: 100% !important;
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
PRESERVE THESE STYLES IN THE HEAD
|
||||
------------------------------------- */
|
||||
@media all {
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div {
|
||||
line-height: 100%;
|
||||
}
|
||||
.apple-link a {
|
||||
color: inherit !important;
|
||||
font-family: inherit !important;
|
||||
font-size: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
line-height: inherit !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.btn-primary table td:hover {
|
||||
background-color: #34495e !important;
|
||||
}
|
||||
.btn-primary a:hover {
|
||||
background-color: #34495e !important;
|
||||
border-color: #34495e !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.table-bordered td {
|
||||
border: 1px solid black;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.previewImage {
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="">
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="container">
|
||||
<div class="content">
|
||||
|
||||
<!-- START CENTERED WHITE CONTAINER -->
|
||||
<table role="presentation" class="main">
|
||||
|
||||
<!-- START MAIN CONTENT AREA -->
|
||||
<tr>
|
||||
<td class="wrapper">
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<h3 class="align-center"><b>Order Details</b></h3>
|
||||
<table class="table table-condensed table-bordered" width="100%" style="width: 100%; border-collapse: collapse; ">
|
||||
<tr >
|
||||
<td class="text-center" colspan="2"><b>Payer Information</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-3">Payer Name</td>
|
||||
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-3">Payer Email Address</td>
|
||||
<td>{{ $array_payment_details[0]->Payer_Email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-3">Payment Method</td>
|
||||
<td>{{ $array_payment_details[0]->PaymentMethod }}</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="text-center" colspan="2"><b>Transaction Information</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-3">Subtotal</td>
|
||||
<td>{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
@foreach($item_goup_array as $item)
|
||||
@if($item->VoucherId != null)
|
||||
<tr>
|
||||
<th class="col-md-3">Discount</th>
|
||||
<td>Voucher Code: <b>{{ $item->ProductName }} </b> / {{ $item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
<tr>
|
||||
<td class="col-md-3">Tax</td>
|
||||
<td>{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-3">Total</td>
|
||||
<td>{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-3">Invoice #</td>
|
||||
<td>{{ $array_payment_details[0]->InvoiceNumber }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<p>Item Order(s):</p>
|
||||
@foreach($item_goup_array as $item)
|
||||
@if($item->VoucherId == null)
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="left" style="width: 180px;">
|
||||
@foreach($img_thumb as $img)
|
||||
@if($img->ProductId == $item->ProductId)
|
||||
<img style="height: 200px; overflow: hidden; object-fit: contain;" src="{{ config('site_config.images_url') }}/{{ $img->Image }}">
|
||||
@endif
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
<div style="font-size: 14px;"><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></div>
|
||||
Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }}
|
||||
<table class="table table-condensed table-bordered" width="100%" style="width: 100%; border-collapse: collapse;">
|
||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<td><b>Name</b></td>
|
||||
<td><b>Number</b></td>
|
||||
<td><b>Jersey Size</b></td>
|
||||
<td><b>Shorts Size</b></td>
|
||||
<td><b>Price</b></td>
|
||||
<td><b>Quantity</b></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<td><b>Size</b></td>
|
||||
<td><b>Price</b></td>
|
||||
<td><b>Quantity</b></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<td><b>Price</b></td>
|
||||
<td>Quantity</b></td>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<td><b>Name</b></td>
|
||||
<td><b>Number</b></td>
|
||||
<td><b>Price</b></td>
|
||||
<td><b>Quantity</b></td>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="number-form")
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="name-name2-size-form")
|
||||
<tr>
|
||||
<th>Gamer Tag</th>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
|
||||
<tr>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="number-jersey-shorts-form")
|
||||
<tr>
|
||||
<td><b>Number</b></td>
|
||||
<td><b>Jersey Size</b></td>
|
||||
<td><b>Shorts Size</b></td>
|
||||
<td><b>Price</b></td>
|
||||
<td><b>Quantity</b></td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
|
||||
@endif
|
||||
<!-- table header -->
|
||||
<!-- table body -->
|
||||
@foreach($order_item_array as $sub_item)
|
||||
@if($sub_item->ProductId == $item->ProductId)
|
||||
|
||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<td> @if($sub_item->Name != '') {{ $sub_item->Name }} @else -- @endif </td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->JerseySize }}</td>
|
||||
<td>{{ $sub_item->ShortsSize }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="number-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-name2-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Name2 }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->JerseySize }}</td>
|
||||
<td>{{ $sub_item->ShortsSize }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="number-jersey-shorts-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->JerseySize }}</td>
|
||||
<td>{{ $sub_item->ShortsSize }}</td>
|
||||
<td>{{ $sub_item->Price }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- END MAIN CONTENT AREA -->
|
||||
</table>
|
||||
<!-- END CENTERED WHITE CONTAINER -->
|
||||
|
||||
<!-- START FOOTER -->
|
||||
<div class="footer">
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="content-block">
|
||||
<span class="apple-link">Copyright © 2019 <a href="https://crewsportswear.com">crewsportswear.com</a>. All rights reserved.</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- END FOOTER -->
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
1
resources/views/emails/password.blade.php
Normal file
1
resources/views/emails/password.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
Click here to reset your password: {{ url('password/reset/'.$token) }}
|
||||
20
resources/views/emails/resend_code.blade.php
Normal file
20
resources/views/emails/resend_code.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<!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">
|
||||
<title>Email Verification</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Verify Your Email Address</h1>
|
||||
|
||||
<p>Thanks for creating an account with.</p>
|
||||
|
||||
<p>Use this verification code to verify your email address. </p>
|
||||
|
||||
<p>Verification Code: <b><?php echo $verification_code; ?></b> </p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
41
resources/views/errors/503.blade.php
Normal file
41
resources/views/errors/503.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<head>
|
||||
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #B0BEC5;
|
||||
display: table;
|
||||
font-weight: 100;
|
||||
font-family: 'Lato';
|
||||
}
|
||||
|
||||
.container {
|
||||
text-align: center;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 72px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div class="title">Be right back.</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
17
resources/views/home.blade.php
Normal file
17
resources/views/home.blade.php
Normal file
@@ -0,0 +1,17 @@
|
||||
@extends('app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Home</div>
|
||||
|
||||
<div class="panel-body">
|
||||
You are logged in!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
23
resources/views/layout/footer.blade.php
Normal file
23
resources/views/layout/footer.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<footer class="footer-distributed">
|
||||
<div class="container">
|
||||
<div class="footer-right">
|
||||
<!-- <p><span id="siteseal"><script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=4YeGQJyydUcXfgYPaDjEqhST5vLFxix7Ko8NSASTBziYliwFqt7Ou3trqNtv"></script></span></p> -->
|
||||
<!-- <a href="#"><i class="fa fa-twitter"></i></a>
|
||||
<a href="#"><i class="fa fa-linkedin"></i></a>
|
||||
<a href="#"><i class="fa fa-github"></i></a> -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-left">
|
||||
|
||||
<p class="footer-links">
|
||||
<a href="#">Privacy</a>
|
||||
·
|
||||
<a href="#">Terms of Use</a>
|
||||
·
|
||||
<a href="#">Contact</a>
|
||||
</p>
|
||||
<p>CREW © <?php echo date('Y') ?> · Powered by <a href="http://crewsportswear.com">crewsportswear.com</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
205
resources/views/layout/main.blade.php
Normal file
205
resources/views/layout/main.blade.php
Normal file
@@ -0,0 +1,205 @@
|
||||
<!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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear.">
|
||||
<meta name="keywords" content="custom uniforms, footwear, athletic equipment, sporting goods">
|
||||
<meta name="author" content="CREW Developers">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
<meta name="company_url" content="CREW Uniform Designer" />
|
||||
|
||||
<meta property="og:url" content="https://crewsportswear.com" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="CREW Apparel" />
|
||||
<meta property="og:description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear." />
|
||||
<meta property="og:image" content="{{asset('public/images/fb-share-logo.png')}}" />
|
||||
|
||||
<title>Merchbay</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="{{ asset('public/assets/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<link href="{{ asset('public/assets/css/ie10-viewport-bug-workaround.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="{{ asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||
<script src="{{asset('public/assets/js/ie-emulation-modes-warning.js')}}"></script>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
|
||||
|
||||
<![endif]-->
|
||||
<!-- font-awesome -->
|
||||
<link href="{{ asset('public/assets/css/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Social Media Share button
|
||||
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=599bc5cf6d61950012975405&product=sticky-share-buttons"></script>-->
|
||||
|
||||
<style>
|
||||
.sports-title{
|
||||
margin-top: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-responsive, .thumbnail a>img, .thumbnail>img{
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.col-margin-bottom{
|
||||
padding-bottom: 25px;
|
||||
}
|
||||
|
||||
.breadcrumb{
|
||||
text-transform: uppercase;
|
||||
}
|
||||
</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="container">
|
||||
|
||||
<!-- Example row of columns -->
|
||||
@yield('content')
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap core JavaScript ================================================= !-->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<!-- jquery -->
|
||||
<script src="{{ asset('public/assets/js/jquery.min.js') }}"></script>
|
||||
<!-- bootstrap -->
|
||||
<script src="{{asset('public/assets/js/bootstrap.min.js')}}"></script>]
|
||||
<!-- validate -->
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
||||
<!-- custom js -->
|
||||
<script src="{{ asset('public/assets/js/crew-designer.js') }}"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
$(".hide-row").hide();
|
||||
|
||||
// $(window).scroll(function() {
|
||||
// $('.order-summary').css('top', $(this).scrollTop());
|
||||
// });
|
||||
|
||||
$('.modal').on('show.bs.modal', function() {
|
||||
$(this).show();
|
||||
setModalMaxHeight(this);
|
||||
});
|
||||
|
||||
$(window).resize(function() {
|
||||
if ($('.modal.in').length != 0) {
|
||||
setModalMaxHeight($('.modal.in'));
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('button click', '.c', function() {
|
||||
$(".hide-row").show();
|
||||
});
|
||||
|
||||
$("#frm_voucher").validate({
|
||||
rules: {
|
||||
voucher: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
messages: {},
|
||||
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
|
||||
if (placement) {
|
||||
|
||||
$(placement).append(error)
|
||||
|
||||
}else {
|
||||
|
||||
error.insertAfter(element);
|
||||
|
||||
}
|
||||
},
|
||||
submitHandler: submitVoucher
|
||||
});
|
||||
});
|
||||
|
||||
function submitVoucher(){
|
||||
var form = $('#frm_voucher')
|
||||
var data = form.serialize();
|
||||
// console.log(data);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{{url('teamstore/q/add-voucher')}}",
|
||||
data: data,
|
||||
beforeSend: function(xhr){
|
||||
$("#btn_apply_voucher").attr('disabled', true);
|
||||
$("#btn_apply_voucher").html('Applying <i class="fa fa-spinner fa-spin"></i>');
|
||||
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
},
|
||||
success: function (response) {
|
||||
console.log(response);
|
||||
$("#btn_apply_voucher").attr('disabled', false);
|
||||
$("#btn_apply_voucher").html('Apply');
|
||||
if(response.success){
|
||||
$("#voucher_list").append(response.message);
|
||||
form.validate().resetForm();
|
||||
form[0].reset();
|
||||
$('#my_subtotal').text(response.subtotal);
|
||||
|
||||
}else{
|
||||
$("#error_voucher").html(response.message).fadeIn().delay(5000).fadeOut('slow', function(){
|
||||
$("#error_voucher").html("");
|
||||
$("#error_voucher").css("display", "block");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function setModalMaxHeight(element) {
|
||||
this.$element = $(element);
|
||||
this.$content = this.$element.find('.modal-content');
|
||||
var borderWidth = this.$content.outerHeight() - this.$content.innerHeight();
|
||||
var dialogMargin = $(window).width() < 768 ? 20 : 60;
|
||||
var contentHeight = $(window).height() - (dialogMargin + borderWidth);
|
||||
var headerHeight = this.$element.find('.modal-header').outerHeight() || 0;
|
||||
var footerHeight = this.$element.find('.modal-footer').outerHeight() || 0;
|
||||
var maxHeight = contentHeight - (headerHeight + footerHeight);
|
||||
|
||||
this.$content.css({
|
||||
'overflow': 'hidden'
|
||||
});
|
||||
|
||||
this.$element
|
||||
.find('.modal-body').css({
|
||||
'max-height': maxHeight,
|
||||
'overflow-y': 'auto'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
164
resources/views/layout/navbar.blade.php
Normal file
164
resources/views/layout/navbar.blade.php
Normal file
@@ -0,0 +1,164 @@
|
||||
<nav class="navbar navbar-default navbar-static-top navbar-custom">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{ url('/') }}">
|
||||
<img src="{{asset('public/images/logo.png')}}" />
|
||||
{{-- <small>JAC Printing & Graphics Co.</small> --}}
|
||||
</a>
|
||||
</div>
|
||||
<div id="navbar" class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right navbar-nav-custom">
|
||||
<li style="font-size: 14px;">
|
||||
|
||||
<a href="{{ url('teamstore') }}"><span style="text-transform:uppercase;">Team Store</span></a>
|
||||
|
||||
</li>
|
||||
<li style="font-size: 14px;">
|
||||
<a href="{{ url('cart') }}"><span style="text-transform:uppercase;">My Cart</span> <i class="fa fa-shopping-cart"></i>
|
||||
<span class="badge" id="my-cart-count">{{ \App\Http\Controllers\MainController::getCountCart() }}</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="dropdown-toggle user-profile" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-bars" style="font-size: 21px;"></i></a>
|
||||
<ul class="dropdown-menu">
|
||||
@if (Auth::guest())
|
||||
|
||||
@if(Request::segment(1) == "designer")
|
||||
<li>
|
||||
<a href="#" data-toggle="modal" data-target="#modalLogin" title="Login">Sign in</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-toggle="modal" data-target="#modalLogin" title="Register">Register</a>
|
||||
</li>
|
||||
@else
|
||||
<li>
|
||||
<a href="{{ url('/auth/login') }}" title="Login">Sign in</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url('/auth/register') }}" title="Register">Register</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@else
|
||||
@if(Auth::user()->role == "admin")
|
||||
<li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li>
|
||||
<li><a href="{{ url('admin') }}">Dashboard</a></li>
|
||||
@elseif(Auth::user()->role == "store_owner")
|
||||
<li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li>
|
||||
<li><a href="{{ url('user') }}">Dashboard</a></li>
|
||||
@else
|
||||
<li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li>
|
||||
<li><a href="{{ url('user') }}">Dashboard</a></li>
|
||||
@endif
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="{{ url('/auth/logout') }}"><i class="fa fa-sign-out"></i> Logout</a></li>
|
||||
@endif
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="#" data-toggle="modal" data-target="#privacy_modal">Privacy</a></li>
|
||||
<li><a href="#" data-toggle="modal" data-target="#terms_of_use_modal">Terms of Use</a></li>
|
||||
<li><a href="#" data-toggle="modal" data-target="#about_us_modal">About Us</a></li>
|
||||
<li><a href="#" data-toggle="modal" data-target="#contact_us_modal">Contact Us</a></li>
|
||||
<!-- <li>
|
||||
<i class="fa fa-instagram"></i>
|
||||
<i class="fa fa-facebook-square"></i>
|
||||
</li> -->
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
||||
<!-- Privacy Modal -->
|
||||
<div id="privacy_modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Privacy Policy</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('layout.privacy')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Term of Use Modal -->
|
||||
<div id="terms_of_use_modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Terms of Use</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Coming soon.</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- About Us Modal -->
|
||||
<div id="about_us_modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">About Us</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Coming soon.</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contact Us Modal -->
|
||||
<div id="contact_us_modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Contact Us</h4>
|
||||
</div>
|
||||
<div class="modal-body text-center">
|
||||
<h1>Contact Us</h1>
|
||||
<hr>
|
||||
<h3>Email Address: <small><a href="#">customer-service@crewsportswear.com</a></small></h3>
|
||||
<h3>Address: <small><a href="#">1281 Humbracht Circle
|
||||
Suite J
|
||||
Bartlett, Illinois
|
||||
60103</a></small>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
96
resources/views/layout/privacy.blade.php
Normal file
96
resources/views/layout/privacy.blade.php
Normal file
@@ -0,0 +1,96 @@
|
||||
<div>
|
||||
<div>Privacy Policy</div>
|
||||
<br />
|
||||
<div>Your privacy is important to us. It is Crew Sportswear's policy to respect your privacy regarding any information we may collect from you across our website, http://crewsportswear.com, and other sites we own and operate.</div>
|
||||
<br />
|
||||
<div>1. Information we collect</div>
|
||||
<br />
|
||||
<div>Log data</div>
|
||||
<br />
|
||||
<div>When you visit our website, our servers may automatically log the standard data provided by your web browser. It may include your computer’s Internet Protocol (IP) address, your browser type and version, the pages you visit, the time and date of your visit, the time spent on each page, and other details.</div>
|
||||
<br /><br />
|
||||
<div>Personal information</div>
|
||||
<br />
|
||||
<div>We may ask for personal information, such as your:</div>
|
||||
<br /><br />
|
||||
<div>NameEmailSocial media profilesDate of birthPhone/mobile numberHome/Mailing addressWork addressPayment information</div>
|
||||
<br />
|
||||
<div>2. Legal bases for processing</div>
|
||||
<br />
|
||||
<div>We will process your personal information lawfully, fairly and in a transparent manner. We collect and process information about you only where we have legal bases for doing so.</div>
|
||||
<div> </div>
|
||||
<div>These legal bases depend on the services you use and how you use them, meaning we collect and use your information only where:</div>
|
||||
<div> </div>
|
||||
<br />
|
||||
<div> it’s necessary for the performance of a contract to which you are a party or to take steps at your request before entering into such a contract (for example, when we provide a service you request from us);</div>
|
||||
<div> it satisfies a legitimate interest (which is not overridden by your data protection interests), such as for research and development, to market and promote our services, and to protect our legal rights and interests;</div>
|
||||
<div> you give us consent to do so for a specific purpose (for example, you might consent to us sending you our newsletter); or</div>
|
||||
<div> we need to process your data to comply with a legal obligation.</div>
|
||||
<br />
|
||||
<div> </div>
|
||||
<div>Where you consent to our use of information about you for a specific purpose, you have the right to change your mind at any time (but this will not affect any processing that has already taken place).</div>
|
||||
<div> </div>
|
||||
<div>We don’t keep personal information for longer than is necessary. While we retain this information, we will protect it within commercially acceptable means to prevent loss and theft, as well as unauthorised access, disclosure, copying, use or modification. That said, we advise that no method of electronic transmission or storage is 100% secure and cannot guarantee absolute data security. If necessary, we may retain your personal information for our compliance with a legal obligation or in order to protect your vital interests or the vital interests of another natural person.</div>
|
||||
<br />
|
||||
<div>3. Collection and use of information</div>
|
||||
<br />
|
||||
<div>We may collect, hold, use and disclose information for the following purposes and personal information will not be further processed in a manner that is incompatible with these purposes:</div>
|
||||
<br /><br />
|
||||
<div>to enable you to customise or personalise your experience of our website;to enable you to access and use our website, associated applications and associated social media platforms;to contact and communicate with you;for internal record keeping and administrative purposes;for analytics, market research and business development, including to operate and improve our website, associated applications and associated social media platforms;to run competitions and/or offer additional benefits to you;for advertising and marketing, including to send you promotional information about our products and services and information about third parties that we consider may be of interest to you; andto comply with our legal obligations and resolve any disputes that we may have.</div>
|
||||
<br />
|
||||
<div>4. Disclosure of personal information to third parties</div>
|
||||
<br />
|
||||
<div>We may disclose personal information to:</div>
|
||||
<br /><br />
|
||||
<div>third party service providers for the purpose of enabling them to provide their services, including (without limitation) IT service providers, data storage, hosting and server providers, ad networks, analytics, error loggers, debt collectors, maintenance or problem-solving providers, marketing or advertising providers, professional advisors and payment systems operators;our employees, contractors and/or related entities; andcredit reporting agencies, courts, tribunals and regulatory authorities, in the event you fail to pay for goods or services we have provided to you.</div>
|
||||
<br />
|
||||
<div>5. International transfers of personal information</div>
|
||||
<br />
|
||||
<div>The personal information we collect is stored and processed in United States, or where we or our partners, affiliates and third-party providers maintain facilities. By providing us with your personal information, you consent to the disclosure to these overseas third parties.</div>
|
||||
<br />
|
||||
<div>We will ensure that any transfer of personal information from countries in the European Economic Area (EEA) to countries outside the EEA will be protected by appropriate safeguards, for example by using standard data protection clauses approved by the European Commission, or the use of binding corporate rules or other legally accepted means.</div>
|
||||
<br />
|
||||
<div>Where we transfer personal information from a non-EEA country to another country, you acknowledge that third parties in other jurisdictions may not be subject to similar data protection laws to the ones in our jurisdiction. There are risks if any such third party engages in any act or practice that would contravene the data privacy laws in our jurisdiction and this might mean that you will not be able to seek redress under our jurisdiction’s privacy laws.</div>
|
||||
<br />
|
||||
<div>6. Your rights and controlling your personal information</div>
|
||||
<br />
|
||||
<div>Choice and consent: By providing personal information to us, you consent to us collecting, holding, using and disclosing your personal information in accordance with this privacy policy. If you are under 16 years of age, you must have, and warrant to the extent permitted by law to us, that you have your parent or legal guardian’s permission to access and use the website and they (your parents or guardian) have consented to you providing us with your personal information. You do not have to provide personal information to us, however, if you do not, it may affect your use of this website or the products and/or services offered on or through it.</div>
|
||||
<br />
|
||||
<div>Information from third parties: If we receive personal information about you from a third party, we will protect it as set out in this privacy policy. If you are a third party providing personal information about somebody else, you represent and warrant that you have such person’s consent to provide the personal information to us.</div>
|
||||
<br />
|
||||
<div>Restrict: You may choose to restrict the collection or use of your personal information. If you have previously agreed to us using your personal information for direct marketing purposes, you may change your mind at any time by contacting us using the details below. If you ask us to restrict or limit how we process your personal information, we will let you know how the restriction affects your use of our website or products and services.</div>
|
||||
<br />
|
||||
<div>Access and data portability: You may request details of the personal information that we hold about you. You may request a copy of the personal information we hold about you. Where possible, we will provide this information in CSV format or other easily readable machine format. You may request that we erase the personal information we hold about you at any time. You may also request that we transfer this personal information to another third party.</div>
|
||||
<br />
|
||||
<div>Correction: If you believe that any information we hold about you is inaccurate, out of date, incomplete, irrelevant or misleading, please contact us using the details below. We will take reasonable steps to correct any information found to be inaccurate, incomplete, misleading or out of date.</div>
|
||||
<br />
|
||||
<div>Notification of data breaches: We will comply laws applicable to us in respect of any data breach.</div>
|
||||
<br />
|
||||
<div>Complaints: If you believe that we have breached a relevant data protection law and wish to make a complaint, please contact us using the details below and provide us with full details of the alleged breach. We will promptly investigate your complaint and respond to you, in writing, setting out the outcome of our investigation and the steps we will take to deal with your complaint. You also have the right to contact a regulatory body or data protection authority in relation to your complaint.</div>
|
||||
<br />
|
||||
<div>Unsubscribe: To unsubscribe from our e-mail database or opt-out of communications (including marketing communications), please contact us using the details below or opt-out using the opt-out facilities provided in the communication.</div>
|
||||
<br />
|
||||
<div>7. Cookies</div>
|
||||
<br />
|
||||
<div>We use “cookies” to collect information about you and your activity across our site. A cookie is a small piece of data that our website stores on your computer, and accesses each time you visit, so we can understand how you use our site. This helps us serve you content based on preferences you have specified. Please refer to our Cookie Policy for more information.</div>
|
||||
<br />
|
||||
<div>8. Business transfers</div>
|
||||
<br />
|
||||
<div>If we or our assets are acquired, or in the unlikely event that we go out of business or enter bankruptcy, we would include data among the assets transferred to any parties who acquire us. You acknowledge that such transfers may occur, and that any parties who acquire us may continue to use your personal information according to this policy.</div>
|
||||
<br />
|
||||
<div>9. Limits of our policy</div>
|
||||
<br />
|
||||
<div>Our website may link to external sites that are not operated by us. Please be aware that we have no control over the content and policies of those sites, and cannot accept responsibility or liability for their respective privacy practices.</div>
|
||||
<br />
|
||||
<div>10. Changes to this policy</div>
|
||||
<br />
|
||||
<div>At our discretion, we may change our privacy policy to reflect current acceptable practices. We will take reasonable steps to let users know about changes via our website. Your continued use of this site after any changes to this policy will be regarded as acceptance of our practices around privacy and personal information.</div>
|
||||
<br />
|
||||
<div>If we make a significant change to this privacy policy, for example changing a lawful basis on which we process your personal information, we will ask you to re-consent to the amended privacy policy.</div>
|
||||
<br /><br />
|
||||
<div>Crew Sportswear Data Controller</div>
|
||||
<div>Angelo Garcia</div>
|
||||
<div>angelo@crewsportswear.com</div>
|
||||
<br /><br /><br />
|
||||
<div>This policy is effective as of 23 February 2019.</div>
|
||||
</div>
|
||||
1026
resources/views/main_layouts/admin_template.blade.php
Normal file
1026
resources/views/main_layouts/admin_template.blade.php
Normal file
File diff suppressed because it is too large
Load Diff
8
resources/views/main_layouts/footer.blade.php
Normal file
8
resources/views/main_layouts/footer.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<footer class="main-footer">
|
||||
<!-- To the right -->
|
||||
<div class="pull-right hidden-xs">
|
||||
Version 1.0
|
||||
</div>
|
||||
<!-- Default to the left -->
|
||||
<strong>Copyright © <?php echo date('Y') ?> <a href="http://uniformnetwork.com">uniformnetwork.com</a>.</strong> All rights reserved.
|
||||
</footer>
|
||||
33
resources/views/main_layouts/header.blade.php
Normal file
33
resources/views/main_layouts/header.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<header class="main-header">
|
||||
<!-- Logo -->
|
||||
<a href="./" class="logo">
|
||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||
<span class="logo-mini"><b>C</b></span>
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<span class="logo-lg"><b>CREW</b></span>
|
||||
</a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<!-- Control Sidebar Toggle Button -->
|
||||
<li class="user user-menu">
|
||||
<a href="./?p=profile">
|
||||
<img src="https://pbs.twimg.com/profile_images/683817679325536256/5LxYst9E.jpg" class="user-image" alt="User Image">
|
||||
<span class="hidden-xs">Frank John Begornia</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url('auth/logout') }}"><i class="fa fa-sign-out"></i> Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
59
resources/views/main_layouts/sidebar.blade.php
Normal file
59
resources/views/main_layouts/sidebar.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar" style="height: auto;">
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="https://pbs.twimg.com/profile_images/683817679325536256/5LxYst9E.jpg" class="img-circle" alt="User Image">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>Frank John Begornia</p>
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
<li class="header">MAIN NAVIGATION</li>
|
||||
<li class="{{ Request::is('admin') ? 'active' : '' }}">
|
||||
<a href="{{ url('/admin') }}">
|
||||
<i class="fa fa-home"></i> <span>Home</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('admin/sports') ? 'active' : '' }}">
|
||||
<a href="{{ url('/admin/sports/') }}">
|
||||
<i class="fa fa-th"></i> <span>Sports</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('admin/templates') ? 'active' : '' }}">
|
||||
<a href="{{ url('/admin/templates') }}">
|
||||
<i class="fa fa-list"></i> <span>Templates</span>
|
||||
</a>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<a href="#">
|
||||
<i class="fa fa-th"></i> <span>Widgets</span>
|
||||
<span class="pull-right-container">
|
||||
<small class="label pull-right bg-green">new</small>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-pie-chart"></i>
|
||||
<span>Charts</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li class="active"><a href="pages/charts/chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
|
||||
<li><a href="pages/charts/morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
|
||||
<li><a href="pages/charts/flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
|
||||
<li><a href="pages/charts/inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
|
||||
</ul>
|
||||
</li> -->
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
31
resources/views/merchbay/footer.blade.php
Normal file
31
resources/views/merchbay/footer.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<footer class="footer-bg py-3">
|
||||
<div class="container">
|
||||
<div class="row h-100">
|
||||
<div class="col-lg-7 align-self-center">
|
||||
<div class="copyright">Copyright © 2021, <b>MERCHBAY</b>. All right reserved.</div>
|
||||
<ul class="footer-menu">
|
||||
<li class="footer-menu-item">
|
||||
<a href="/about-us">About Us</a>
|
||||
</li>
|
||||
<li class="footer-menu-item">
|
||||
<a href="/contact-us">Contact Us</a>
|
||||
</li>
|
||||
<li class="footer-menu-item">
|
||||
<a href="/terms-and-conditions">Terms and Conditions</a>
|
||||
</li>
|
||||
<li class="footer-menu-item">
|
||||
<a href="/privacy-policy">Privacy Policy</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-5 align-self-center">
|
||||
<div class="float-end">
|
||||
<img src="{{asset('public/images/socials/facebook-icon_42x42.png')}}" width="30" alt="" class="img-fluid mr-3">
|
||||
<img src="{{asset('public/images/socials/instagram-icon_42x42.png')}}" width="30" alt="" class="img-fluid mr-3">
|
||||
<img src="{{asset('public/images/socials/twitter-icon_42x42.png')}}" width="30" alt="" class="img-fluid mr-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
181
resources/views/merchbay/index.blade.php
Normal file
181
resources/views/merchbay/index.blade.php
Normal file
@@ -0,0 +1,181 @@
|
||||
@extends('merchbay_main')
|
||||
@section('main-content')
|
||||
|
||||
<div class="main__carousel">
|
||||
<div class="">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div
|
||||
id="carouselExampleDark"
|
||||
class="carousel carousel-dark slide"
|
||||
data-bs-ride="carousel"
|
||||
>
|
||||
<ol class="carousel-indicators">
|
||||
<li
|
||||
data-bs-target="#carouselExampleDark"
|
||||
data-bs-slide-to="0"
|
||||
class="active"
|
||||
></li>
|
||||
<li
|
||||
data-bs-target="#carouselExampleDark"
|
||||
data-bs-slide-to="1"
|
||||
></li>
|
||||
<li
|
||||
data-bs-target="#carouselExampleDark"
|
||||
data-bs-slide-to="2"
|
||||
></li>
|
||||
</ol>
|
||||
<div class="carousel-inner">
|
||||
<div class="carousel-item active" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/WIPCAPS.jpg" class="d-block w-100" alt="...">
|
||||
{{-- <v-lazy-image
|
||||
src="https://crewsportswear.app:5955/WIPCAPS.jpg"
|
||||
class="d-block w-100"
|
||||
alt="..."
|
||||
/> --}}
|
||||
<!-- <div class="carousel-caption d-none d-md-block">
|
||||
<h5>First slide label</h5>
|
||||
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="carousel-item" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/NINONG.jpg" class="d-block w-100" alt="...">
|
||||
{{-- <v-lazy-image
|
||||
src="https://crewsportswear.app:5955/NINONG.jpg"
|
||||
class="d-block w-100"
|
||||
alt="..."
|
||||
/> --}}
|
||||
<!-- <div class="carousel-caption d-none d-md-block">
|
||||
<h5>Second slide label</h5>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="carousel-item" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/DRIVE.jpg" class="d-block w-100" alt="...">
|
||||
{{-- <v-lazy-image
|
||||
src="https://crewsportswear.app:5955/DRIVE.jpg"
|
||||
class="d-block w-100"
|
||||
alt="..."
|
||||
/> --}}
|
||||
<!-- <div class="carousel-caption d-none d-md-block">
|
||||
<h5>Third slide label</h5>
|
||||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<a
|
||||
class="carousel-control-prev"
|
||||
href="#carouselExampleDark"
|
||||
role="button"
|
||||
data-bs-slide="prev"
|
||||
>
|
||||
<span
|
||||
class="carousel-control-prev-icon"
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
<span class="visually-hidden">Previous</span>
|
||||
</a>
|
||||
<a
|
||||
class="carousel-control-next"
|
||||
href="#carouselExampleDark"
|
||||
role="button"
|
||||
data-bs-slide="next"
|
||||
>
|
||||
<span
|
||||
class="carousel-control-next-icon"
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
<span class="visually-hidden">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main__content mt-5">
|
||||
<div class="container">
|
||||
<!-- Forms Search -->
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-lg-8">
|
||||
<form class="row g-2 g-lg-5">
|
||||
<div class="col-lg-9">
|
||||
<div class="input-group">
|
||||
{{-- <input
|
||||
type="text"
|
||||
class="form-control border-end-0"
|
||||
placeholder="Search Store"
|
||||
aria-label="Search Store"
|
||||
aria-describedby="basic-addon2"
|
||||
/> --}}
|
||||
<input type="text" class="form-control border-end-0" placeholder="Search Store" value="{{ $keyword }}" name="q">
|
||||
<input type="hidden" class="form-control border-end-0" placeholder="Search Store" value="latest" name="s">
|
||||
<button
|
||||
class="input-group-text bg-white border-start-0"
|
||||
id="basic-addon2"
|
||||
><i class="fa fa-search"></i
|
||||
></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 added-or">
|
||||
<button type="submit" class="btn btn-black mb-3 w-100">
|
||||
Design your own
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('teamstore-sublayouts.stores')
|
||||
<!-- First 12 Stores -->
|
||||
|
||||
<!-- Featured Products -->
|
||||
<div class="row py-5">
|
||||
<div class="col-lg-12">
|
||||
<div class="text-center">
|
||||
<h3>Featured Products</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="col-lg-2 col-md-3 col-6"
|
||||
v-for="index in 6"
|
||||
:key="index"
|
||||
>
|
||||
<div class="text-center p-3">
|
||||
<div class="store-logo">
|
||||
<v-lazy-image
|
||||
src="https://crewsportswear.com/uploads/images/teamstore/all-in-athletics/logo.jpg"
|
||||
class="d-block border shadow-sm"
|
||||
alt="..."
|
||||
/>
|
||||
</div>
|
||||
<div class="store-name text-truncate">22PLE</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- calling designers -->
|
||||
<div class="adbg">
|
||||
<div class="row py-3">
|
||||
<div class="col-lg-8">
|
||||
<div class="p-5">
|
||||
<h2>
|
||||
Calling all <span class="designer-text">Designers</span>
|
||||
</h2>
|
||||
<p>
|
||||
Sign in on Merchbay and share your creativity and expand
|
||||
<br />your ideas. Click below button to know more.
|
||||
</p>
|
||||
|
||||
<div class="pt-3">
|
||||
<button type="button" class="btn btn-black mb-3 px-5">
|
||||
Learn more
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
91
resources/views/merchbay/navbar.blade.php
Normal file
91
resources/views/merchbay/navbar.blade.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<nav class="navbar navbar-expand-lg bg-black">
|
||||
<div class="container">
|
||||
<a class="navbar-brand text-white" href="/">
|
||||
<span>M</span>erchbay
|
||||
</a>
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarMainToggler"
|
||||
aria-controls="navbarMainToggler"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
>
|
||||
<i class="bi bi-list text-white"></i>
|
||||
</button>
|
||||
<div
|
||||
class="collapse navbar-collapse justify-content-end"
|
||||
id="navbarMainToggler"
|
||||
v-if="hasMenu"
|
||||
>
|
||||
<ul class="navbar-nav ml-auto mb-2 mb-lg-0">
|
||||
<!-- <li class="d-inline d-lg-none">
|
||||
<button data-toggle="collapse" data-target="#navbarMainToggler" class="close float-end" aria-expanded="true">×</button>
|
||||
</li> -->
|
||||
<li class="nav-item text-center d-md-none d-block">
|
||||
<h5>Menu</h5>
|
||||
</li>
|
||||
|
||||
@if (Auth::guest())
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href="{{ url('./auth/login') }}"
|
||||
class="nav-link btn btn-white-outline btn-sm text-uppercase mx-1 sign"
|
||||
>Sign in</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href="{{ url('./auth/register') }}"
|
||||
class="nav-link btn btn-white-outline btn-sm text-uppercase mx-1"
|
||||
>Register</a
|
||||
>
|
||||
</li>
|
||||
@else
|
||||
|
||||
@if(Auth::user()->role == "admin")
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href="{{ url('admin') }}"
|
||||
class="nav-link btn btn-white-outline btn-sm text-uppercase mx-1"
|
||||
>Dashboard</a
|
||||
>
|
||||
</li>
|
||||
@elseif(Auth::user()->role == "store_owner")
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href="{{ url('user') }}"
|
||||
class="nav-link btn btn-white-outline btn-sm text-uppercase mx-1"
|
||||
>Dashboard</a
|
||||
>
|
||||
</li>
|
||||
@else
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href="{{ url('user') }}"
|
||||
class="nav-link btn btn-white-outline btn-sm text-uppercase mx-1"
|
||||
>Dashboard</a
|
||||
>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href="{{ url('./auth/logout') }}"
|
||||
class="nav-link btn btn-white-outline btn-sm text-uppercase mx-1"
|
||||
>Logout</a
|
||||
>
|
||||
</li>
|
||||
@endif
|
||||
<li class="nav-item">
|
||||
<a href="{{ url('cart') }}" type="button" class="nav-link btn btn-navbar-cart btn-sm">
|
||||
<i class="bi bi-cart-fill"></i>
|
||||
<span class="badge bg-secondary">{{ \App\Http\Controllers\MainController::getCountCart() }}</span>
|
||||
{{-- <span class="visually-hidden">unread messages</span> --}}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
488
resources/views/merchbay_main.blade.php
Normal file
488
resources/views/merchbay_main.blade.php
Normal file
@@ -0,0 +1,488 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap 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">
|
||||
|
||||
<title>Merchbay</title>
|
||||
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;400;500;600;700;800;900&display=swap" rel="stylesheet">
|
||||
|
||||
<link href="{{asset('public/assets/css/merchbay/styles.css')}}" rel="stylesheet">
|
||||
<!-- <link href="{{asset('public/assets/login/css/style.css')}}" rel="stylesheet">
|
||||
<link href="{{asset('public/assets/login/css/form-elements.css')}}" rel="stylesheet"> -->
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
<!-- 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('merchbay.navbar')
|
||||
<div class="container">
|
||||
<div class="wrapper bg-white">
|
||||
@yield('main-content')
|
||||
</div>
|
||||
@include('merchbay.footer')
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Optional JavaScript; choose one of the two! -->
|
||||
|
||||
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('.reveal-password').click(function(e){
|
||||
var $pwd = $(".pwd");
|
||||
if ($pwd.attr('type') === 'password') {
|
||||
$pwd.attr('type', 'text');
|
||||
$(this).html('<i class="fa fa-eye-slash"></i>');
|
||||
} else {
|
||||
$pwd.attr('type', 'password');
|
||||
$(this).html('<i class="fa fa-eye"></i>');
|
||||
}
|
||||
});
|
||||
|
||||
if($('.data-errors').length > 0){
|
||||
$('#team-store-login').modal('show')
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#frm-login").validate({
|
||||
rules: {
|
||||
email: {
|
||||
required: true,
|
||||
email: true
|
||||
},
|
||||
password: {
|
||||
required: true
|
||||
//minlength: 6 // <-- removed underscore
|
||||
}
|
||||
},
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).append(error);
|
||||
}else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
submitHandler: submitLoginForm
|
||||
});
|
||||
|
||||
$("#frm-register").validate({
|
||||
rules: {
|
||||
name: {
|
||||
required : true
|
||||
},
|
||||
username: {
|
||||
required : true
|
||||
},
|
||||
email: {
|
||||
required: true,
|
||||
email: true
|
||||
},
|
||||
password: {
|
||||
required: true
|
||||
//minlength: 6 // <-- removed underscore
|
||||
}
|
||||
},
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).append(error);
|
||||
}else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
submitHandler: submitRegisterForm
|
||||
});
|
||||
|
||||
$('.password-protected').click(function(){
|
||||
|
||||
$('#_teamstore_id').val($(this).data('store-id'))
|
||||
// console.log($(this).data('store-id'))
|
||||
$('#team-store-login').modal('show')
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
$(document).on('change', '#select_sort_stores', function(event) {
|
||||
event.preventDefault();
|
||||
$('#frm_search_store').submit();
|
||||
});
|
||||
|
||||
|
||||
}); // end document ready
|
||||
|
||||
function submitLoginForm (){
|
||||
// method="POST" action="{{ url('/auth/login') }}"
|
||||
var data = $("#frm-login").serialize();
|
||||
// console.log(data)
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('/custom/auth') }}",
|
||||
data : data,
|
||||
dataType : 'json',
|
||||
beforeSend: function() {
|
||||
$("#login-response-msg").fadeOut();
|
||||
$("#btn-login").html('Signing in <i class="fa fa-spinner fa-spin"></i>');
|
||||
},
|
||||
success : function(response){
|
||||
$("#login-response-msg").html("");
|
||||
$("#login-response-msg").fadeIn(1000, function(){
|
||||
|
||||
if(response.success){
|
||||
// $("#login-response-msg").html(response);
|
||||
// console.log();
|
||||
location.reload();
|
||||
}else{
|
||||
$("#login-response-msg").html(response.message);
|
||||
}
|
||||
//
|
||||
|
||||
// console.log(response.success);
|
||||
$("#btn-login").html('<span class="glyphicon glyphicon-log-in"></span> Sign In');
|
||||
});
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}/* login submit */
|
||||
|
||||
function submitRegisterForm (){
|
||||
var data = $("#frm-register").serialize();
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('/custom/register') }}",
|
||||
data : data,
|
||||
dataType : 'json',
|
||||
beforeSend: function() {
|
||||
$("#register-response-msg").fadeOut();
|
||||
$("#btn-register").html('Please wait <i class="fa fa-spinner fa-spin"></i>');
|
||||
},
|
||||
success : function(response){
|
||||
$("#register-response-msg").html("");
|
||||
$("#register-response-msg").fadeIn(1000, function(){
|
||||
|
||||
if(response.success){
|
||||
location.reload();
|
||||
}else{
|
||||
$("#register-response-msg").html(response.message);
|
||||
}
|
||||
$("#btn-register").html('Register');
|
||||
});
|
||||
|
||||
// console.log(response);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// $('.img-zoom').zoom();
|
||||
$('.inputName').keyup(function() {
|
||||
this.value = this.value.toLocaleUpperCase();
|
||||
});
|
||||
|
||||
// $('.carousel').bcSwipe({ threshold: 50 });
|
||||
|
||||
$('.btn-number').click(function(e){
|
||||
e.preventDefault();
|
||||
|
||||
fieldName = $(this).attr('data-field');
|
||||
type = $(this).attr('data-type');
|
||||
var input = $("input[name='"+fieldName+"']");
|
||||
var currentVal = parseInt(input.val());
|
||||
if (!isNaN(currentVal)) {
|
||||
if(type == 'minus') {
|
||||
|
||||
if(currentVal > input.attr('min')) {
|
||||
input.val(currentVal - 1).change();
|
||||
}
|
||||
if(parseInt(input.val()) == input.attr('min')) {
|
||||
$(this).attr('disabled', true);
|
||||
}
|
||||
|
||||
} else if(type == 'plus') {
|
||||
|
||||
if(currentVal < input.attr('max')) {
|
||||
input.val(currentVal + 1).change();
|
||||
}
|
||||
if(parseInt(input.val()) == input.attr('max')) {
|
||||
$(this).attr('disabled', true);
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
input.val(0);
|
||||
}
|
||||
});
|
||||
|
||||
$('#myCarousel').on('slid.bs.carousel', function (e) {
|
||||
var id = $('.item.active').data('slide-number');
|
||||
// $('#carousel-text').html($('#slide-content-'+id).html());
|
||||
// console.log(id)
|
||||
$('.a_thumbnail').removeClass('active');
|
||||
$('#carousel-selector-'+id).addClass('active');
|
||||
});
|
||||
|
||||
$('.input-number').focusin(function(){
|
||||
$(this).data('oldValue', $(this).val());
|
||||
});
|
||||
|
||||
$('.input-number').change(function() {
|
||||
|
||||
minValue = parseInt($(this).attr('min'));
|
||||
maxValue = parseInt($(this).attr('max'));
|
||||
valueCurrent = parseInt($(this).val());
|
||||
|
||||
name = $(this).attr('name');
|
||||
if(valueCurrent >= minValue) {
|
||||
$(".btn-number[data-type='minus'][data-field='"+name+"']").removeAttr('disabled')
|
||||
} else {
|
||||
alert('Sorry, the minimum value was reached');
|
||||
$(this).val($(this).data('oldValue'));
|
||||
}
|
||||
if(valueCurrent <= maxValue) {
|
||||
$(".btn-number[data-type='plus'][data-field='"+name+"']").removeAttr('disabled')
|
||||
} else {
|
||||
alert('Sorry, the maximum value was reached');
|
||||
$(this).val($(this).data('oldValue'));
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$(".input-number").keydown(function (e) {
|
||||
// Allow: backspace, delete, tab, escape, enter and .
|
||||
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 190]) !== -1 ||
|
||||
// Allow: Ctrl+A
|
||||
(e.keyCode == 65 && e.ctrlKey === true) ||
|
||||
// Allow: home, end, left, right
|
||||
(e.keyCode >= 35 && e.keyCode <= 39)) {
|
||||
// let it happen, don't do anything
|
||||
return;
|
||||
}
|
||||
// Ensure that it is a number and stop the keypress
|
||||
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$('.multi-item-carousel .item').each(function(){
|
||||
var next = $(this).next();
|
||||
if (!next.length) {
|
||||
next = $(this).siblings(':first');
|
||||
}
|
||||
|
||||
next.children(':first-child').clone().appendTo($(this));
|
||||
|
||||
|
||||
for (var i=0; i<2; i++){
|
||||
|
||||
next=next.next();
|
||||
|
||||
if (!next.length){
|
||||
next=$(this).siblings(':first');
|
||||
}
|
||||
next.children(':first-child').clone().appendTo($(this));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#jersey_chk').click(function(){
|
||||
|
||||
var product_price = $('#product_price').val();
|
||||
var getPriceHold = $('#price_holder').val();
|
||||
var getHalf = getPriceHold / 2;
|
||||
|
||||
if($(this).is(':checked')){
|
||||
$('.td-hide').css('display', '');
|
||||
$('.th-hide').css('display', '');
|
||||
|
||||
$('#product_price').val(Number(product_price) + Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
// console.log($('#product_price').val() - getHalf);
|
||||
}else{
|
||||
$('.cls-uniformName').val('');
|
||||
$('.td-hide').css('display', 'none');
|
||||
$('.th-hide').css('display', 'none');
|
||||
|
||||
$('#product_price').val(Number(product_price) - Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
// console.log($('#product_price').val() + getHalf);
|
||||
}
|
||||
// console.log($(this).is(':checked'));
|
||||
});
|
||||
|
||||
$('#shorts_chk').click(function(){
|
||||
|
||||
var product_price = $('#product_price').val();
|
||||
var getPriceHold = $('#price_holder').val();
|
||||
var getHalf = getPriceHold / 2;
|
||||
|
||||
if($(this).is(':checked')){
|
||||
$('#product_price').val(Number(product_price) + Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
}else{
|
||||
|
||||
$('#product_price').val(Number(product_price) - Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('input keyup', '.capitalizeText', function() {
|
||||
$(this).val($(this).val().toUpperCase());
|
||||
});
|
||||
|
||||
$('[id^=carousel-selector-]').click( function(){
|
||||
var id = this.id.substr(this.id.lastIndexOf("-") + 1);
|
||||
var id = parseInt(id);
|
||||
$('#myCarousel').carousel(id);
|
||||
$('.a_thumbnail').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
});
|
||||
|
||||
$("#frm-order-list").validate({
|
||||
|
||||
rules: {
|
||||
|
||||
'order_jersey_size[]': {
|
||||
required: true
|
||||
},
|
||||
'order_shorts_size[]': {
|
||||
required: true
|
||||
},
|
||||
'order_number[]': {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).html(error);
|
||||
}
|
||||
},
|
||||
|
||||
success: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).html('');
|
||||
}
|
||||
},
|
||||
submitHandler: submitOrderListForm
|
||||
});
|
||||
|
||||
function submitOrderListForm(){
|
||||
var data = $("#frm-order-list").serializeArray();
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('teamstore/q/add-to-cart') }}",
|
||||
data : data,
|
||||
dataType: 'json',
|
||||
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 = "{{ url('cart') }}";
|
||||
}else{
|
||||
alert(response.message);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ adding of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
$(document).on('button click', '#addNewRow', function(){
|
||||
var p_id = $('#p_id').val();
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
type: "POST",
|
||||
url: "{{ url('/teamstore/q/add-new-row') }}",
|
||||
data: {
|
||||
p_id : p_id
|
||||
},
|
||||
|
||||
dataType: "html", //expect html to be returned
|
||||
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){
|
||||
|
||||
var d = new Date();
|
||||
var n = d.getTime();
|
||||
|
||||
var parser = new DOMParser();
|
||||
var doc = parser.parseFromString(response, "text/html");
|
||||
var elem = doc.getElementById("orderTableBody");
|
||||
var currentClassName = elem.getElementsByTagName('tr')[0].className;
|
||||
elem.getElementsByClassName(currentClassName)[0].classList.remove(currentClassName); // remove current Classname
|
||||
elem.getElementsByTagName('tr')[0].classList.add("table-tr-" + Math.ceil(Math.random() * 999999) + n); // add random classname
|
||||
$('#tableRow tbody').append(elem.innerHTML);
|
||||
$('#addnew-btn-tbl-row').html('')
|
||||
$('#addnew-btn-tbl-row').append('<button type="button" id="addNewRow" class="btn btn-success btn-sm pull-left" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i> Add Row</button>');
|
||||
$('.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>');
|
||||
$('#orderListPanel').scrollTop($('#orderListPanel')[0].scrollHeight);
|
||||
$('.inputName').keyup(function() {
|
||||
this.value = this.value.toLocaleUpperCase();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ end adding of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ removing of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
$(document).on('button click', '.removeRow', function(){
|
||||
var str = $(this).closest('tr').attr('class');
|
||||
var trCount = $('#tableRow tbody').children('tr').length;
|
||||
if(trCount <= 2){
|
||||
$('#addnew-btn-tbl-row').html('');
|
||||
$('.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();
|
||||
});
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ end removing of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
}); //end document ready
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
169
resources/views/payPremium.blade.php
Normal file
169
resources/views/payPremium.blade.php
Normal file
@@ -0,0 +1,169 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
<style type="text/css">
|
||||
.db-bk-color-one {
|
||||
background-color: #f55039;
|
||||
}
|
||||
.db-bk-color-two {
|
||||
background-color: #46A6F7;
|
||||
}
|
||||
.db-bk-color-three {
|
||||
background-color: #47887E;
|
||||
}
|
||||
.db-bk-color-six {
|
||||
background-color: #F59B24;
|
||||
}
|
||||
.db-padding-btm {
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
.db-button-color-square {
|
||||
color: #fff;
|
||||
background-color: rgba(0, 0, 0, 0.50);
|
||||
border: none;
|
||||
border-radius: 0px;
|
||||
}
|
||||
.db-button-color-square:hover {
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
.db-pricing-eleven {
|
||||
margin-bottom: 30px;
|
||||
margin-top: 50px;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, .5);
|
||||
color: #fff;
|
||||
line-height: 30px;
|
||||
}
|
||||
.db-pricing-eleven ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
padding-left: 0px;
|
||||
}
|
||||
.db-pricing-eleven ul li {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.db-pricing-eleven ul li i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
.db-pricing-eleven .price {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
padding: 40px 20px 20px 20px;
|
||||
font-size: 60px;
|
||||
font-weight: 900;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.db-pricing-eleven .price small {
|
||||
color: #B8B8B8;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
.db-pricing-eleven .type {
|
||||
background-color: #52E89E;
|
||||
padding: 40px 10px;
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
font-size: 30px;
|
||||
}
|
||||
.db-pricing-eleven .pricing-footer {
|
||||
padding: 10px;
|
||||
}
|
||||
.db-pricing-eleven.popular {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.db-pricing-eleven.popular .price {
|
||||
padding-top: 50px;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="row text-center">
|
||||
<div class="col-md-12">
|
||||
<h3>Laravel 5 - Payment Using Paypal</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row db-padding-btm db-attached">
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
|
||||
<div class="db-wrapper">
|
||||
<form method="POST" action="{{ url('getCheckout') }}">
|
||||
<input type="hidden" name="type" value="small" >
|
||||
<input type="hidden" name="pay" value="30" >
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="db-pricing-eleven db-bk-color-one">
|
||||
<div class="price">
|
||||
<sup>$</sup>30
|
||||
<small>per quarter</small>
|
||||
</div>
|
||||
<div class="type">
|
||||
SMALL PLAN
|
||||
</div>
|
||||
<ul>
|
||||
<li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
|
||||
<li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
|
||||
<li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
|
||||
</ul>
|
||||
<div class="pricing-footer">
|
||||
<button class="btn db-button-color-square btn-lg">BOOK ORDER</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
|
||||
<div class="db-wrapper">
|
||||
<form method="POST" action="{{ url('getCheckout') }}">
|
||||
<input type="hidden" name="type" value="medium" >
|
||||
<input type="hidden" name="pay" value="45" >
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="db-pricing-eleven db-bk-color-two popular">
|
||||
<div class="price">
|
||||
<sup>$</sup>45
|
||||
<small>per quarter</small>
|
||||
</div>
|
||||
<div class="type">
|
||||
MEDIUM PLAN
|
||||
</div>
|
||||
<ul>
|
||||
<li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
|
||||
<li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
|
||||
<li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
|
||||
</ul>
|
||||
<div class="pricing-footer">
|
||||
<button class="btn db-button-color-square btn-lg">BOOK ORDER</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
|
||||
<div class="db-wrapper">
|
||||
<form method="POST" action="{{ url('getCheckout') }}">
|
||||
<input type="hidden" name="type" value="advance" >
|
||||
<input type="hidden" name="pay" value="68" >
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="db-pricing-eleven db-bk-color-three">
|
||||
<div class="price">
|
||||
<sup>$</sup>68
|
||||
<small>per quarter</small>
|
||||
</div>
|
||||
<div class="type">
|
||||
ADVANCE PLAN
|
||||
</div>
|
||||
<ul>
|
||||
<li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
|
||||
<li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
|
||||
<li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
|
||||
</ul>
|
||||
<div class="pricing-footer">
|
||||
<button class="btn db-button-color-square btn-lg">BOOK ORDER</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
95
resources/views/paypal/get_done.blade.php
Normal file
95
resources/views/paypal/get_done.blade.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<!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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear.">
|
||||
<meta name="keywords" content="custom uniforms, footwear, athletic equipment, sporting goods">
|
||||
<meta name="author" content="Frank John Begornia">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
|
||||
<meta property="og:url" content="http://uniformnetwork.com/crew/" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="CREW Apparel" />
|
||||
<meta property="og:description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear." />
|
||||
<meta property="og:image" content="{{asset('public/images/fb-share-logo.png')}}" />
|
||||
|
||||
<!-- favicons
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{asset('public/favicons/apple-touch-icon.png')}}">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-32x32.png')}}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-16x16.png')}}" sizes="16x16">
|
||||
<link rel="manifest" href="{{asset('public/favicons/manifest.json')}}">
|
||||
<link rel="mask-icon" href="{{asset('public/favicons/safari-pinned-tab.svg')}}" color="#5bbad5">
|
||||
<meta name="theme-color" content="#ffffff">-->
|
||||
<!-- end favicons -->
|
||||
<title>CREW Sportswear</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="{{asset('public/assets/css/bootstrap.min.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<link href="{{asset('public/assets/css/ie10-viewport-bug-workaround.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="{{asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||
<script src="{{asset('public/assets/js/ie-emulation-modes-warning.js')}}"></script>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
|
||||
<![endif]-->
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Social Media Share button
|
||||
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=599bc5cf6d61950012975405&product=sticky-share-buttons"></script>-->
|
||||
|
||||
<link href="{{asset('/public/designer/css/build.css')}}" rel="stylesheet">
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
</div> <!-- /container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript ================================================= !-->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script src="{{asset('public/assets/js/bootstrap.min.js')}}"></script>
|
||||
<!-- <script>window.jQuery || document.write('<script src="{{asset('public/assets/js/vendor/jquery.min.js')}}"><\/script>')</script> -->
|
||||
<!-- <script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script> -->
|
||||
<script src="{{asset('public/assets/js/jquery.validate.js')}}"></script>
|
||||
<!-- <script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script> -->
|
||||
<!-- <script src="{{asset('public/assets/js/crew-designer.js')}}"></script> -->
|
||||
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
swal({
|
||||
title: "Thank you",
|
||||
text: "Your payment of {{ $total }} {{ $currency }} is complete.",
|
||||
icon: "success",
|
||||
buttons: "OK",
|
||||
|
||||
})
|
||||
.then((willDelete) => {
|
||||
if (willDelete) {
|
||||
window.location = "{{ url('') }}"
|
||||
} else {
|
||||
console.log("asdad");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
88
resources/views/sub_pages/add_print_template.blade.php
Normal file
88
resources/views/sub_pages/add_print_template.blade.php
Normal file
@@ -0,0 +1,88 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Adding of Print Template
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('/admin') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Adding of Print Template</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-custom-color" style="min-height:450px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div id="savePrintTemplateMsg"></div>
|
||||
</div>
|
||||
<form class="form-horizontal" id="frmAddPrintTemplate" enctype="multipart/form-data">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<h3>Print Template Information</h3>
|
||||
<hr>
|
||||
</div>
|
||||
<input type="hidden" name="templatecode" value="{{ $templatecode }}">
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Sports Name</label>
|
||||
<div class="col-sm-8">
|
||||
<select class="form-control" name="templateType">
|
||||
<option value="JERSEY">Jersey</option>
|
||||
<option value="SHORTS">Shorts</option>
|
||||
</select>
|
||||
<span id="err-sportsname" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Generated URL</label>
|
||||
<div class="col-sm-8">
|
||||
<select class="form-control" name="templateSize">
|
||||
@foreach($sizeslist as $row){
|
||||
<option value="{{ $row->Size }}">{{ $row->Size }}</option>
|
||||
}
|
||||
@endforeach
|
||||
</select>
|
||||
<span id="err-generatedUrl" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label class="control-label" >Add Image <small id="label-suggest-upload">(pixel 300px x 300px)</small></label>
|
||||
<br><br>
|
||||
<img id="prev-print-template" src="{{url('public/images/no-image.jpg')}}" class="img img-responsive" alt="Preview Image" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input name="preview_print_template" id="preview_print_template" class="form-control" type="file" onchange="loadPrintTemplate(this);" data-error="#err-previewImg" />
|
||||
<span id="err-previewImg" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" onclick="clearImg();" class="btn btn-default btn-block">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<hr>
|
||||
<a href="{{ url('admin/templates/edit') . '/' . $templatecode }}" class="btn btn-default">Back</a>
|
||||
<button type="submit" id="savePrintTempBtn" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@endsection
|
||||
80
resources/views/sub_pages/add_sports.blade.php
Normal file
80
resources/views/sub_pages/add_sports.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Adding of Sports
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('/admin') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Adding of Sports</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-custom-color" style="min-height:450px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div id="saveNewSportsMsg"></div>
|
||||
</div>
|
||||
<form class="form-horizontal" id="frmAddSports" enctype="multipart/form-data">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<h3>Sports Information</h3>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Sports Name</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="_addSportsName" name="sportsName" placeholder="Sports Name" data-error="#err-sportsname" reqiured="required" />
|
||||
<span id="err-sportsname" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Generated URL</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="generatedUrl" name="generatedUrl" placeholder="URL" data-error="#err-generatedUrl" reqiured="required" />
|
||||
<span id="err-generatedUrl" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label class="control-label" >Add Image <small id="label-suggest-upload">(pixel 300px x 300px)</small></label>
|
||||
<br><br>
|
||||
<img id="prev-img" src="{{url('public/images/no-image.jpg')}}" class="img img-responsive" alt="Preview Image" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input name="previewImg" id="previewImg" class="form-control" type="file" onchange="readURL(this);" data-error="#err-previewImg" />
|
||||
<span id="err-previewImg" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" onclick="clearImg();" class="btn btn-default btn-block">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<hr>
|
||||
<button type="button" onclick="cancelButton();" class="btn btn-default">Cancel</button>
|
||||
<button type="submit" id="saveSportsBtn" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@endsection
|
||||
235
resources/views/sub_pages/add_template.blade.php
Normal file
235
resources/views/sub_pages/add_template.blade.php
Normal file
@@ -0,0 +1,235 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Adding of Template
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('/admin') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Adding of Template</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-custom-color" style="min-height:450px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<div id="saveTemplateMsg"></div>
|
||||
<section>
|
||||
<div class="wizard">
|
||||
|
||||
<!-- <h3>Template Information</h3>
|
||||
<hr>
|
||||
-->
|
||||
<div class="wizard-inner">
|
||||
<div class="connecting-line"></div>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active">
|
||||
<a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Step 1">
|
||||
<span class="round-tab">
|
||||
<i class="glyphicon glyphicon-list"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li role="presentation" class="disabled">
|
||||
<a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Step 2">
|
||||
<span class="round-tab">
|
||||
<i class="glyphicon glyphicon-pencil"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li role="presentation" class="disabled">
|
||||
<a href="#complete" data-toggle="tab" aria-controls="complete" role="tab" title="Complete">
|
||||
<span class="round-tab">
|
||||
<i class="glyphicon glyphicon-ok"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form role="form" id="frmTemplate">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" role="tabpanel" id="step1">
|
||||
<div class="col-sm-12">
|
||||
<h3><small><i class="fa fa-link" aria-hidden="true"></i></small> Step one</h3>
|
||||
<br>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label>Template Code</label>
|
||||
<input type="text" class="form-control" name="templateCode" id="templateCode" readonly="true" data-error="#err-templateCode" />
|
||||
<!-- <smal>(Auto generated)</smal> -->
|
||||
<span id="err-templateCode" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Select Sports</label>
|
||||
<select class="form-control" id="sportName" name="sportName" data-error="#err-sportName">
|
||||
</select>
|
||||
<span id="err-sportName" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Template Name</label>
|
||||
<input type="text" class="form-control" name="templateName" placeholder="Template Name" data-error="#err-templateName" />
|
||||
<span id="err-templateName" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Template Type</label>
|
||||
<select class="form-control" id="templateType" name="templateType" data-error="#err-templateType">
|
||||
</select>
|
||||
<span id="err-templateType" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Number of Trims</label>
|
||||
<input type="number" class="form-control" name="numberOfTrims" placeholder="Number of Trims" data-error="#err-numberOfTrims" />
|
||||
<span id="err-numberOfTrims" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Add Skin(s)</label>
|
||||
<select class="form-control" id="_addPatterns" name="addPattens" multiple="multiple" data-placeholder="Select a Skin(s)" data-error="#err-addPatterns">
|
||||
</select>
|
||||
<span id="err-addPatterns" style="color: #dd4b39"></span>
|
||||
<input type="hidden" name="getSkins" id="getSkins" />
|
||||
<!-- <button type="button" onclick="getskinvalue();">get value</button> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<label class="control-label" >Add Image <small id="label-suggest-upload">(400px x 600px)</small></label>
|
||||
<br><br>
|
||||
<img id="template-img-preview" src="{{url('public/images/no-image.jpg')}}" class="img img-responsive" alt="Preview Image" />
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<br><br>
|
||||
<div class="col-sm-8">
|
||||
<input name="tempateImage" id="tempateImage" class="form-control" type="file" onchange="templateThumbnailPreview(this);" data-error="#err-tempateImage" />
|
||||
<span id="err-tempateImage" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" onclick="clearTemplateImg();" class="btn btn-default btn-block">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<ul class="list-inline pull-right" style="margin-top: 50px;">
|
||||
<li><button type="button" id="stepOneNextBtn" class="btn btn-primary next-step" >Next <i class="fa fa-long-arrow-right" aria-hidden="true"></i></button></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- STEP TWO -->
|
||||
|
||||
<div class="tab-pane" role="tabpanel" id="step2">
|
||||
<div class="col-sm-12">
|
||||
<h3><small><i class="fa fa-link" aria-hidden="true"></i></small> Step two</h3>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Jersey - Front</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_jerseyFront" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-jerseyFront" data-id="_jerseyFront" onchange="loadSVG(this);" class="form-control" name="svgJerseyFront" style="margin-bottom: 2px;"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
|
||||
</div>
|
||||
<span class="text-center" id="err-jerseyFront" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Jersey - Back</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_jerseyBack" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-jerseyBack" data-id="_jerseyBack" onchange="loadSVG(this);" class="form-control" name="svgJerseyBack" style="margin-bottom: 2px;"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
</div>
|
||||
<span class="text-center" id="err-jerseyBack" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Shorts - Right</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_shortsRight" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-shortRight" data-id="_shortsRight" onchange="loadSVG(this);" class="form-control" name="svgShortRight" style="margin-bottom: 2px;"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
</div>
|
||||
<span class="text-center" id="err-shortRight" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Shorts - Left</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_shortsLeft" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-shortLeft" data-id="_shortsLeft" onchange="loadSVG(this);" class="form-control" name="svgShortLeft" style="margin-bottom: 2px;"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
</div>
|
||||
<span class="text-center" id="err-shortLeft" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<br><br><br>
|
||||
<div class="col-sm-12">
|
||||
<ul class="list-inline pull-right" style="margin-top: 50px;">
|
||||
<li><button type="button" class="btn btn-default prev-step"><i class="fa fa-long-arrow-left" aria-hidden="true"></i> Previous</button></li>
|
||||
<li><button type="button" class="btn btn-primary next-step" id="stepTwoNextBtn">Next <i class="fa fa-long-arrow-right" aria-hidden="true"></i></button></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" role="tabpanel" id="complete">
|
||||
<h3>Complete steps</h3>
|
||||
<p>You have successfully completed every steps.</p>
|
||||
<ul class="list-inline pull-right">
|
||||
<li><button type="button" class="btn btn-default prev-step"><i class="fa fa-long-arrow-left" aria-hidden="true"></i> Previous</button></li>
|
||||
<li><button type="button" id="submitTemplateBtn" class="btn btn-primary btn-info-full next-step">Save new template</button></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <div class="clearfix"></div> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@endsection
|
||||
352
resources/views/sub_pages/edit_template.blade.php
Normal file
352
resources/views/sub_pages/edit_template.blade.php
Normal file
@@ -0,0 +1,352 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Edit of Template
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('/admin') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Edit of Template</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- return view('sub_pages.edit_template')->with('templatedata', $templateData)->with('templatepath', $templatePathsData)->with('sportsname', $sportsList)->with('templatetype', $templateTypes);
|
||||
-->
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<!-- Custom Tabs -->
|
||||
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs nav-justified">
|
||||
<li class="active">
|
||||
<a href="#tab_1" data-toggle="tab" aria-expanded="true">Template Information</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#tab_2" data-toggle="tab" aria-expanded="false">Print Template Size(s)</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" style="min-height:450px;">
|
||||
<div class="tab-pane active" id="tab_1">
|
||||
|
||||
<div id="saveTemplateMsg"></div>
|
||||
<section>
|
||||
<div class="wizard">
|
||||
<div class="wizard-inner">
|
||||
<div class="connecting-line"></div>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active">
|
||||
<a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Step 1">
|
||||
<span class="round-tab">
|
||||
<i class="glyphicon glyphicon-list"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li role="presentartion" class="disabled">
|
||||
<a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Step 2">
|
||||
<span class="round-tab">
|
||||
<i class="glyphicon glyphicon-pencil"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li role="presentation" class="disabled">
|
||||
<a href="#complete" data-toggle="tab" aria-controls="complete" role="tab" title="Complete">
|
||||
<span class="round-tab">
|
||||
<i class="glyphicon glyphicon-ok"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form role="form" id="frmEditTemplate">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" role="tabpanel" id="step1">
|
||||
<div class="col-sm-12">
|
||||
<h3><small><i class="fa fa-link" aria-hidden="true"></i></small> Step one</h3>
|
||||
<br>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label>Template Code</label>
|
||||
<input type="text" class="form-control" name="templateCode" readonly="true" data-error="#err-templateCode" value="{{ $templatedata[0]->TemplateCode }}" />
|
||||
<!-- <smal>(Auto generated)</smal> -->
|
||||
<span id="err-templateCode" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Select Sports</label>
|
||||
<select class="form-control" name="sportName" data-error="#err-sportName">
|
||||
<option value="" >--Select Sports--</option>
|
||||
@foreach($sportsname as $row){
|
||||
<option value="
|
||||
{{ $row->Id }}"
|
||||
{{old('sportName', $row->Id)== $templatedata[0]->SportsId ? 'selected':''}}
|
||||
>
|
||||
{{ $row->SportsName }}
|
||||
</option>
|
||||
}
|
||||
@endforeach
|
||||
</select>
|
||||
<span id="err-sportName" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Template Name</label>
|
||||
<input type="text" class="form-control" name="templateName" placeholder="Template Name" data-error="#err-templateName" value="{{ $templatedata[0]->TemplateName }}" />
|
||||
<span id="err-templateName" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Template Type</label>
|
||||
<select class="form-control" name="templateType" data-error="#err-templateType">
|
||||
<option value="" >--Select Type--</option>
|
||||
@foreach($templatetype as $row){
|
||||
<option value="
|
||||
{{ $row->TemplateType }}"
|
||||
{{old( 'templateType', $row->TemplateType) == $templatedata[0]->TemplateType ? 'selected':''}}>
|
||||
{{ $row->TemplateType }}
|
||||
</option>
|
||||
}
|
||||
@endforeach
|
||||
</select>
|
||||
<span id="err-templateType" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Number of Trims</label>
|
||||
<input type="number" class="form-control" name="numberOfTrims" placeholder="Number of Trims" data-error="#err-numberOfTrims" value="{{ $templatedata[0]->Trim }}" />
|
||||
<span id="err-numberOfTrims" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Add Skin(s)</label>
|
||||
<select class="form-control" id="addPatterns_" name="addPattens" multiple="multiple" data-placeholder="Select a Skin(s)" data-error="#err-addPatterns">
|
||||
</select>
|
||||
<span id="err-addPatterns" style="color: #dd4b39"></span>
|
||||
<input type="hidden" name="getSkins" id="skinsEdit" value="{{ $templatedata[0]->PatternId }}" />
|
||||
<!-- <button type="button" onclick="getskinvalue();">get value</button> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<label class="control-label" >Add Image <small id="label-suggest-upload">(400px x 600px)</small></label>
|
||||
<br><br>
|
||||
<img id="template-img-preview" src="{{url('public') . '/' . $templatedata[0]->Thumbnail }}" class="img img-responsive" alt="Preview Image" />
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<br><br>
|
||||
<div class="col-sm-8">
|
||||
<input name="tempateImage" id="tempateImage" class="form-control" type="file" onchange="templateThumbnailPreview(this);" data-error="#err-tempateImage" />
|
||||
<span id="err-tempateImage" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" onclick="clearTemplateImg();" class="btn btn-default btn-block">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<ul class="list-inline pull-right" style="margin-top: 50px;">
|
||||
<li><button type="button" id="stepOneNextBtn_Edit" class="btn btn-primary next-step" >Next <i class="fa fa-long-arrow-right" aria-hidden="true"></i></button></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- STEP TWO -->
|
||||
<div class="tab-pane" role="tabpanel" id="step2">
|
||||
<div class="col-sm-12">
|
||||
<h3><small><i class="fa fa-link" aria-hidden="true"></i></small> Step two</h3>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Jersey - Front</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_jerseyFront" data="{{url('public/images') . '/' . $templatepath[0]->Path }}" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-jerseyFront" data-id="_jerseyFront" onchange="loadSVG(this);" class="form-control" name="svgJerseyFront" style="margin-bottom: 2px;"/>
|
||||
<input type="hidden" class="form-control" name="id_svgJerseyFront" value="{{ $templatepath[0]->Id }}"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
|
||||
</div>
|
||||
<span class="text-center" id="err-jerseyFront" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Jersey - Back</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_jerseyBack" data="{{url('public/images') . '/' . $templatepath[1]->Path }}" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-jerseyBack" data-id="_jerseyBack" onchange="loadSVG(this);" class="form-control" name="svgJerseyBack" style="margin-bottom: 2px;"/>
|
||||
<input type="hidden" class="form-control" name="id_svgJerseyBack" value="{{ $templatepath[1]->Id }}"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
</div>
|
||||
<span class="text-center" id="err-jerseyBack" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Shorts - Right</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_shortsRight" data="{{url('public/images') . '/' . $templatepath[2]->Path }}" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-shortRight" data-id="_shortsRight" onchange="loadSVG(this);" class="form-control" name="svgShortRight" style="margin-bottom: 2px;"/>
|
||||
<input type="hidden" class="form-control" name="id_svgShortRight" value="{{ $templatepath[2]->Id }}"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
</div>
|
||||
<span class="text-center" id="err-shortRight" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center"><h3>Shorts - Left</h3></div>
|
||||
<div class="custom-panel-body panel-body">
|
||||
<div class="obj-container">
|
||||
<object id="_shortsLeft" data="{{url('public/images') . '/' . $templatepath[3]->Path }}" type="image/svg+xml" height="254px" width="100%">
|
||||
Your browser is not supported svg file
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
<div class="custom-panel-footer panel-footer">
|
||||
<input type="file" data-error="#err-shortLeft" data-id="_shortsLeft" onchange="loadSVG(this);" class="form-control" name="svgShortLeft" style="margin-bottom: 2px;"/>
|
||||
<input type="hidden" class="form-control" name="id_svgShortLeft" value="{{ $templatepath[3]->Id }}"/>
|
||||
<button type="button" class="btn btn-default btn-block"><i class="fa fa-times" aria-hidden="true"></i> Clear</button>
|
||||
</div>
|
||||
<span class="text-center" id="err-shortLeft" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<br><br><br>
|
||||
<div class="col-sm-12">
|
||||
<ul class="list-inline pull-right" style="margin-top: 50px;">
|
||||
<li><button type="button" class="btn btn-default prev-step"><i class="fa fa-long-arrow-left" aria-hidden="true"></i> Previous</button></li>
|
||||
<li><button type="button" class="btn btn-primary next-step" id="stepTwoNextBtn_Edit">Next <i class="fa fa-long-arrow-right" aria-hidden="true"></i></button></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" role="tabpanel" id="complete">
|
||||
<h3>Complete steps</h3>
|
||||
<p>You have successfully completed every steps.</p>
|
||||
<ul class="list-inline pull-right">
|
||||
<li><button type="button" class="btn btn-default prev-step"><i class="fa fa-long-arrow-left" aria-hidden="true"></i> Previous</button></li>
|
||||
<li><button type="button" id="submitTemplateBtn_Edit" class="btn btn-primary btn-info-full next-step">Save changes</button></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <div class="clearfix"></div> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="tab_2">
|
||||
<div class="col-md-5">
|
||||
<h3>List of Print Template</h3>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<a href="{{ url('/admin/templates/edit' . '/' . $templatedata[0]->TemplateCode . '/' . 'p-add') }}" class="btn btn-default pull-right"><i class="fa fa-plus"></i> Add Print Template</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<br>
|
||||
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs nav-justified">
|
||||
<li class="active">
|
||||
<a href="#tab_jersey" data-toggle="tab" aria-expanded="true">JERSEY</a>
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#tab_shorts" data-toggle="tab" aria-expanded="false">SHORTS</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content" style="min-height:450px;">
|
||||
<div class="tab-pane active" id="tab_jersey">
|
||||
<div class="list-group">
|
||||
|
||||
@if(count($printpattern) > 0)
|
||||
|
||||
@foreach($printpattern as $row)
|
||||
@if($row->Type == 'JERSEY')
|
||||
<div class="list-group-item" style="min-height: 210px;">
|
||||
<div class="media col-md-3">
|
||||
<img class="media-object img-rounded img-responsive img-print-preview" src="{{ url('public/images') . '/' . $row->Path }}" alt="placehold.it/350x250" >
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h4 class="list-group-item-heading"> {{ $row->Type . " - " . $row->Size }}</h4>
|
||||
<small style="color:#909090;"><b>Date Created: </b> {{ date("F j, Y g:i a", strtotime($row->DateCreated)) }}</small>
|
||||
</div>
|
||||
<div class="col-md-3 text-center">
|
||||
<!-- <h2> 14240 <small> votes </small></h2> -->
|
||||
<button type="button" class="btn btn-default btn-lg btn-block"><span class="glyphicon glyphicon-edit"></span> Edit</button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@else
|
||||
<hr>
|
||||
<h3 class="text-center no-record" >No Print Template available</h3>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab_shorts">
|
||||
<div class="list-group">
|
||||
@if(count($printpattern) > 0)
|
||||
|
||||
@foreach($printpattern as $row)
|
||||
@if($row->Type == 'SHORTS')
|
||||
<div class="list-group-item" style="min-height: 210px;">
|
||||
<div class="media col-md-3">
|
||||
<img class="media-object img-rounded img-responsive img-print-preview" src="{{ url('public/images') . '/' . $row->Path }}" alt="placehold.it/350x250" >
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h4 class="list-group-item-heading"> {{ $row->Type . " - " . $row->Size }}</h4>
|
||||
<small style="color:#909090;"><b>Date Created: </b> {{ date("F j, Y g:i a", strtotime($row->DateCreated)) }}</small>
|
||||
</div>
|
||||
<div class="col-md-3 text-center">
|
||||
<!-- <h2> 14240 <small> votes </small></h2> -->
|
||||
<button type="button" class="btn btn-default btn-lg btn-block"><span class="glyphicon glyphicon-edit"></span> Edit</button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@else
|
||||
<hr>
|
||||
<h3 class="text-center no-record" >No Print Template available</h3>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
</div>
|
||||
<!-- /.tab-content -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@endsection
|
||||
24
resources/views/sub_pages/index.blade.php
Normal file
24
resources/views/sub_pages/index.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Dashboard
|
||||
<small>Control panel</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="text-center" id="homepage-logo">
|
||||
<img src="{{asset('/public/images/logo.png')}}" class="img img-responsive" />
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
50
resources/views/sub_pages/sports.blade.php
Normal file
50
resources/views/sub_pages/sports.blade.php
Normal file
@@ -0,0 +1,50 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Sports
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('/admin') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Sports</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-custom-color" style="min-height:450px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a href="{{url('/admin/sports/add')}}" class="btn btn-default pull-right"><i class="fa fa-plus"></i> Add Sports</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<hr>
|
||||
</div>
|
||||
@if(!empty($row ))
|
||||
@foreach ($row as $r)
|
||||
<div class="col-md-3 col-sm-4 col-xs-6">
|
||||
<div class="sports-border">
|
||||
<a href=""><img src="{{url('/public')}}/{{$r->Thumbnail}}" alt="Sports" class="img img-responsive product-center" /></a>
|
||||
<div class="sport-edit-btn">
|
||||
<a href="{{ url('/admin/sports/edit') .'/'. $r->URL }}" class="btn btn-primary btn-block btn-xs"><i class="fa fa-edit"></i> Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<h3 class="no-record text-center">No Record Found.</h3>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
81
resources/views/sub_pages/sports_details.blade.php
Normal file
81
resources/views/sub_pages/sports_details.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Edit {{ $data[0]->SportsName }}
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('/admin') }}"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Edit {{ $data[0]->SportsName }}</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-custom-color" style="min-height:450px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div id="updateSportsMsg"></div>
|
||||
</div>
|
||||
<form class="form-horizontal" id="frmUpdateSports" enctype="multipart/form-data">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<h3>Sports Information</h3>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
<input type="hidden" class="form-control" id="_id" name="_id" value="{{ $data[0]->Id }}"/>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Sports Name</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="_addSportsName" name="sportsName" placeholder="Sports Name" data-error="#err-sportsname" reqiured="required" value="{{ $data[0]->SportsName }}"/>
|
||||
<span id="err-sportsname" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Generated URL</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="generatedUrl" name="generatedUrl" placeholder="URL" data-error="#err-generatedUrl" reqiured="required" value="{{ $data[0]->URL }}" />
|
||||
<span id="err-generatedUrl" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-6">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label class="control-label" >Image Preview <small id="label-suggest-upload">(pixel 300px x 300px)</small></label>
|
||||
<br><br>
|
||||
<img id="prev-img" src="{{ url('/public/') .'/'. $data[0]->Thumbnail }}" class="img img-responsive" alt="Preview Image" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input name="previewImg" id="previewImg" class="form-control" type="file" onchange="readURL(this);" data-error="#err-previewImg" />
|
||||
<span id="err-previewImg" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" onclick="clearImgEdit('{{ url('/public/') .'/'. $data[0]->Thumbnail }}');" class="btn btn-default btn-block">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<hr>
|
||||
<a href="{{ url('admin/sports') }}" class="btn btn-default">Cancel</a>
|
||||
<button type="submit" id="updateSportsBtn" class="btn btn-primary">Update</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
45
resources/views/sub_pages/templates.blade.php
Normal file
45
resources/views/sub_pages/templates.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
@extends('main_layouts.admin_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Templates
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Templates</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-custom-color" style="min-height:450px;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Filter By:</label>
|
||||
<select class="form-control getURL" id="sportName" name="sportName">
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label> </label>
|
||||
<div>
|
||||
<a href="{{url('/admin/templates/add')}}" class="btn btn-default pull-right"><i class="fa fa-plus"></i> Add Template</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div id="displayTemplates"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
319
resources/views/sublayouts/cart.blade.php
Normal file
319
resources/views/sublayouts/cart.blade.php
Normal file
@@ -0,0 +1,319 @@
|
||||
@extends('layout.main')
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
.previewImage{
|
||||
height: 150px;
|
||||
width: 95%;
|
||||
overflow:hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
@if(isset($store_array[0]->StoreUrl))
|
||||
<li><a href="{{ url('teamstore') . '/' . $store_array[0]->StoreUrl }}">{{ $store_array[0]->StoreName }}</a></li>
|
||||
@else
|
||||
<li><a href="{{ url('/') }}">Home</a></li>
|
||||
@endif
|
||||
<li class="active">My Cart</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 style="font-size: 20px; font-weight: bold;">MY CART</h2>
|
||||
@if(Session::has('cartkeyError'))
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="fa fa-exclamation-circle"></i> Error:</h4>
|
||||
{!! Session::get('cartkeyError') !!}
|
||||
</div>
|
||||
@endif
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(count($row) > 0)
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-md-push-8 order-summary" >
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
|
||||
@if(Session::has('msg'))
|
||||
<div class="alert alert-warning alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="fa fa-exclamation-triangle"></i> Warning:</h4>
|
||||
{!! Session::get('msg') !!}
|
||||
</div>
|
||||
@endif
|
||||
<h3>Order Summary</h3>
|
||||
</div>
|
||||
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
|
||||
<h3>Subtotal: <span id="my_subtotal">{{ round($getSubtotal, 2) }}</span> <small>{{ $store_array[0]->StoreCurrency }}</small></h3>
|
||||
<hr>
|
||||
<div class="form-group" id="voucher_list">
|
||||
@foreach($row as $item)
|
||||
@if($item->VoucherId != null)
|
||||
<div class="btn-group">
|
||||
@if($item->VoucherType == "Percentage")
|
||||
<button type="button" class="btn btn-default btn-xs">{{ $item->VoucherCode . ' ' . $item->VoucherValue . '%' }} OFF</button>
|
||||
@else
|
||||
<button type="button" class="btn btn-default btn-xs">{{ $item->VoucherCode . ' ' . $item->VoucherValue . ' ' . $store_array[0]->StoreCurrency }} OFF</button>
|
||||
@endif
|
||||
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{{ url('removeitem') . '/' . $item->Id }}"><i class="fa fa-times"></i> Remove</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<form id="frm_voucher">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="voucher" data-error="#error_voucher" placeholder="Enter Voucher Code">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" id="btn_apply_voucher" type="submit" >Apply</button>
|
||||
</span>
|
||||
</div>
|
||||
<span id="error_voucher" style="color: #dd4b39"></span>
|
||||
</form>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px;">
|
||||
<a @if($getSubtotal <= 0 ) disabled @endif href="{{ url('getCheckout') }}" class="btn btn-primary btn-block" style="background-color: #ffc300; border-color: #e2ad00; text-align: -webkit-center;" ><img src="{{asset('/public/images/paypal1.png')}}" class="img img-responsive" style="height:30px;"></a><br>
|
||||
<a href="{{ url('teamstore') . '/' . $store_array[0]->StoreUrl }}" class="btn btn-default btn-block" type="submit">Continue Shopping</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 col-md-pull-4">
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px;">
|
||||
<h4><img height="30px" class="store-logo" src="{{ config('site_config.uploads') . 'teamstore/'. $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreLogo }}"> {{ $store_array[0]->StoreName }}</h4>
|
||||
</div>
|
||||
@foreach($item_group as $item)
|
||||
@if($item->VoucherId == null)
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; border-top: none;">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="text-center">
|
||||
@foreach($img_thumb as $img)
|
||||
@if($img->ProductId == $item->ProductId)
|
||||
<img class="previewImage" src="{{ config('site_config.images_url') }}/{{ $img->Image }}">
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<h4>
|
||||
<a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a>
|
||||
</h4>
|
||||
<p>Total Price: {{ $item->total_price . ' ' . $store_array[0]->StoreCurrency }} • Row(s): {{ $item->qty }} </p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-condensed">
|
||||
|
||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
|
||||
@elseif($item->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="number-form")
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-name2-size-form")
|
||||
<tr>
|
||||
<th>Gamer Tag</th>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
|
||||
<tr>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="number-jersey-shorts-form")
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@foreach($row as $sub_item)
|
||||
@if($sub_item->ProductId == $item->ProductId)
|
||||
|
||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<td> @if($sub_item->Name != '') {{ $sub_item->Name }} @else -- @endif </td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->JerseySize }}</td>
|
||||
<td>{{ $sub_item->ShortsSize }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="number-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-name2-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Name2 }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->JerseySize}}</td>
|
||||
<td>{{ $sub_item->ShortsSize}}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="number-jersey-shorts-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->JerseySize }}</td>
|
||||
<td>{{ $sub_item->ShortsSize }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
<td><a class="btn btn-xs btn-link pull-right" href="{{ url('removeitem') }}/{{ $sub_item->Id }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 style="color:#d2d2d2;">Your cart is currently empty.</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
@endsection
|
||||
111
resources/views/sublayouts/checkout.blade.php
Normal file
111
resources/views/sublayouts/checkout.blade.php
Normal file
@@ -0,0 +1,111 @@
|
||||
@extends('layout.main')
|
||||
@section('content')
|
||||
|
||||
<style>
|
||||
.previewImage{
|
||||
height: 150px;
|
||||
width: 110px;
|
||||
overflow:hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<img src="{{asset('public/images/logo.png')}}" class="" height="100px" />
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{url('/')}}">Home</a></li>
|
||||
<li class="active">My Cart</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>My Cart</h1>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(count($row) > 0)
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
@foreach($row as $item)
|
||||
|
||||
@if($item->Order == "Jersey")
|
||||
|
||||
@define $itemOrder = " (Jersey Only)"
|
||||
|
||||
@elseif ($item->Order == "Shorts")
|
||||
|
||||
@define $itemOrder = " (Shorts Only)"
|
||||
|
||||
@else
|
||||
|
||||
@define $itemOrder = " (w/ Shorts)"
|
||||
|
||||
@endif
|
||||
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-link pull-right" href="{{ url('removeitem') }}/{{ $item->Id }}"><span class="glyphicon glyphicon-remove"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
|
||||
<tr>
|
||||
<td rowspan="2" class="text-center"><img class="previewImage" src="http://{{ config('site_config.images_url') }}/{{ $item->Image }} "></td>
|
||||
<td colspan="5">
|
||||
<h4>{{ $item->ProductName }} {{ $itemOrder }} <br>Price: ${{ $item->Price }}</h4>
|
||||
</td>
|
||||
<tr>
|
||||
<td >Name: <br> @if($item->Name != '') {{ $item->Name }} @else -- @endif </td>
|
||||
<td >Number : <br>{{ $item->Number }}</td>
|
||||
<td >Size: <br>{{ $item->Size }}</td>
|
||||
<td >Quantity: <br>{{ $item->Quantity }}</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" style="background-color: #f5f5f5;">
|
||||
<h4>Shipping</h4>
|
||||
<p>Ship to:</p>
|
||||
<p>{{ $array_address_book[0]->Fullname }}</p>
|
||||
<p>{{ $array_address_book[0]->Address }}, {{ $array_address_book[0]->State }}, {{ $array_address_book[0]->City }}, {{ $array_address_book[0]->ZipCode }} <a href="{{ url('user') }}">[ Edit ]</a> </p>
|
||||
|
||||
<hr>
|
||||
<h3>Order Summary</h3>
|
||||
<hr class="hr-design">
|
||||
<h4 class="text-center">
|
||||
<b>Subtotal : </b> $ {{ $getSubtotal[0]->Subtotal }}
|
||||
</h4>
|
||||
<hr class="hr-design">
|
||||
<a href="{{ url('payment-method') }}" class="btn btn-primary btn-block" >Place Order</a><br>
|
||||
<br><br><br>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 style="color:#d2d2d2;">Your cart is currently empty.</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
@endsection
|
||||
21
resources/views/sublayouts/index.blade.php
Normal file
21
resources/views/sublayouts/index.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
@extends('layout.main')
|
||||
@section('content')
|
||||
<!-- <div class="row">
|
||||
<div class="col-md-12">
|
||||
<img src="{{asset('public/images/logo.png')}}" class="" height="100px" />
|
||||
</div>
|
||||
</div>
|
||||
<hr> -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 style="font-size: 20px; font-weight: bold;">CHOOSE A CATEGORY</h2>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
|
||||
<div id="div_sportsList">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
36
resources/views/sublayouts/sports-category.blade.php
Normal file
36
resources/views/sublayouts/sports-category.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layout.main')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 style="font-size: 20px; font-weight: bold; ">CHOOSE PRODUCT</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12" >
|
||||
<ul class="breadcrumb">
|
||||
<li class=""><a href="{{url()}}">Home</a></li>
|
||||
<li class="active"> {{ $array_sports[0]->SportsName }} </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@if(!empty($row))
|
||||
@foreach ($row as $r)
|
||||
<div class="col-md-3 col-sm-6 col-xs-12 list-sport">
|
||||
<div class="thumb-border">
|
||||
<a href="{{ url() }}/{{ Request::path() }}/{{ $r->Id }}">
|
||||
<img src="{{ config('site_config.uploads') . 'sports-category/' . $r->Thumbnail }}" alt="{{ $r->Category }}" class="image" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<h3 class="sports-title">{{ $r->Category }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<h3 class="no-record no-record">No Record Found.</h3>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
45
resources/views/sublayouts/sports-styles.blade.php
Normal file
45
resources/views/sublayouts/sports-styles.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
@extends('layout.main')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 style="font-size: 20px; font-weight: bold; text-transform:uppercase;">CHOOSE {{ $array_category[0]->Category }} STYLE</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12" >
|
||||
<ul class="breadcrumb">
|
||||
<li class=""><a href="{{url()}}">Home</a></li>
|
||||
<li class=""><a href="{{url('sports')}}/{{ $cat }}" >{{ $cat }}</a></li>
|
||||
<li class="active"> {{ $array_category[0]->Category }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
@if(!empty($row ))
|
||||
@foreach ($row as $r)
|
||||
<div class="col-margin-bottom col-lg-3 col-md-3 col-sm-4 col-xs-6">
|
||||
|
||||
|
||||
<div class="thumb-border" style="border:1px solid #e2e2e2; padding: 5px;">
|
||||
<a href="{{ url('/designer') }}/{{ md5($r->TemplateCode) }}">
|
||||
<img src="{{ config('site_config.uploads') . $r->Thumbnail}}" alt="" class="image" />
|
||||
</a>
|
||||
<!-- <div class="overlay">
|
||||
<div class="text" style="font-family:Academic M54;"><a href="">{{$r->TemplateName}}</a></div>
|
||||
</div> -->
|
||||
<div class="text-center" style="border-top: 1px solid #e2e2e2; padding: 10px;">
|
||||
<h2 class="sports-title">{{ $r->TemplateName }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<h3 class="no-record no-record">No Record Found.</h3>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
379
resources/views/teamstore-layout/main.blade.php
Normal file
379
resources/views/teamstore-layout/main.blade.php
Normal file
@@ -0,0 +1,379 @@
|
||||
<!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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear.">
|
||||
<meta name="keywords" content="custom uniforms, footwear, athletic equipment, sporting goods">
|
||||
<meta name="author" content="Frank John Begornia">
|
||||
<meta name="csrf_token" content="{{ csrf_token() }}" />
|
||||
<meta name="company_url" content="{{ $store_array[0]->StoreUrl }}" />
|
||||
|
||||
<meta property="og:url" content="https://crewsportswear.com" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="CREW Apparel" />
|
||||
<meta property="og:description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear." />
|
||||
<meta property="og:image" content="{{asset('public/images/logo.png')}}" />
|
||||
|
||||
<!-- favicons
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{asset('public/favicons/apple-touch-icon.png')}}">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-32x32.png')}}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{asset('public/favicons/favicon-16x16.png')}}" sizes="16x16">
|
||||
<link rel="manifest" href="{{asset('public/favicons/manifest.json')}}">
|
||||
<link rel="mask-icon" href="{{asset('public/favicons/safari-pinned-tab.svg')}}" color="#5bbad5">
|
||||
<meta name="theme-color" content="#ffffff">-->
|
||||
<!-- end favicons -->
|
||||
<title>{{ $store_array[0]->StoreName }} Store</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
{{-- <link href="{{asset('public/assets/css/bootstrap.min.css')}}" rel="stylesheet"> --}}
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<link href="{{asset('public/assets/css/ie10-viewport-bug-workaround.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="{{asset('public/assets/css/style.css')}}" rel="stylesheet">
|
||||
|
||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||
<script src="{{asset('public/assets/js/ie-emulation-modes-warning.js')}}"></script>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
|
||||
<![endif]-->
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Social Media Share button
|
||||
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=599bc5cf6d61950012975405&product=sticky-share-buttons"></script>-->
|
||||
|
||||
<link href="{{asset('/public/designer/css/build.css')}}" rel="stylesheet">
|
||||
<style>
|
||||
|
||||
</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')
|
||||
<!-- Example row of columns -->
|
||||
@yield('content')
|
||||
|
||||
|
||||
<!-- Bootstrap core JavaScript ================================================= !-->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
|
||||
<!-- <script>window.jQuery || document.write('<script src="{{asset('public/assets/js/vendor/jquery.min.js')}}"><\/script>')</script> -->
|
||||
<!-- <script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script> -->
|
||||
<script src="{{asset('public/assets/js/jquery.validate.js')}}"></script>
|
||||
<!-- <script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script> -->
|
||||
<!-- <script src="{{asset('public/assets/js/crew-designer.js')}}"></script> -->
|
||||
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
|
||||
<!-- jquery.bcSwipe -->
|
||||
<script src="{{asset('public/assets/js/jquery.bcSwipe.min.js')}}"></script>
|
||||
<script src="{{asset('public/assets/js/jquery.zoom.js')}}"></script>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// $('.img-zoom').zoom();
|
||||
$('.inputName').keyup(function() {
|
||||
this.value = this.value.toLocaleUpperCase();
|
||||
});
|
||||
|
||||
$('.carousel').bcSwipe({ threshold: 50 });
|
||||
|
||||
$('.btn-number').click(function(e){
|
||||
e.preventDefault();
|
||||
|
||||
fieldName = $(this).attr('data-field');
|
||||
type = $(this).attr('data-type');
|
||||
var input = $("input[name='"+fieldName+"']");
|
||||
var currentVal = parseInt(input.val());
|
||||
if (!isNaN(currentVal)) {
|
||||
if(type == 'minus') {
|
||||
|
||||
if(currentVal > input.attr('min')) {
|
||||
input.val(currentVal - 1).change();
|
||||
}
|
||||
if(parseInt(input.val()) == input.attr('min')) {
|
||||
$(this).attr('disabled', true);
|
||||
}
|
||||
|
||||
} else if(type == 'plus') {
|
||||
|
||||
if(currentVal < input.attr('max')) {
|
||||
input.val(currentVal + 1).change();
|
||||
}
|
||||
if(parseInt(input.val()) == input.attr('max')) {
|
||||
$(this).attr('disabled', true);
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
input.val(0);
|
||||
}
|
||||
});
|
||||
|
||||
$('#myCarousel').on('slid.bs.carousel', function (e) {
|
||||
var id = $('.item.active').data('slide-number');
|
||||
// $('#carousel-text').html($('#slide-content-'+id).html());
|
||||
// console.log(id)
|
||||
$('.a_thumbnail').removeClass('active');
|
||||
$('#carousel-selector-'+id).addClass('active');
|
||||
});
|
||||
|
||||
$('.input-number').focusin(function(){
|
||||
$(this).data('oldValue', $(this).val());
|
||||
});
|
||||
|
||||
$('.input-number').change(function() {
|
||||
|
||||
minValue = parseInt($(this).attr('min'));
|
||||
maxValue = parseInt($(this).attr('max'));
|
||||
valueCurrent = parseInt($(this).val());
|
||||
|
||||
name = $(this).attr('name');
|
||||
if(valueCurrent >= minValue) {
|
||||
$(".btn-number[data-type='minus'][data-field='"+name+"']").removeAttr('disabled')
|
||||
} else {
|
||||
alert('Sorry, the minimum value was reached');
|
||||
$(this).val($(this).data('oldValue'));
|
||||
}
|
||||
if(valueCurrent <= maxValue) {
|
||||
$(".btn-number[data-type='plus'][data-field='"+name+"']").removeAttr('disabled')
|
||||
} else {
|
||||
alert('Sorry, the maximum value was reached');
|
||||
$(this).val($(this).data('oldValue'));
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$(".input-number").keydown(function (e) {
|
||||
// Allow: backspace, delete, tab, escape, enter and .
|
||||
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 190]) !== -1 ||
|
||||
// Allow: Ctrl+A
|
||||
(e.keyCode == 65 && e.ctrlKey === true) ||
|
||||
// Allow: home, end, left, right
|
||||
(e.keyCode >= 35 && e.keyCode <= 39)) {
|
||||
// let it happen, don't do anything
|
||||
return;
|
||||
}
|
||||
// Ensure that it is a number and stop the keypress
|
||||
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$('.multi-item-carousel .item').each(function(){
|
||||
var next = $(this).next();
|
||||
if (!next.length) {
|
||||
next = $(this).siblings(':first');
|
||||
}
|
||||
|
||||
next.children(':first-child').clone().appendTo($(this));
|
||||
|
||||
|
||||
for (var i=0; i<2; i++){
|
||||
|
||||
next=next.next();
|
||||
|
||||
if (!next.length){
|
||||
next=$(this).siblings(':first');
|
||||
}
|
||||
next.children(':first-child').clone().appendTo($(this));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#jersey_chk').click(function(){
|
||||
|
||||
var product_price = $('#product_price').val();
|
||||
var getPriceHold = $('#price_holder').val();
|
||||
var getHalf = getPriceHold / 2;
|
||||
|
||||
if($(this).is(':checked')){
|
||||
$('.td-hide').css('display', '');
|
||||
$('.th-hide').css('display', '');
|
||||
|
||||
$('#product_price').val(Number(product_price) + Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
// console.log($('#product_price').val() - getHalf);
|
||||
}else{
|
||||
$('.cls-uniformName').val('');
|
||||
$('.td-hide').css('display', 'none');
|
||||
$('.th-hide').css('display', 'none');
|
||||
|
||||
$('#product_price').val(Number(product_price) - Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
// console.log($('#product_price').val() + getHalf);
|
||||
}
|
||||
// console.log($(this).is(':checked'));
|
||||
});
|
||||
|
||||
$('#shorts_chk').click(function(){
|
||||
|
||||
var product_price = $('#product_price').val();
|
||||
var getPriceHold = $('#price_holder').val();
|
||||
var getHalf = getPriceHold / 2;
|
||||
|
||||
if($(this).is(':checked')){
|
||||
$('#product_price').val(Number(product_price) + Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
}else{
|
||||
|
||||
$('#product_price').val(Number(product_price) - Number(getHalf));
|
||||
$('#display-product-price').html('$ ' + $('#product_price').val());
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('input keyup', '.capitalizeText', function() {
|
||||
$(this).val($(this).val().toUpperCase());
|
||||
});
|
||||
|
||||
$('[id^=carousel-selector-]').click( function(){
|
||||
var id = this.id.substr(this.id.lastIndexOf("-") + 1);
|
||||
var id = parseInt(id);
|
||||
$('#myCarousel').carousel(id);
|
||||
$('.a_thumbnail').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
});
|
||||
|
||||
$("#frm-order-list").validate({
|
||||
|
||||
rules: {
|
||||
|
||||
'order_jersey_size[]': {
|
||||
required: true
|
||||
},
|
||||
'order_shorts_size[]': {
|
||||
required: true
|
||||
},
|
||||
'order_number[]': {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
messages: {},
|
||||
errorPlacement: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).html(error);
|
||||
}
|
||||
},
|
||||
|
||||
success: function(error, element) {
|
||||
var placement = $(element).data('error');
|
||||
if (placement) {
|
||||
$(placement).html('');
|
||||
}
|
||||
},
|
||||
submitHandler: submitOrderListForm
|
||||
});
|
||||
|
||||
function submitOrderListForm(){
|
||||
var data = $("#frm-order-list").serializeArray();
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('teamstore/q/add-to-cart') }}",
|
||||
data : data,
|
||||
dataType: 'json',
|
||||
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 = "{{ url('cart') }}";
|
||||
}else{
|
||||
alert(response.message);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ adding of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
$(document).on('button click', '#addNewRow', function(){
|
||||
var p_id = $('#p_id').val();
|
||||
$.ajax({ //create an ajax request to load_page.php
|
||||
type: "POST",
|
||||
url: "{{ url('/teamstore/q/add-new-row') }}",
|
||||
data: {
|
||||
p_id : p_id
|
||||
},
|
||||
|
||||
dataType: "html", //expect html to be returned
|
||||
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){
|
||||
|
||||
var d = new Date();
|
||||
var n = d.getTime();
|
||||
|
||||
var parser = new DOMParser();
|
||||
var doc = parser.parseFromString(response, "text/html");
|
||||
var elem = doc.getElementById("orderTableBody");
|
||||
var currentClassName = elem.getElementsByTagName('tr')[0].className;
|
||||
elem.getElementsByClassName(currentClassName)[0].classList.remove(currentClassName); // remove current Classname
|
||||
elem.getElementsByTagName('tr')[0].classList.add("table-tr-" + Math.ceil(Math.random() * 999999) + n); // add random classname
|
||||
$('#tableRow tbody').append(elem.innerHTML);
|
||||
$('#addnew-btn-tbl-row').html('')
|
||||
$('#addnew-btn-tbl-row').append('<button type="button" id="addNewRow" class="btn btn-success btn-sm pull-left" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i> Add Row</button>');
|
||||
$('.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>');
|
||||
$('#orderListPanel').scrollTop($('#orderListPanel')[0].scrollHeight);
|
||||
$('.inputName').keyup(function() {
|
||||
this.value = this.value.toLocaleUpperCase();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ end adding of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ removing of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
$(document).on('button click', '.removeRow', function(){
|
||||
var str = $(this).closest('tr').attr('class');
|
||||
var trCount = $('#tableRow tbody').children('tr').length;
|
||||
if(trCount <= 2){
|
||||
$('#addnew-btn-tbl-row').html('');
|
||||
$('.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();
|
||||
});
|
||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ end removing of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
}); //end document ready
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,52 @@
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-4">Name on Jersey</th>
|
||||
<th class="col-md-2">Number</th>
|
||||
<th class="col-md-3">Jersey Size</th>
|
||||
<th class="col-md-3">Shorts Size</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" class="form-control input-sm inputName roster-input" placeholder="Name on Jersey">
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="order_number[]">
|
||||
<option value="none">none</option>
|
||||
@for($i = 0; $i <= 99; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_jersey_size[]" data-row-number="1">
|
||||
<option value="none">none</option>
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_shorts_size[]" style="border-right: 1px solid #ccc;" data-row-number="1">
|
||||
<option value="none">none</option>
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th class="col-md-4">Jersey Size</th>
|
||||
<th class="col-md-4">Shorts Size</th>
|
||||
<th class="col-md-4">Quantity</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_jersey_size[]" data-row-number="1">
|
||||
<!-- <option value="none">none</option> !-->
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_shorts_size[]" data-row-number="1">
|
||||
<!-- <option value="none">none</option> !-->
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="quantity[]">
|
||||
@for($i = 1; $i <= 50; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>#</th> -->
|
||||
<th class="col-md-5">Gamer Tag</th>
|
||||
<th class="col-md-3">Name</th>
|
||||
<th class="col-md-3">Size</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-1">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" class="form-control input-sm inputName roster-input" placeholder="Gamer Tag">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="order_names2[]" class="form-control input-sm inputName roster-input" placeholder="Name">
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_size[]" style="border-right: 1px solid #ccc;" >
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-6">Name</th>
|
||||
<th class="col-md-5">Number</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" class="form-control input-sm inputName roster-input" placeholder="Name">
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" style="border-right: 1px solid #ccc;" name="order_number[]" id="order_number">
|
||||
<option value="none">none</option>
|
||||
@for($i = 0; $i <= 99; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>#</th> -->
|
||||
<th class="col-md-5">Name</th>
|
||||
<th class="col-md-3">Number</th>
|
||||
<th class="col-md-3">Size</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Name">
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="order_number[]">
|
||||
<option value="none">none</option>
|
||||
@for($i = 0; $i <= 99; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_size[]" style="border-right: 1px solid #ccc;" data-row-number="1">
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-6">Name</th>
|
||||
<th class="col-md-5">Size</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" class="form-control input-sm inputName roster-input" placeholder="Name">
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" style="border-right: 1px solid #ccc;" name="order_size[]" data-row-number="1">
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,32 @@
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>#</th> -->
|
||||
<th class="col-md-11">Number</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="order_number[]" style="border-right: 1px solid #ccc;">
|
||||
<option value="none">none</option>
|
||||
@for($i = 0; $i <= 99; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,48 @@
|
||||
<div class="panel-design-details" id="orderListPanel">
|
||||
<table class="table" id="tableRow" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-3">Number</th>
|
||||
<th class="col-md-4">Jersey Size</th>
|
||||
<th class="col-md-4">Shorts Size</th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="orderTableBody">
|
||||
<tr class="table-tr-0">
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="order_number[]">
|
||||
<option value="none">none</option>
|
||||
@for($i = 0; $i <= 99; $i++)
|
||||
<option value="{{ $i }}">{{ $i }}</option>
|
||||
@endfor
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_jersey_size[]" data-row-number="1">
|
||||
<option value="none">none</option>
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_shorts_size[]" style="border-right: 1px solid #ccc;" data-row-number="1">
|
||||
<option value="none">none</option>
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="addnew-btn-tbl-row">
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">Quantity <span class="required">*</span></label>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default btn-number" disabled="disabled" data-type="minus" data-field="quantity">
|
||||
<span class="glyphicon glyphicon-minus"></span>
|
||||
</button>
|
||||
</span>
|
||||
@if($product_array[0]->ProductAvailableQty == null)
|
||||
<input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="100">
|
||||
@else
|
||||
<input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="{{ $available_qty }}">
|
||||
@endif
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default btn-number" data-type="plus" data-field="quantity">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</button>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@if($available_qty != null)
|
||||
<p>{{ $available_qty }} piece/s available</p>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
|
||||
<div class="form-group mb-3">
|
||||
<label class="control-label">Size <span class="required">*</span></label>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<select class="form-control input-sm cls-uniformSize" name="uniformSize" data-error="#err-uniformSize" required >
|
||||
<option value="">Select Size</option>
|
||||
@foreach($sizes_array as $size)
|
||||
<option value="{{ $size->Size }}">{{ $size->SizeDisplay }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span id="err-uniformSize" style="color: #dd4b39"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label">Quantity <span class="required">*</span></label>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<button class="btn btn-outline-secondary btn-number" disabled="disabled" data-type="minus" data-field="quantity" type="button" id="button-addon1"><i class="fa fa-minus"></i></button>
|
||||
<input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="100">
|
||||
<button class="btn btn-outline-secondary btn-number" data-type="plus" data-field="quantity" type="button" id="button-addon1"> <i class="fa fa-plus"></i> </button>
|
||||
</div>
|
||||
{{-- <div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default btn-number" disabled="disabled" data-type="minus" data-field="quantity">
|
||||
<span class="glyphicon glyphicon-minus"></span>
|
||||
</button>
|
||||
</span>
|
||||
<input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="100">
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default btn-number" data-type="plus" data-field="quantity">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</button>
|
||||
</span>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
175
resources/views/teamstore-sublayouts/index.blade.php
Normal file
175
resources/views/teamstore-sublayouts/index.blade.php
Normal file
@@ -0,0 +1,175 @@
|
||||
@extends('merchbay_main')
|
||||
@section('main-content')
|
||||
|
||||
@if ($store_array[0]->IsHibernated)
|
||||
<script>
|
||||
window.location = "../";
|
||||
</script>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="pb-5">
|
||||
<div class="main__banner">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<div class="store-banner border-top">
|
||||
<img
|
||||
src="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreBanner }}"
|
||||
id="storeBanner"
|
||||
class="shadow-sm img-fluid w-100"
|
||||
alt="{{$store_array[0]->StoreName}}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main__content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="pt-4 b">
|
||||
<p class="please-read-title">Please read:</p>
|
||||
<ol class="please-read">
|
||||
<li>
|
||||
Items purchased are made on demand. Orders will be shipped
|
||||
based on dates set by your store administrator.
|
||||
</li>
|
||||
<li>
|
||||
Store payments are processed through PayPal. A PayPal
|
||||
account is not required to make a purchase.
|
||||
</li>
|
||||
<li>
|
||||
Orders will be batch processed on a weekly basis, please
|
||||
allow 2-3 weeks for delivery.
|
||||
</li>
|
||||
<li>
|
||||
We are currently only shipping to US locations. For
|
||||
international orders, please contact orders@merchbay.com
|
||||
if you'd like to place an order.
|
||||
</li>
|
||||
<li>Expect shipping delays due to COVID-19.</li>
|
||||
<li>
|
||||
All sales are final. No returns or exchanges will be
|
||||
accepted.
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="bg-black py-2">
|
||||
<p class="disclaimer text-white">Disclaimer</p>
|
||||
<div class="disclaimer-message">
|
||||
Masks and gaiters sold by Merchbay are not intended for
|
||||
medical use. Merchbay does not make any medical or health
|
||||
claims.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row py-4">
|
||||
<div class="col-lg-7">
|
||||
<form class="row g-2 g-lg-5">
|
||||
<div class="col-lg-9">
|
||||
<div class="input-group">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control border-end-0"
|
||||
placeholder="Search Item"
|
||||
aria-label="Search Item"
|
||||
aria-describedby="basic-addon2"
|
||||
/>
|
||||
<span
|
||||
class="input-group-text bg-white border-start-0"
|
||||
id="basic-addon2"
|
||||
><i class="bi bi-search"></i
|
||||
></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<form
|
||||
class="row g-2 g-lg-5 justify-content-end align-items-center"
|
||||
>
|
||||
<div class="col-lg-12">
|
||||
<div class="row">
|
||||
<div class="col-md-5 sort-by">
|
||||
<label for="selectSortBy" class="col-form-label"
|
||||
>Sort by:</label
|
||||
>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<select name="sort" class="form-control" id="sort">
|
||||
<option value="">Store Name A → Z</option>
|
||||
<option value="">Store Name Z → A</option>
|
||||
<option value="">Newest → Oldest</option>
|
||||
<option value="">Oldest → Newest</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h4>Catalog</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@foreach($product_array as $i => $product)
|
||||
@if($product->PrivacyStatus == "public")
|
||||
@foreach($thumbnails as $t => $thumb)
|
||||
@if($thumb['product_id'] == $product->Id)
|
||||
@define $storeFolder = $thumb['folder']
|
||||
@define $filename = $thumb['thumb']
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<div class="col-lg-3 col-md-3 col-sm-4">
|
||||
<div class="p-3 product">
|
||||
<a href="{{ url('store') }}/{{ $store_array[0]->StoreUrl }}/product/{{ $product->ProductURL }}">
|
||||
<div class="product-image">
|
||||
<img
|
||||
src="{{ config('site_config.images_url') }}/{{ $filename }}"
|
||||
class="d-block border shadow-sm"
|
||||
alt="{{ $product->ProductName }}"
|
||||
/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="store-name">{{ $product->ProductName }}</div>
|
||||
<div class="product-price d-flex">
|
||||
<div class="price">{{ $store_array[0]->StoreCurrency }} {{ $product->ProductPrice }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 py-2">
|
||||
<a
|
||||
href="{{ url('store') }}/{{ $store_array[0]->StoreUrl }}/product/{{ $product->ProductURL }}"
|
||||
class="btn btn-sm btn-black w-100"
|
||||
>View</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
<!-- END PRODUCTS -->
|
||||
|
||||
{{--
|
||||
<div class="col-lg-12">
|
||||
<div class="py-4 text-center">
|
||||
<button type="submit" class="btn btn-black mb-3 px-5">
|
||||
View more
|
||||
</button>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
38
resources/views/teamstore-sublayouts/login.blade.php
Normal file
38
resources/views/teamstore-sublayouts/login.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('app')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="text-center">
|
||||
Team Store Login
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@if (\Session::has('errors'))
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> {!! \Session::get('errors') !!}.<br><br>
|
||||
</div>
|
||||
@endif
|
||||
<form class="form-horizontal" role="form" method="POST" action="teamstore/checkpassword">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Password</label>
|
||||
<div class="col-md-6">
|
||||
<input type="password" class="form-control" name="password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-md-offset-4">
|
||||
<button type="submit" class="btn btn-primary btn-block">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
394
resources/views/teamstore-sublayouts/product-details.blade.php
Normal file
394
resources/views/teamstore-sublayouts/product-details.blade.php
Normal file
@@ -0,0 +1,394 @@
|
||||
@extends('merchbay_main')
|
||||
@section('main-content')
|
||||
@if ($store_array[0]->IsHibernated)
|
||||
<script>
|
||||
window.location = "../";
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<style>
|
||||
.carousel-item img {
|
||||
/* width: 100%; */
|
||||
/* height: 100%; */
|
||||
object-fit: contain !important;
|
||||
width: 100% !important;
|
||||
max-height: 100% !important;
|
||||
padding: 5px !important;
|
||||
}
|
||||
.carousel-indicators {
|
||||
display: inline-block !important;
|
||||
height: 400px !important;
|
||||
overflow-y: scroll !important;
|
||||
overflow-x: hidden !important;
|
||||
position: static !important;
|
||||
direction: rtl !important;
|
||||
}
|
||||
|
||||
.carousel-inner,
|
||||
.carousel-item {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
.carousel-indicators {
|
||||
display: inline-flex !important;
|
||||
direction: inherit !important;
|
||||
height: auto !important;
|
||||
width: 100% !important;
|
||||
max-width: 800px !important;
|
||||
overflow-x: auto !important;
|
||||
position: relative !important;
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
overflow-y: hidden !important;
|
||||
justify-content: normal !important;
|
||||
margin-top: 20px !important;
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
.carousel-inner {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
}
|
||||
/* width */
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
/* Track */
|
||||
::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
/* Handle */
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #888;
|
||||
}
|
||||
|
||||
/* Handle on hover */
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #555;
|
||||
}
|
||||
.item {
|
||||
margin-bottom: 10px !important;
|
||||
margin-left: 10px !important;
|
||||
cursor: pointer !important;
|
||||
height: 100px !important;
|
||||
width: 100px !important;
|
||||
border: solid 1px #e2e2e2 !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
.item.active img {
|
||||
/* border:1px solid #000000; */
|
||||
opacity: 1;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.item.active {
|
||||
border: 1px solid #000000 !important;
|
||||
}
|
||||
|
||||
.item img {
|
||||
border: 1px solid transparent !important;
|
||||
opacity: 0.5;
|
||||
transition: 0.5s !important;
|
||||
height: inherit !important;
|
||||
padding: 5px !important;
|
||||
display: block !important;
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
|
||||
.item:hover {
|
||||
border: 1px solid #000000 !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.content {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.5); /* Black background with transparency */
|
||||
color: #f1f1f1;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
}
|
||||
.content p {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
.content {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1440px) {
|
||||
/* .carousel-inner{
|
||||
margin-left: -60px;
|
||||
} */
|
||||
}
|
||||
@media screen and (min-width: 1200px) and (max-width: 1439px) {
|
||||
.carousel-inner {
|
||||
margin-left: -20px;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 880px) and (max-width: 1199px) {
|
||||
.carousel-inner {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.content {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 576px) and (max-width: 879px) {
|
||||
.carousel-inner {
|
||||
margin-left: 50px;
|
||||
}
|
||||
.content {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
|
||||
.custom-chevron-left,
|
||||
.custom-chevron-right {
|
||||
color: grey;
|
||||
}
|
||||
/* end single carousel*/
|
||||
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
}
|
||||
.spacer-top{
|
||||
margin-top: 40px;
|
||||
}
|
||||
.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{
|
||||
padding: 0px 0px;
|
||||
}
|
||||
.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>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
|
||||
border: none;
|
||||
}
|
||||
|
||||
.table>thead>tr>th{
|
||||
border-bottom:none;
|
||||
}
|
||||
.carousel-control.right{
|
||||
margin-right :0px;
|
||||
}
|
||||
.carousel-control.left {
|
||||
margin-left: 0px;
|
||||
}
|
||||
/* .edge-text { position:absolute; top:3px; right:28px; color:#555; font:bold 13px/1 sans-serif;} */
|
||||
|
||||
/* these styles are for the demo, but are not required for the plugin */
|
||||
.zoom {
|
||||
display:inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* magnifying glass icon */
|
||||
.zoom:after {
|
||||
content:'';
|
||||
display:block;
|
||||
width:33px;
|
||||
height:33px;
|
||||
position:absolute;
|
||||
top:0;
|
||||
right:0;
|
||||
/* background:url("{{asset('public/images/icon.png') }}"); */
|
||||
}
|
||||
|
||||
|
||||
tbody#orderTableBody>tr>td {
|
||||
padding: 0px !important;
|
||||
}
|
||||
.panel-design-details{
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="wrapper bg-white pb-5">
|
||||
<div class="main__banner">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<div class="store-banner border-top">
|
||||
<img
|
||||
src="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreBanner }}"
|
||||
id="storeBanner"
|
||||
class="shadow-sm img-fluid w-100"
|
||||
alt="..."
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main__content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="py-4">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ url('store') }}/{{ $store_array[0]->StoreUrl }}"
|
||||
>{{$store_array[0]->StoreName}}</a
|
||||
>
|
||||
</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">
|
||||
{{ $product_array[0]->ProductName }}
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-5">
|
||||
<div class="col-lg-6">
|
||||
<div
|
||||
id="demo"
|
||||
class="carousel slide vert"
|
||||
data-bs-interval="false"
|
||||
data-bs-ride="carousel"
|
||||
>
|
||||
<div class="row no-gutters">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-3 col-xl-3">
|
||||
<div class="carousel-indicators">
|
||||
@define $i = 0
|
||||
@foreach($thumbnails_array as $thumbnail)
|
||||
@if($thumbnail->ImageClass == 'active')
|
||||
<div
|
||||
data-bs-target="#demo"
|
||||
data-bs-slide-to="{{ $i }}"
|
||||
class="item active"
|
||||
>
|
||||
<img
|
||||
src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}"
|
||||
/>
|
||||
</div>
|
||||
@else
|
||||
<div
|
||||
data-bs-target="#demo"
|
||||
data-bs-slide-to="{{ $i }}"
|
||||
class="item"
|
||||
>
|
||||
<img
|
||||
src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}"
|
||||
/>
|
||||
</div>
|
||||
@endif
|
||||
@define $i++
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<!-- col-sm-4 Indicators -->
|
||||
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-9 col-xl-9 order-first order-lg-last">
|
||||
<div
|
||||
class="border text-center p-1 product-active-thumbnail"
|
||||
>
|
||||
<div class="carousel-inner align-self-center">
|
||||
@define $j = 0
|
||||
@foreach($thumbnails_array as $thumbnail)
|
||||
@if ($j == 0)
|
||||
<div class="carousel-item active">
|
||||
<img
|
||||
src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}"
|
||||
class="img-fluid"
|
||||
/>
|
||||
</div>
|
||||
@else
|
||||
<div class="carousel-item">
|
||||
<img
|
||||
src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}"
|
||||
class="img-fluid"
|
||||
/>
|
||||
</div>
|
||||
@endif
|
||||
@define $j++
|
||||
@endforeach
|
||||
</div>
|
||||
<!--inner-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- col-sm-6 -->
|
||||
</div>
|
||||
<!--row-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="product-name-display">
|
||||
<h3>{{ $product_array[0]->ProductName }}</h3>
|
||||
</div>
|
||||
<div class="d-flex product-price-display">
|
||||
<div class="currency">{{ $store_array[0]->StoreCurrency }} </div>
|
||||
<div class="price-display">{{ $product_array[0]->ProductPrice }}</div>
|
||||
</div>
|
||||
<form id="frm-order-list">
|
||||
<input type="hidden" value="{{ md5($product_array[0]->Id) }}" name="p_id" id="p_id" />
|
||||
@include('teamstore-sublayouts.forms.'.$product_array[0]->ProductForm)
|
||||
|
||||
@if($product_array[0]->ProductPrice > 0)
|
||||
<div class="py-3">
|
||||
<button class="btn btn-black" type="submit" id="btn-add-to-cart"><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> Add to Cart</button>
|
||||
</div>
|
||||
@endif
|
||||
</form>
|
||||
<hr>
|
||||
<p>{{ $product_array[0]->ProductDescription }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row py-5">
|
||||
<div class="col-lg-12">
|
||||
<h4>Other similar products</h4>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<p>...</p>
|
||||
</div>
|
||||
{{-- <div
|
||||
class="col-lg-2 col-md-3 col-6"
|
||||
v-for="index in 6"
|
||||
:key="index"
|
||||
>
|
||||
<div class="text-center p-3">
|
||||
<div class="store-logo">
|
||||
<v-lazy-image
|
||||
src="https://crewsportswear.com/uploads/images/teamstore/all-in-athletics/logo.jpg"
|
||||
class="d-block border shadow-sm"
|
||||
alt="..."
|
||||
/>
|
||||
</div>
|
||||
<div class="store-name text-truncate">22PLE</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
137
resources/views/teamstore-sublayouts/stores.blade.php
Normal file
137
resources/views/teamstore-sublayouts/stores.blade.php
Normal file
@@ -0,0 +1,137 @@
|
||||
<div class="row py-5">
|
||||
@foreach ($stores_array as $store)
|
||||
<div class="col-lg-2 col-md-3 col-sm-4">
|
||||
<div class="p-3 store">
|
||||
<a href="{{ url('store') . '/' . $store->StoreUrl }}">
|
||||
<div class="store-logo" v-if="index === 1">
|
||||
<img
|
||||
src="{{ config('site_config.uploads') . 'teamstore/' . $store->ImageFolder . '/' . $store->StoreLogo }}"
|
||||
class="d-block border shadow-sm"
|
||||
alt="{{ $store->StoreName }}"
|
||||
/>
|
||||
</div>
|
||||
<div class="store-name">{{ $store->StoreName }}</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
{{-- <div class="col-lg-12">
|
||||
<div class="py-4 text-center">
|
||||
<button type="submit" class="btn btn-black mb-3 px-5">
|
||||
View all store
|
||||
</button>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
{{-- <div class="container">
|
||||
<div class="row">
|
||||
<form class="form-horizontal" role="search" id="frm_search_store">
|
||||
<div class="col-lg-7">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<label>Seach Store</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search Store" value="{{ $keyword }}" name="q">
|
||||
<div class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-7 control-label hidden-xs"> </label>
|
||||
<div class="col-sm-5">
|
||||
<label>Sort by:</label>
|
||||
<select class="form-control" name="s" id="select_sort_stores">
|
||||
<option @if($filter == "al-asc") selected @endif value="al-asc">Store Name A → Z</option>
|
||||
<option @if($filter == "al-desc") selected @endif value="al-desc">Store Name Z → A</option>
|
||||
<option @if($filter == "latest") selected @endif value="latest">Newest → Oldest</option>
|
||||
<option @if($filter == "oldest") selected @endif value="oldest">Oldest → Newest</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="row" id="slider-thumbs">
|
||||
|
||||
<ul class="hide-bullets">
|
||||
@foreach ($stores_array as $store)
|
||||
<li class="li-custom col-lg-3 col-md-3 col-sm-4 col-xs-12">
|
||||
<div style="border: 1px solid #dddddd; padding: 5px;">
|
||||
@if($store->Password != null )
|
||||
<a class="thumbnail password-protected" href="#" data-store-id="{{ $store->Id }}" data-store-url="{{ $store->StoreUrl }}">
|
||||
<img class="store-logo" src="{{ config('site_config.uploads') . 'teamstore/'. $store->ImageFolder . '/' . $store->StoreLogo }}">
|
||||
</a>
|
||||
<h4 style="border-top: 1px solid #dddddd; padding: 10px; font-size: 16px; font-weight: bold; text-transform: uppercase;" class="text-center">{{ $store->StoreName }} <i class="fa fa-lock" title="This store is password protected."></i></h4>
|
||||
@else
|
||||
<a class="thumbnail" href="{{ url('teamstore') . '/' . $store->StoreUrl }}">
|
||||
<img class="store-logo" src="{{ config('site_config.uploads') . 'teamstore/' . $store->ImageFolder . '/' . $store->StoreLogo }}">
|
||||
</a>
|
||||
<h4 style="border-top: 1px solid #dddddd; padding: 10px; font-size: 16px; font-weight: bold; text-transform: uppercase;" class="text-center">{{ $store->StoreName }}</h4>
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="text-center">
|
||||
{!! $stores_array->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
<!-- /container -->
|
||||
|
||||
|
||||
<div id="team-store-login" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Teamstore Login</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@if (\Session::has('errors'))
|
||||
<div class="alert alert-danger data-errors">
|
||||
<strong>Whoops!</strong> {!! \Session::get('errors') !!}.<br><br>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form class="form-horizontal" role="form" method="POST" action="{{ url('teamstore/checkpassword') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" class="form-control" id="_teamstore_id" name="store_id">
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Password</label>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group">
|
||||
|
||||
<input type="password" class="form-control pwd" name="password">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default reveal-password" type="button"><i class="fa fa-eye"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-md-offset-4">
|
||||
<button type="submit" class="btn btn-primary btn-block">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
150
resources/views/user-layouts/add_item.blade.php
Normal file
150
resources/views/user-layouts/add_item.blade.php
Normal file
@@ -0,0 +1,150 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Add Store Item
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url('user/store-items') }}"><i class="fa fa-th"></i> Store Items</a></li>
|
||||
<li class="active">Add new Item</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<form id="frm-add-item">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12" id="main_thumbnail_uploader">
|
||||
<div style="min-height:500px;">
|
||||
<input type="file" id="imgupload" name="imgupload[]" style="display:none;" multiple accept="image/*"/>
|
||||
<a href="#" id="OpenImgUpload" style="position:absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);" >
|
||||
<img class="img img-responsive product-center " style="height: 65.45px;" src="{{ asset('/public/images/add-new-img.svg') }}"/>
|
||||
<div class="text-center"> Add item image(s)</div>
|
||||
<!-- <div class="gallery"></div> -->
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- image preview -->
|
||||
<div class="col-md-12" id="upload_thumbnail_preview" style="display:none;">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<img style="height:400px" src="#" id="main-thumbnail">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="hide-bullets small-preview-thumb">
|
||||
<!-- <li class="col-sm-3 col-xs-3">
|
||||
<a href="#" class="text-center thumbnail a_thumbnail" id="OpenImgUpload2">
|
||||
<i style="font-size: 70px;" class="fa fa-picture-o"></i>
|
||||
<div class="text-center"> Add more image(s)</div>
|
||||
</a>
|
||||
</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
Item Details
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<input type="hidden" class="form-control" name="templateCode" value="manual_upload">
|
||||
<input type="hidden" class="form-control" name="designCode" value="manual_upload">
|
||||
<div class="form-group">
|
||||
<div id="add_item_response_msg"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Item Name</label>
|
||||
<input type="text" class="form-control" id="itemName" name="itemName" placeholder="Item Name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Desription</label>
|
||||
<textarea class="form-control" name="itemDescription"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Price</label>
|
||||
<input id="item_price" name="itemPrice" class="form-control price_format" value="0.00" type="text" data-error="#err-price" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Form</label>
|
||||
<select class="form-control" name="itemForm">
|
||||
<option value="jersey-and-shorts-form">Jersey and Shorts Form</option>
|
||||
<option value="tshirt-form">T-Shirt Form</option>
|
||||
<option value="quantity-form">Quantity Form</option>
|
||||
<option value="name-number-form">Name and Number Form</option>
|
||||
<option value="name-number-size-form">Name, Number and Size Form</option>
|
||||
<option value="number-form">Number Only Form</option>
|
||||
<option value="name-size-form">Name and Size Form</option>
|
||||
<option value="jersey-and-shorts-quantity-form">Jersey, Shorts and Quantity Form</option>
|
||||
<option value="number-jersey-shorts-form">Number, Jersey and Shorts Form</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item URL</label>
|
||||
<input type="text" class="form-control" id="product_url" name="itemUrl" placeholder="Item URL">
|
||||
<!-- <div class="input-group">
|
||||
<span class="input-group-addon" id="basic-addon3">{{ url() . "/teamstore/" . $store_array[0]->StoreUrl . '/'}}</span>
|
||||
<input type="text" class="form-control" id="product_url" name="itemUrl" aria-describedby="basic-addon3" data-error="#err-itemUrl" >
|
||||
</div>
|
||||
<span id="err-itemUrl"></span> -->
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Available Size</label>
|
||||
<select class="form-control select2" data-error="#err_available_size" data-placeholder="Select Size" name="available_size[]" multiple="multiple" required>
|
||||
<option value="toddler">Toddler</option>
|
||||
<option value="youth">Youth</option>
|
||||
<option value="adult">Adult</option>
|
||||
<option value="mask">Mask</option>
|
||||
<option value="gaiter">Gaiter</option>
|
||||
<option value="buckethat">Buckethat</option>
|
||||
<option value="none">None</option>
|
||||
</select>
|
||||
<span id="err_available_size"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Privacy</label>
|
||||
<select class="form-control" name="itemPrivacy">
|
||||
<option value="private">Private</option>
|
||||
<option value="public">Public</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-default">Cancel</button> -->
|
||||
<button type="submit" id="btn_submit_new_item" class="btn btn-primary pull-right">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
62
resources/views/user-layouts/address_book.blade.php
Normal file
62
resources/views/user-layouts/address_book.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Address Book
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li class="active">Address Book</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">
|
||||
|
||||
<!-- <h3 class="box-title">
|
||||
Current Address Book
|
||||
|
||||
</h3> -->
|
||||
@if(count($array_address_book) <= 0)
|
||||
<a href="{{ url('user/address-book/create') }}" class="btn btn-primary pull-right btn-sm"><i class="fa fa-plus"></i> Add New Address</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="box-body custom-box-body">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Full name</th>
|
||||
<th>Address</th>
|
||||
<th>Postcode</th>
|
||||
<th>Phone Number</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
@foreach($array_address_book as $row)
|
||||
<tr>
|
||||
<td>{{ $row->Fullname }}</td>
|
||||
<td>{{ $row->Address }}</td>
|
||||
<td>{{ $row->State }}, {{ $row->City }}, {{ $row->ZipCode }}</td>
|
||||
<td>{{ $row->ContactNumber }}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ url('user/address-book/edit/') }}/{{ $row->Id }}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i> Edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
51
resources/views/user-layouts/announcement.blade.php
Normal file
51
resources/views/user-layouts/announcement.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Announcement
|
||||
<!-- <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">Announcement</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">
|
||||
<h3 class="box-title">Announcement</h3>
|
||||
<div class="pull-right">
|
||||
<input type="checkbox" id="isActiveAnnouncement" @if($data->IsActive) checked @endif data-id={{ $data->Id }} name="isActiveAnnouncement" data-toggle="toggle" data-width="100px" data-on="<i class='fa fa-check-circle'></i> Active" data-off="<i class='fa fa-ban'></i> Inactive" data-size="small">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form role="form" id="form_announcement">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Current Announcement</label>
|
||||
<textarea class="form-control" rows="5" name="announcementInput" placeholder="Announcement">{{ $data->Announcement }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">Save Changes</button>
|
||||
</div>
|
||||
</form>
|
||||
{{-- {!! nl2br(e($data->Announcement)) !!} --}}
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
172
resources/views/user-layouts/buy_design.blade.php
Normal file
172
resources/views/user-layouts/buy_design.blade.php
Normal file
@@ -0,0 +1,172 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
My Designs
|
||||
<small>{{ $array_client_designs[0]->DesignName }}</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url('user/my-designs') }}"><i class="fa fa-th-list"></i> My Designs</a></li>
|
||||
<li class="active">{{ $array_client_designs[0]->DesignName }} </li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<!-- <a href="{{ url('designer/edit') }}/{{ $array_client_designs[0]->DesignCode }}" type="button" class="btn btn-default pull-right" style="margin-left: 5px;"><i class="fa fa-edit"></i> Edit Design</a>
|
||||
<button type="button" data-dd="{{ $array_client_designs[0]->DesignCode }}" data-port="{{ $array_cat_name[0]->Port }}" class="btn btn-warning pull-right" id="btn-reload-thumbnails"><i class="fa fa-refresh"></i> Reload Image Thumbnails</button> -->
|
||||
<h3 class="box-title">
|
||||
Sell this Design
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="thumb-content">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
@foreach($array_client_designs as $row)
|
||||
@foreach($array_template_paths as $key => $row1)
|
||||
@if($key == 0)
|
||||
<img src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" id="main-thumbnail" class="img img-responsive">
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="hide-bullets">
|
||||
@foreach($array_client_designs as $row)
|
||||
@foreach($array_template_paths as $key => $row1)
|
||||
@if($key == 0)
|
||||
<li class="col-sm-3 col-xs-3">
|
||||
<a class="thumbnail a_thumbnail active">
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png"/>
|
||||
</a>
|
||||
<!-- <p>Select Default Thumbnail:</p>
|
||||
<div class="text-center">
|
||||
<input type="radio" name="active_thumbnail" value="{{ $row1->Side }}" checked>
|
||||
</div> -->
|
||||
</li>
|
||||
@else
|
||||
<li class="col-sm-3 col-xs-3">
|
||||
<a class="thumbnail a_thumbnail">
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
|
||||
</a>
|
||||
<!-- <p> </p>
|
||||
<div class="text-center">
|
||||
<input type="radio" name="active_thumbnail" value="{{ $row1->Side }}" >
|
||||
</div> -->
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-md-5">
|
||||
asdasdadadsaad
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
Item Details
|
||||
</h3>
|
||||
</div>
|
||||
<form id="frm_sell_design">
|
||||
<input type="hidden" name="templateCode" class="form-control" value="{{ $array_client_designs[0]->TemplateCode }}">
|
||||
<input type="hidden" name="designCode" class="form-control" value="{{ $array_client_designs[0]->DesignCode }}">
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!-- <input type="hidden" class="form-control" name="item_url" placeholder="Item Name"> -->
|
||||
<div class="form-group">
|
||||
<div id="sell-design-response-msg"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Item Name</label>
|
||||
<input type="text" class="form-control" id="itemName" name="itemName" placeholder="Item Name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Desription</label>
|
||||
<textarea class="form-control" name="itemDescription"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Price</label>
|
||||
<input id="item_price" name="itemPrice" class="form-control price_format" type="text" data-error="#err-price" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Form</label>
|
||||
<select class="form-control" name="itemForm">
|
||||
<option value="jersey-and-shorts-form">Jersey and Shorts Form</option>
|
||||
<option value="tshirt-form">T-Shirt Form</option>
|
||||
<option value="quantity-form">Quantity Form</option>
|
||||
<option value="name-and-number-form">Name and Number Form</option>
|
||||
<option value="name-number-size-form">Name, Number and Size Form</option>
|
||||
<option value="number-form">Number Only Form</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item URL</label>
|
||||
<input type="text" class="form-control" id="product_url" name="itemUrl" placeholder="Item URL">
|
||||
<!-- <div class="input-group">
|
||||
<span class="input-group-addon" id="basic-addon3">{{ url() . "/teamstore/" . $store_array[0]->StoreUrl . '/'}}</span>
|
||||
<input type="text" class="form-control" id="product_url" name="itemUrl" aria-describedby="basic-addon3" data-error="#err-itemUrl" >
|
||||
</div>
|
||||
<span id="err-itemUrl"></span> -->
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Available Size</label>
|
||||
<select class="form-control select2" data-error="#err_available_size" data-placeholder="Select Size" name="available_size[]" multiple="multiple" required>
|
||||
<option value="toddler">Toddler</option>
|
||||
<option value="youth">Youth</option>
|
||||
<option value="adult">Adult</option>
|
||||
</select>
|
||||
<span id="err_available_size"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Privacy</label>
|
||||
<select class="form-control" name="itemPrivacy">
|
||||
<option value="private">Private</option>
|
||||
<option value="public">Public</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-default">Cancel</button> -->
|
||||
<button type="submit" class="btn btn-primary pull-right">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
90
resources/views/user-layouts/change_password.blade.php
Normal file
90
resources/views/user-layouts/change_password.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Change Password
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url ('user/profile') }}"><i class="fa fa-user"></i> My Profile</a></li>
|
||||
<li class="active">Change Password</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Edit Password
|
||||
</h3>
|
||||
</div>
|
||||
<form role="form" id="frm-change-password">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label>Current Password</label>
|
||||
<div class="input-group">
|
||||
<input type="password" class="form-control" id="current_password" name="current_password" placeholder="Enter your current password">
|
||||
<span class="input-group-addon">
|
||||
<div class="checkbox checkbox-inline">
|
||||
<input type="checkbox" class="styled" id="chk-currentpass">
|
||||
<label for="chk-currentpass"> Show String</label>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label>New Password</label>
|
||||
<div class="input-group">
|
||||
<input type="password" class="form-control" id="new_password" name="new_password" placeholder="Enter your new password">
|
||||
<span class="input-group-addon">
|
||||
<div class="checkbox checkbox-inline">
|
||||
<input type="checkbox" class="styled" id="chk-newpass">
|
||||
<label for="chk-newpass"> Show String</label>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="form-group">
|
||||
<label>Confirm New Password</label>
|
||||
<div class="input-group">
|
||||
<input type="password" class="form-control" id="con_new_password" name="con_new_password" placeholder="Enter your confirm new password">
|
||||
<span class="input-group-addon">
|
||||
<div class="checkbox checkbox-inline">
|
||||
<input type="checkbox" class="styled" id="chk-con-newpass">
|
||||
<label for="chk-con-newpass"> Show String</label>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">update</button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
81
resources/views/user-layouts/create_address_book.blade.php
Normal file
81
resources/views/user-layouts/create_address_book.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Address Book
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url ('user/address-book') }}"><i class="fa fa-address-book-o"></i> Address Book</a></li>
|
||||
<li class="active">Add New Address</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Add New Address
|
||||
</h3>
|
||||
</div>
|
||||
<form role="form" id="frm-create-address-book">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>Fullname</label>
|
||||
<input type="text" class="form-control" name="fullname" placeholder="Fullaname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Mobile Number</label>
|
||||
<input type="text" class="form-control" name="mobilenumber" placeholder="Please enter your mobile number">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Other Notes</label>
|
||||
<input type="text" class="form-control" name="othernotes" placeholder="Please enter your notes">
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>House Number, Building and Street Name</label>
|
||||
<input type="text" class="form-control" name="address" placeholder="Please enter your House Number, Building and Street Name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>State</label>
|
||||
<select class="form-control" name="state" id="lst-states" >
|
||||
<option value="">Select State</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>City</label>
|
||||
<select class="form-control" name="city" id="lst-cities">
|
||||
<option value="">Select City</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Zip Code</label>
|
||||
<input type="text" class="form-control" name="zipcode" placeholder="Please enter your zip code">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
81
resources/views/user-layouts/edit_address_book.blade.php
Normal file
81
resources/views/user-layouts/edit_address_book.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Address Book
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url ('user/address-book') }}""><i class="fa fa-address-book-o"></i> Address Book</a></li>
|
||||
<li class="active">Edit Address Book</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Edit Address
|
||||
</h3>
|
||||
</div>
|
||||
<form role="form" id="frm-edit-address-book">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<input type="hidden" class="form-control" name="id" value="{{ $array_address_book[0]->Id }}">
|
||||
<div class="form-group">
|
||||
<label>Fullname</label>
|
||||
<input type="text" class="form-control" name="fullname" placeholder="Fullaname" value="{{ $array_address_book[0]->Fullname }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Mobile Number</label>
|
||||
<input type="text" class="form-control" name="mobilenumber" placeholder="Please enter your mobile number" value="{{ $array_address_book[0]->ContactNumber }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Other Notes</label>
|
||||
<input type="text" class="form-control" name="othernotes" placeholder="Please enter your notes" value="{{ $array_address_book[0]->OtherNotes }}">
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>House Number, Building and Street Name</label>
|
||||
<input type="text" class="form-control" name="address" placeholder="Please enter your House Number, Building and Street Name" value="{{ $array_address_book[0]->Address }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>State</label>
|
||||
<select class="form-control" name="state" id="lst-states" data-selected="{{ $array_address_book[0]->State }}">
|
||||
<option value="">Select State</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>City</label>
|
||||
<select class="form-control" name="city" id="lst-cities" data-selected="{{ $array_address_book[0]->City }}">
|
||||
<option value="">Select City</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Zip Code</label>
|
||||
<input type="text" class="form-control" name="zipcode" placeholder="Please enter your zip code" value="{{ $array_address_book[0]->ZipCode }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">Update</button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
87
resources/views/user-layouts/edit_profile.blade.php
Normal file
87
resources/views/user-layouts/edit_profile.blade.php
Normal file
@@ -0,0 +1,87 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Edit Profile
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url ('user/profile') }}"><i class="fa fa-user"></i> My Profile</a></li>
|
||||
<li class="active">Edit Profile</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Personal Info
|
||||
</h3>
|
||||
</div>
|
||||
<form role="form" id="frm-edit-profile">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Fullname</label>
|
||||
<input type="text" class="form-control" name="fullname" placeholder="Fullaname" value="{{ $array_profile_info[0]->name }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Email Address</label>
|
||||
<input type="email" class="form-control" name="email" placeholder="Please enter your email address" value="{{ $array_profile_info[0]->email }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Mobile Number</label>
|
||||
<p>
|
||||
<input type="text" class="form-control" name="contactnumber" placeholder="Please enter your mobile number" value="{{ $array_profile_info[0]->ContactNumber }}">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Birthday</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input type="text" id="datepicker_bday" name="birthday" placeholder="Please enter your birthdate" class="form-control" value="{{ date('m/d/Y', strtotime($array_profile_info[0]->Birthday)) }}"><span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Gender</label>
|
||||
<select class="form-control" name="gender">
|
||||
<option value="Male" @if($array_profile_info[0]->Gender == "Male") selected @endif>Male</option>
|
||||
<option value="Female" @if($array_profile_info[0]->Gender == "Female") selected @endif>Female</option>
|
||||
</select>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">update</button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
62
resources/views/user-layouts/email_verify.blade.php
Normal file
62
resources/views/user-layouts/email_verify.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Email Verification
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url ('user/profile') }}"><i class="fa fa-user"></i> Profile</a></li>
|
||||
<li class="active">Email Verification</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Email Verification
|
||||
</h3>
|
||||
</div> -->
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<form role="form" id="frm_verification_code">
|
||||
<label>Verification Code</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" data-error="#err_vercode" name="verification_code" placeholder="Please enter verification code">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<span id="err_vercode" style="color: #dd4b39"></span>
|
||||
</form>
|
||||
<a href="#" type="button" class="btn btn-link" data-email="{{ $array_profile_info[0]->email }}" id="btn_resend_code"><i class="fa fa-angle-double-right"></i> Resend Code <span class="badge" id="resend_countdown"></span></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="box-footer">
|
||||
<a href="{{ url('user/profile/edit') }}" type="submit" class="btn btn-primary btn-custom-save">Edit</a>
|
||||
<a href="{{ url('user/profile/change-password') }}" type="submit" class="btn btn-danger btn-custom-save">Change Password</a>
|
||||
</div> -->
|
||||
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
8
resources/views/user-layouts/footer.blade.php
Normal file
8
resources/views/user-layouts/footer.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<footer class="main-footer">
|
||||
<!-- To the right -->
|
||||
<div class="pull-right hidden-xs">
|
||||
Version 1.0
|
||||
</div>
|
||||
<!-- Default to the left -->
|
||||
<strong>Copyright © <?php echo date('Y') ?> <a href="http://crewsportswear.com">crewsportswear.com</a>.</strong> All rights reserved.
|
||||
</footer>
|
||||
31
resources/views/user-layouts/header.blade.php
Normal file
31
resources/views/user-layouts/header.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<header class="main-header">
|
||||
<!-- Logo -->
|
||||
<a href="{{ url('user') }}" class="logo">
|
||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||
<span class="logo-mini"><b>M</b></span>
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<span class="logo-lg"><b>Merchbay</b></span>
|
||||
</a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<!-- Control Sidebar Toggle Button -->
|
||||
<li class="user user-menu">
|
||||
<a href="#">
|
||||
<img src="{{ config('site_config.uploads') . 'user/default-user.png' }}" class="user-image" alt="User Image">
|
||||
<span class="hidden-xs">{{ Auth::user()->username }}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url('/auth/logout') }}"><i class="fa fa-sign-out"></i> Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
146
resources/views/user-layouts/index.blade.php
Normal file
146
resources/views/user-layouts/index.blade.php
Normal file
@@ -0,0 +1,146 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Dashboard
|
||||
<small>Control panel</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
|
||||
<section class="content">
|
||||
@if(Auth::user()->email_is_verified == "0")
|
||||
<div class="alert alert-warning alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-check"></i> To do!</h4>
|
||||
Please verify your Email Address. <a href="{{ url('user/email-verify') }}">Click here</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($data['isStoreOwner'])
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3>{{ $data['store_order'] or 0 }}</h3>
|
||||
<p>Total Item Ordered</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-bag"></i>
|
||||
</div>
|
||||
<a href="./user/store-orders" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3>{{ number_format($data['store_income'], 2) }}</h3>
|
||||
|
||||
<p>Store Income</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-cash"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner">
|
||||
<h3>{{ $data['store_product_count'] or 0 }}</h3>
|
||||
|
||||
<p>Total Products</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-ios-pricetags"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-red">
|
||||
<div class="inner">
|
||||
<h3>{{ $data['store_published_product'] or 0 }}</h3>
|
||||
|
||||
<p>Total Published Product</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-ios-pricetags-outline"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
</div>
|
||||
{{-- <div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Total Sales</h3>
|
||||
<div class="box-tools">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="well">
|
||||
<div class="form-group col-md-3">
|
||||
<label class="control-label">Select Year: <span class="required">*</span></label>
|
||||
<select type="text" class="form-control" placeholder="Select Select Year">
|
||||
<option value="2020">2020</option>
|
||||
<option value="2019">2019</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label class="control-label">Select Month <span class="required">*</span></label>
|
||||
<select class="form-control" placeholder="Select Date">
|
||||
<option value="">January</option>
|
||||
<option value="">February</option>
|
||||
<option value="">March</option>
|
||||
<option value="">April</option>
|
||||
<option value="">May</option>
|
||||
<option value="">June</option>
|
||||
<option value="">July</option>
|
||||
<option value="">August</option>
|
||||
<option value="">September</option>
|
||||
<option value="">October</option>
|
||||
<option value="">November</option>
|
||||
<option value="">December</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="chart">
|
||||
<canvas id="myChart" style="height:350px"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
@else
|
||||
<div class="text-center" id="homepage-logo">
|
||||
<img src="{{asset('/public/images/logo.png')}}" style="height: 200px;" class="img img-responsive" />
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
63
resources/views/user-layouts/my-design.blade.php
Normal file
63
resources/views/user-layouts/my-design.blade.php
Normal file
@@ -0,0 +1,63 @@
|
||||
@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">
|
||||
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>
|
||||
@endforeach
|
||||
<div class="col-md-12 col-sm-12 pull-right">
|
||||
{!! $array_client_designs->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
204
resources/views/user-layouts/order-details-body.blade.php
Normal file
204
resources/views/user-layouts/order-details-body.blade.php
Normal file
@@ -0,0 +1,204 @@
|
||||
<table class="table table-condensed table-bordered">
|
||||
<tr >
|
||||
<th class="bg-info" colspan="2">Payer Information</th>
|
||||
<th class="text-center bg-info">Shipping Address</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Payer Name</th>
|
||||
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
|
||||
<td rowspan="3">
|
||||
{{ $array_shipping_add[0]->recipient_name }}<br>
|
||||
{{ $array_shipping_add[0]->line1 . ' ' . $array_shipping_add[0]->line2 . ', ' }}<br>
|
||||
{{ $array_shipping_add[0]->city . ', ' . $array_shipping_add[0]->state . ' ' . $array_shipping_add[0]->postal_code }}<br>
|
||||
{{ $array_shipping_add[0]->country_code }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Payer Email Address</th>
|
||||
<td>{{ $array_payment_details[0]->Payer_Email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Payment Method</th>
|
||||
<td>{{ $array_payment_details[0]->PaymentMethod }}</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<th class="bg-info" colspan="3">Transaction Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Invoice #</th>
|
||||
<td colspan="2">{{ $array_payment_details[0]->InvoiceNumber }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<div class="text-center">
|
||||
<img class="previewImage" id="active_thumbnail" src="{{ config('site_config.images_url') . '/images/' . $array_thumbnail_display[0]->Image }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<table class="table table-striped table-condensed">
|
||||
@if($array_item[0]->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<!-- <th></th> -->
|
||||
|
||||
</tr>
|
||||
|
||||
@elseif($array_item[0]->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
|
||||
@elseif($array_item[0]->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="number-form")
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="name-name2-size-form")
|
||||
<tr>
|
||||
<th>Gamer Tag</th>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="jersey-and-shorts-quantity-form")
|
||||
<tr>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="number-jersey-shorts-form")
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@if($array_item[0]->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<td> @if($array_item[0]->Name != '') {{ $array_item[0]->Name }} @else -- @endif </td>
|
||||
<td>{{ $array_item[0]->Number }}</td>
|
||||
<td>{{ $array_item[0]->JerseySize }}</td>
|
||||
<td>{{ $array_item[0]->ShortsSize }}</td>
|
||||
<td>{{ $array_item[0]->Price }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Size }}</td>
|
||||
<td>{{ $array_item[0]->Price }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
<!-- <td><a href="{{ url('admin/orders/download/tshirt' . '/' . $array_item[0]->DesignCode . '/' . $array_item[0]->Id )}}" class="btn btn-xs btn-primary"><i class="fa fa-download"></i> Download Print File</a></td> -->
|
||||
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Price }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Name }}</td>
|
||||
<td>{{ $array_item[0]->Number }}</td>
|
||||
<td>{{ $array_item[0]->Price }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Name }}</td>
|
||||
<td>{{ $array_item[0]->Number }}</td>
|
||||
<td>{{ $array_item[0]->Size }}</td>
|
||||
<td>{{ $array_item[0]->Price }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="number-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Number }}</td>
|
||||
<td>{{ $array_item[0]->Price }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
</tr>
|
||||
|
||||
@elseif($array_item[0]->FormUsed=="name-name2-size-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Name }}</td>
|
||||
<td>{{ $array_item[0]->Name2 }}</td>
|
||||
<td>{{ $array_item[0]->Size }}</td>
|
||||
<td>{{ $array_item[0]->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Name }}</td>
|
||||
<td>{{ $array_item[0]->Size }}</td>
|
||||
<td>{{ $array_item[0]->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="jersey-and-shorts-quantity-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->JerseySize}}</td>
|
||||
<td>{{ $array_item[0]->ShortsSize}}</td>
|
||||
<td>{{ $array_item[0]->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($array_item[0]->FormUsed=="number-jersey-shorts-form")
|
||||
<tr>
|
||||
<td>{{ $array_item[0]->Number }}</td>
|
||||
<td>{{ $array_item[0]->JerseySize }}</td>
|
||||
<td>{{ $array_item[0]->ShortsSize }}</td>
|
||||
<td>{{ $array_item[0]->Price . ' ' . $store_array[0]->StoreCurrency }}</td>
|
||||
<td>{{ $array_item[0]->Quantity }}</td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
244
resources/views/user-layouts/order_details.blade.php
Normal file
244
resources/views/user-layouts/order_details.blade.php
Normal file
@@ -0,0 +1,244 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.previewImage{
|
||||
height: 150px;
|
||||
width: 95%;
|
||||
overflow:hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Orders
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url ('user/orders') }}"><i class="fa fa-list"></i> Orders</a></li>
|
||||
<li class="active">Orders Details</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">
|
||||
<h3 class="box-title">
|
||||
Order Details
|
||||
</h3>
|
||||
</div>
|
||||
<!-- <form role="form" id="frm-create-address-book"> -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-condensed table-bordered">
|
||||
<tr >
|
||||
<th class="text-center" colspan="2">Payer Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Payer Name</th>
|
||||
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Payer Email Address</th>
|
||||
<td>{{ $array_payment_details[0]->Payer_Email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Payment Method</th>
|
||||
<td>{{ $array_payment_details[0]->PaymentMethod }}</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<th class="text-center" colspan="2">Transaction Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Subtotal</th>
|
||||
<td>{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
@foreach($item_goup_array as $item)
|
||||
@if($item->VoucherId != null)
|
||||
<tr>
|
||||
<th class="col-md-3">Discount</th>
|
||||
<td>Voucher Code: <b>{{ $item->ProductName }} </b> / {{ $item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
<tr>
|
||||
<th class="col-md-3">Tax</th>
|
||||
<td>{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Total</th>
|
||||
<td>{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col-md-3">Invoice #</th>
|
||||
<td>{{ $array_payment_details[0]->InvoiceNumber }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@foreach($item_goup_array as $item)
|
||||
@if($item->VoucherId == null)
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<div class="text-center">
|
||||
@foreach($img_thumb as $img)
|
||||
@if($img->ProductId == $item->ProductId)
|
||||
<img class="previewImage" src="{{ config('site_config.images_url') }}/{{ $img->Image }}">
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<h4><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></h4>
|
||||
<p>Total Price: {{ $item->total_price . ' ' . $array_payment_details[0]->Currency }} • Row(s): {{ $item->qty }} </p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-condensed">
|
||||
|
||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Jersey Size</th>
|
||||
<th>Shorts Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
|
||||
@elseif($item->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="number-form")
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
@foreach($order_item_array as $sub_item)
|
||||
@if($sub_item->ProductId == $item->ProductId)
|
||||
|
||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||
<tr>
|
||||
<td> @if($sub_item->Name != '') {{ $sub_item->Name }} @else -- @endif </td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->JerseySize }}</td>
|
||||
<td>{{ $sub_item->ShortsSize }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="tshirt-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="quantity-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-number-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="name-number-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@elseif($item->FormUsed=="number-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Number }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
|
||||
@elseif($item->FormUsed=="name-size-form")
|
||||
<tr>
|
||||
<td>{{ $sub_item->Name }}</td>
|
||||
<td>{{ $sub_item->Size }}</td>
|
||||
<td>{{ $sub_item->Price . ' ' . $array_payment_details[0]->Currency }}</td>
|
||||
<td>{{ $sub_item->Quantity }}</td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
67
resources/views/user-layouts/orders.blade.php
Normal file
67
resources/views/user-layouts/orders.blade.php
Normal file
@@ -0,0 +1,67 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Orders
|
||||
<!-- <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">Orders</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Order List
|
||||
</h3>
|
||||
</div>
|
||||
<form role="form" id="frm-create-address-book">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Invoice No.</th>
|
||||
<th>Total Payment</th>
|
||||
<th>Date Created</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($array_payment_details as $row)
|
||||
<tr>
|
||||
<td>{{ $row->InvoiceNumber }} </td>
|
||||
<td>{{ $row->Currency }} {{ $row->Total }} </td>
|
||||
<td>{{ date('F j, Y g:i a', strtotime($row->DateCreated)) }} </td>
|
||||
<td class="text-center">
|
||||
<a href="{{ url('user/orders/view') }}/{{ $row->CartKey }}" class="btn btn-default btn-xs">View Details</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-primary btn-custom-save">Save</button> -->
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
102
resources/views/user-layouts/profile.blade.php
Normal file
102
resources/views/user-layouts/profile.blade.php
Normal file
@@ -0,0 +1,102 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
My Profile
|
||||
<!-- <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 Profile</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Personal Info
|
||||
</h3>
|
||||
</div>
|
||||
<form role="form" id="frm-create-address-book">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Fullname</label>
|
||||
<p>{{ $array_profile_info[0]->name }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Email Address</label>
|
||||
<p>
|
||||
{{ $array_profile_info[0]->email }}
|
||||
<small>
|
||||
@if($array_profile_info[0]->email_is_verified == 1)
|
||||
<i class="fa fa-check-circle" title="verified"></i>
|
||||
@else
|
||||
<a href="{{ url('/user/email-verify') }}"> [ verify email ]</a>
|
||||
@endif
|
||||
</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Mobile Number</label>
|
||||
<p>
|
||||
@if($array_profile_info[0]->ContactNumber != null)
|
||||
{{ $array_profile_info[0]->ContactNumber }}
|
||||
@else
|
||||
<i>not set</i>
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Birthday</label>
|
||||
<p>
|
||||
@if($array_profile_info[0]->Birthday != null)
|
||||
{{ $array_profile_info[0]->Birthday }}
|
||||
@else
|
||||
<i>not set</i>
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>Gender</label>
|
||||
<p>
|
||||
@if($array_profile_info[0]->Gender != null)
|
||||
{{ $array_profile_info[0]->Gender }}
|
||||
@else
|
||||
<i>not set</i>
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<a href="{{ url('user/profile/edit') }}" type="submit" class="btn btn-primary btn-custom-save">Edit</a>
|
||||
<a href="{{ url('user/profile/change-password') }}" type="submit" class="btn btn-danger btn-custom-save">Change Password</a>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
176
resources/views/user-layouts/sell_design.blade.php
Normal file
176
resources/views/user-layouts/sell_design.blade.php
Normal file
@@ -0,0 +1,176 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
My Designs
|
||||
<small>{{ $array_client_designs[0]->DesignName }}</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url('user/my-designs') }}"><i class="fa fa-th-list"></i> My Designs</a></li>
|
||||
<li class="active">{{ $array_client_designs[0]->DesignName }} </li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<!-- <a href="{{ url('designer/edit') }}/{{ $array_client_designs[0]->DesignCode }}" type="button" class="btn btn-default pull-right" style="margin-left: 5px;"><i class="fa fa-edit"></i> Edit Design</a>
|
||||
<button type="button" data-dd="{{ $array_client_designs[0]->DesignCode }}" data-port="{{ $array_cat_name[0]->Port }}" class="btn btn-warning pull-right" id="btn-reload-thumbnails"><i class="fa fa-refresh"></i> Reload Image Thumbnails</button> -->
|
||||
<h3 class="box-title">
|
||||
Sell this Design
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="thumb-content">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
@foreach($array_client_designs as $row)
|
||||
@foreach($array_template_paths as $key => $row1)
|
||||
@if($key == 0)
|
||||
<img src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" id="main-thumbnail" class="img img-responsive">
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="hide-bullets">
|
||||
@foreach($array_client_designs as $row)
|
||||
@foreach($array_template_paths as $key => $row1)
|
||||
@if($key == 0)
|
||||
<li class="col-sm-3 col-xs-3">
|
||||
<a class="thumbnail a_thumbnail active">
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png"/>
|
||||
</a>
|
||||
<!-- <p>Select Default Thumbnail:</p>
|
||||
<div class="text-center">
|
||||
<input type="radio" name="active_thumbnail" value="{{ $row1->Side }}" checked>
|
||||
</div> -->
|
||||
</li>
|
||||
@else
|
||||
<li class="col-sm-3 col-xs-3">
|
||||
<a class="thumbnail a_thumbnail">
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
|
||||
</a>
|
||||
<!-- <p> </p>
|
||||
<div class="text-center">
|
||||
<input type="radio" name="active_thumbnail" value="{{ $row1->Side }}" >
|
||||
</div> -->
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-md-5">
|
||||
asdasdadadsaad
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
Item Details
|
||||
</h3>
|
||||
</div>
|
||||
<form id="frm_sell_design">
|
||||
<input type="hidden" name="templateCode" class="form-control" value="{{ $array_client_designs[0]->TemplateCode }}">
|
||||
<input type="hidden" name="designCode" class="form-control" value="{{ $array_client_designs[0]->DesignCode }}">
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!-- <input type="hidden" class="form-control" name="item_url" placeholder="Item Name"> -->
|
||||
<div class="form-group">
|
||||
<div id="sell-design-response-msg"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Item Name</label>
|
||||
<input type="text" class="form-control" id="itemName" name="itemName" placeholder="Item Name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Desription</label>
|
||||
<textarea class="form-control" name="itemDescription"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Price</label>
|
||||
<input id="item_price" name="itemPrice" class="form-control price_format" type="text" data-error="#err-price" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Form</label>
|
||||
<select class="form-control" name="itemForm">
|
||||
<option value="jersey-and-shorts-form">Jersey and Shorts Form</option>
|
||||
<option value="tshirt-form">T-Shirt Form</option>
|
||||
<option value="quantity-form">Quantity Form</option>
|
||||
<option value="name-and-number-form">Name and Number Form</option>
|
||||
<option value="name-number-size-form">Name, Number and Size Form</option>
|
||||
<option value="number-form">Number Only Form</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item URL</label>
|
||||
<input type="text" class="form-control" id="product_url" name="itemUrl" placeholder="Item URL">
|
||||
<!-- <div class="input-group">
|
||||
<span class="input-group-addon" id="basic-addon3">{{ url() . "/teamstore/" . $store_array[0]->StoreUrl . '/'}}</span>
|
||||
<input type="text" class="form-control" id="product_url" name="itemUrl" aria-describedby="basic-addon3" data-error="#err-itemUrl" >
|
||||
</div>
|
||||
<span id="err-itemUrl"></span> -->
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Available Size</label>
|
||||
<select class="form-control select2" data-error="#err_available_size" data-placeholder="Select Size" name="available_size[]" multiple="multiple" required>
|
||||
<option value="toddler">Toddler</option>
|
||||
<option value="youth">Youth</option>
|
||||
<option value="adult">Adult</option>
|
||||
<option value="mask">Mask</option>
|
||||
<option value="gaiter">Gaiter</option>
|
||||
<option value="buckethat">Buckethat</option>
|
||||
<option value="none">None</option>
|
||||
</select>
|
||||
<span id="err_available_size"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Privacy</label>
|
||||
<select class="form-control" name="itemPrivacy">
|
||||
<option value="private">Private</option>
|
||||
<option value="public">Public</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-default">Cancel</button> -->
|
||||
<button type="submit" class="btn btn-primary pull-right">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
88
resources/views/user-layouts/sidebar.blade.php
Normal file
88
resources/views/user-layouts/sidebar.blade.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar" style="height: auto;">
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="{{ config('site_config.uploads') . 'user/default-user.png' }}" class="img-circle" alt="User Image">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{ Auth::user()->name }}</p>
|
||||
<a href="{{ url('user/profile/edit') }}" class="btn-link">[ Edit Profile ]</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
<li class="header">MAIN NAVIGATION</li>
|
||||
<li class="{{ Request::is('user') ? 'active' : '' }}">
|
||||
<a href="{{ url('/user') }}">
|
||||
<i class="fa fa-home"></i> <span>Home</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('user/my-designs') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/my-designs') }}">
|
||||
<i class="fa fa-th-list"></i> <span>My Designs</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview menu-open {{ Request::is('user/address-book', 'user/profile') ? 'active' : '' }}">
|
||||
<a href="#">
|
||||
<i class="fa fa-cog"></i> <span>Manage My Account</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li class="{{ Request::is('user/profile') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/profile') }}"><i class="fa fa-user"></i> My Profile</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('user/address-book', 'user/address-book/edit') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/address-book') }}"><i class="fa fa-address-book-o"></i> Address Book</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@if(Auth::user()->role != "store_owner")
|
||||
<li class="{{ Request::is('user/orders') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/orders') }}">
|
||||
<i class="fa fa-list"></i> <span>Orders</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@if(Auth::user()->role == "store_owner")
|
||||
<li class="{{ Request::is('user/announcement') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/announcement') }}">
|
||||
<i class="fa fa-bullhorn"></i> <span>Announcement</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview menu-open {{ Request::is('user/store-items', 'user/store-settings', 'user/store-orders') ? 'active' : '' }}">
|
||||
<a href="#">
|
||||
<i class="fa fa-cog"></i> <span>Team Store</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu" style="">
|
||||
<li>
|
||||
<a href="{{ url('user/store') }}"><i class="fa fa-globe"></i> My Store</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('user/store-items') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/store-items') }}"><i class="fa fa-th"></i> Store Items</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('user/store-orders') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/store-orders') }}"><i class="fa fa-list"></i> Store Orders</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('user/store-settings') ? 'active' : '' }}">
|
||||
<a href="{{ url('user/store-settings') }}"><i class="fa fa-cogs"></i> Store Settings</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
<li>
|
||||
<a href="{{ url('/') }}">
|
||||
<i class="fa fa-globe"></i> <span>Go to Merchbay Website</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
142
resources/views/user-layouts/store-orders.blade.php
Normal file
142
resources/views/user-layouts/store-orders.blade.php
Normal file
@@ -0,0 +1,142 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.previewImage{
|
||||
height: 150px;
|
||||
width: 95%;
|
||||
overflow:hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Store Order
|
||||
<!-- <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">Team Store</li>
|
||||
<li class="active">Store Orders</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Store Order List
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Select Date From: <span class="required">*</span></label>
|
||||
<input type="text" name="min" class="form-control datepicker-reports" id="min" placeholder="Select Date" required autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Select Date To: <span class="required">*</span></label>
|
||||
<input type="text" name="max" class="form-control datepicker-reports" id="max" placeholder="Select Date" required autocomplete="off"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered table-condensed nowrap" id="tbl_store_orders">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Status</th>
|
||||
<th>Invoice No.</th>
|
||||
<th>Product Name</th>
|
||||
<th>Name</th>
|
||||
<th>Number</th>
|
||||
<th>Size</th>
|
||||
<th>Jersey Size</th>
|
||||
<th>Short Size</th>
|
||||
<th>Price</th>
|
||||
<th>Quantity</th>
|
||||
<th>#</th>
|
||||
<th>Payer Email</th>
|
||||
<th>Payer Fullname</th>
|
||||
<th>Recipient Name</th>
|
||||
<th>Address Line 1</th>
|
||||
<th>Address Line 2</th>
|
||||
<th>City</th>
|
||||
<th>State</th>
|
||||
<th>Postal Code</th>
|
||||
<th>Country Code</th>
|
||||
<th>Date Ordered</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($array_store_orders as $item_order)
|
||||
<tr>
|
||||
<td>{{ $item_order->StepLabel }}</td>
|
||||
<td>{{ $item_order->InvoiceNumber }}</td>
|
||||
<td>{{ $item_order->ProductName }}</td>
|
||||
<td>{{ $item_order->Name }}</td>
|
||||
<td>{{ $item_order->Number }}</td>
|
||||
<td>{{ $item_order->Size }}</td>
|
||||
<td>{{ $item_order->JerseySize }}</td>
|
||||
<td>{{ $item_order->ShortsSize }}</td>
|
||||
<td>{{ $item_order->Price . ' ' . $item_order->Currency }}</td>
|
||||
<td>{{ $item_order->Quantity }} </td>
|
||||
<td>{{ date('Y/m/d', strtotime($item_order->DateCreated)) }}</td>
|
||||
<td>{{ $item_order->Payer_Email }} </td>
|
||||
<td>{{ $item_order->Payer_Firstname . ' ' . $item_order->Payer_Lastname }} </td>
|
||||
<td>{{ $item_order->recipient_name }} </td>
|
||||
<td>{{ $item_order->line1 }} </td>
|
||||
<td>{{ $item_order->line2 }} </td>
|
||||
<td>{{ $item_order->city }} </td>
|
||||
<td>{{ $item_order->state }} </td>
|
||||
<td>{{ $item_order->postal_code }} </td>
|
||||
<td>{{ $item_order->country_code }} </td>
|
||||
<td>{{ date('F j, Y g:i a', strtotime($item_order->DateCreated)) }}</td>
|
||||
<td class="text-center">
|
||||
<a href="#" data-pid="{{ $item_order->ProductId }}" data-id="{{ $item_order->Order_Id }}" data-ck="{{ $item_order->CartKey }}" class="btn btn-default btn-xs btn-order-item-details">View Details</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-primary btn-custom-save">Save</button> -->
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="modal_store_order_details" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Order Details</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="modal_store_order_details_body_content">
|
||||
<p> Loading content <i class="fa fa-spinner fa-spin"></i> </p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
87
resources/views/user-layouts/store_items.blade.php
Normal file
87
resources/views/user-layouts/store_items.blade.php
Normal file
@@ -0,0 +1,87 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.badge-error {
|
||||
background-color: #b94a48;
|
||||
}
|
||||
.product-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>
|
||||
Store Items
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<!-- <li><a href="{{ url ('user/profile') }}"><i class="fa fa-user"></i> My Profile</a></li> -->
|
||||
<li class="active">Store Items</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">
|
||||
|
||||
<h3 class="box-title">
|
||||
Item List
|
||||
</h3>
|
||||
</div>
|
||||
<!-- <form role="form" id="frm-change-password"> -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="well">
|
||||
<a href="{{ url('user/store-items/add-item') }}" type="button" class="btn btn-primary">
|
||||
<i class="fa fa-plus"></i> Add new Item
|
||||
</a>
|
||||
<a href="{{ url('user/store-items/re-arrange') }}" class="btn btn-primary"><i class="fa fa-exchange"></i> Re-arrange item</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- BEGIN PRODUCTS -->
|
||||
|
||||
@foreach($product_array as $i => $product)
|
||||
@foreach($thumbnails as $t => $thumb)
|
||||
@if($thumb['product_id'] == $product->Id)
|
||||
@define $storeFolder = $thumb['folder']
|
||||
@define $filename = $thumb['thumb']
|
||||
@endif
|
||||
@endforeach
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<div class="thumbnail" >
|
||||
<a href="{{ url('user/store-items/item') }}/{{ $product->ProductURL }}">
|
||||
<img style="height:200px" src="{{ config('site_config.images_url') }}/{{ $filename . '?t=' . time() }}" alt="{{ $product->ProductName }}" >
|
||||
</a>
|
||||
<hr class="line">
|
||||
<div class="pull-right">
|
||||
<div style="text-transform: uppercase;" class="badge @if($product->PrivacyStatus== 'private') badge-error @endif">{{ $product->PrivacyStatus }}</div>
|
||||
</div>
|
||||
<h4 class="product-name-holder">{{ $product->ProductName }}<br><small>$ {{ $product->ProductPrice }}</small></h4>
|
||||
<hr class="line">
|
||||
<a href="{{ url('user/store-items/item') }}/{{ $product->ProductURL }}" class="btn btn-success btn-block" > View Details</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-primary btn-custom-save">update</button> -->
|
||||
</div>
|
||||
<!-- </form> -->
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
84
resources/views/user-layouts/store_items_arrange.blade.php
Normal file
84
resources/views/user-layouts/store_items_arrange.blade.php
Normal file
@@ -0,0 +1,84 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.badge-error {
|
||||
background-color: #b94a48;
|
||||
}
|
||||
.product-name-holder{
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#item_list_sort{
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-gap: 10px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Store Item Arrangement
|
||||
<!-- <small>Control panel</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<!-- <li><a href="{{ url ('user/profile') }}"><i class="fa fa-user"></i> My Profile</a></li> -->
|
||||
<li class="active">Store Item Arrangement</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">
|
||||
<h3 class="box-title">
|
||||
Item List
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="well">
|
||||
<button type="button" id="btn_save_item_sorting" class="btn btn-primary">
|
||||
Save Changes
|
||||
</button>
|
||||
<a href="{{ url('user/store-items') }}" class="btn btn-default"> Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="item_list_sort">
|
||||
@foreach($product_array as $i => $product)
|
||||
@foreach($thumbnails as $t => $thumb)
|
||||
@if($thumb['product_id'] == $product->Id)
|
||||
@define $storeFolder = $thumb['folder']
|
||||
@define $filename = $thumb['thumb']
|
||||
@endif
|
||||
@endforeach
|
||||
<div id="{{ 'order_number_' . $product->Id }}">
|
||||
<div class="thumbnail" >
|
||||
<a href="#">
|
||||
<img style="height:200px" src="{{ config('site_config.images_url') }}/{{ $filename . '?t=' . time() }}" alt="{{ $product->ProductName }}" >
|
||||
</a>
|
||||
<hr class="line">
|
||||
<div class="pull-right">
|
||||
<div style="text-transform: uppercase;" class="badge @if($product->PrivacyStatus== 'private') badge-error @endif">{{ $product->PrivacyStatus }}</div>
|
||||
</div>
|
||||
<h4 class="product-name-holder">{{ $product->ProductName }}<br><small>$ {{ $product->ProductPrice }}</small></h4>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
120
resources/views/user-layouts/store_setting.blade.php
Normal file
120
resources/views/user-layouts/store_setting.blade.php
Normal file
@@ -0,0 +1,120 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Store Setting
|
||||
<!-- <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">Store Setting</li>
|
||||
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<form class="form-horizontal" id="frm_edit_store" enctype="multipart/form-data">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">Edit Store</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div id="edit_store_msg"></div>
|
||||
<div class="col-lg-8 col-sm-8">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Store Name</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="store_name" value="{{ $store_array[0]->StoreName }}" name="store_name" placeholder="Store Name" reqiured="required" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Store URL</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="store_url" value="{{ $store_array[0]->StoreUrl }}" name="store_url" placeholder="Store URL" reqiured="required" />
|
||||
<input type="hidden" class="form-control" value="{{ $store_array[0]->StoreUrl }}" name="orig_store_url" reqiured="required" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">With Password</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="checkbox" @if($store_array[0]->Password != null) checked @endif id="with_password_opt" name="set_store_password" data-toggle="toggle" data-width="100px" data-on="<i class='fa fa-check-circle'></i> Yes" data-off="<i class='fa fa-ban'></i> No" data-size="small">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group store-password-field" style="display: @if($store_array[0]->Password != null) block; @else none; @endif">
|
||||
<label class="col-sm-4 control-label">Password</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" name="store_password" value="{{ $store_array[0]->Password }}" placeholder="Store Password" reqiured="required" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Store Logo</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="file" data-use-id="img_store_logo" class="form-control upload_img" name="store_logo" placeholder="Store Logo" reqiured="required" />
|
||||
<input type="hidden" class="form-control" value="{{ $store_array[0]->StoreLogo }}" name="orig_store_logo" reqiured="required" />
|
||||
<small><i style="color: red;">Size: H:300px - W:300px</i></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<label class="col-sm-4 control-label"></label>
|
||||
<div class="col-sm-8">
|
||||
<p>Store Logo Preview:</p>
|
||||
<div class="store-logo-holder">
|
||||
<a href="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreLogo }}?v={{ time() }}" class="img_store_logo_href" data-toggle="lightbox">
|
||||
<img class="img_store_logo_img" id="img_store_logo" src="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreLogo }}?v={{ time() }}" style="max-width: 100%; max-height: 100%; ">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Store Banner</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="file" class="form-control upload_img" data-use-id="img_store_banner" name="store_banner" placeholder="Store Banner" reqiured="required" />
|
||||
<input type="hidden" class="form-control" value="{{ $store_array[0]->StoreBanner }}" name="orig_store_banner" reqiured="required" />
|
||||
<small><i style="color: red;">Size: H:1140px - W:128px</i></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label"></label>
|
||||
<div class="col-sm-8">
|
||||
<p>Store Banner Preview:</p>
|
||||
<div class="store-banner-holder">
|
||||
<a href="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreBanner }}?v={{ time() }}" class="img_store_banner_href" data-toggle="lightbox">
|
||||
<img class="img_store_banner_img" id="img_store_banner" src="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreBanner }}?v={{ time() }}" style="max-width: 100%; max-height: 100%;">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Store Status</label>
|
||||
<div class="col-sm-8">
|
||||
<select class="form-control" name="store_status">
|
||||
<option @if($store_array[0]->IsActive == "false") selected @endif>Private</option>
|
||||
<option @if($store_array[0]->IsActive == "true") selected @endif >Public</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="col-sm-8">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label"> </label>
|
||||
<div class="col-sm-8">
|
||||
<button type="submit" id="btn_update_store" class="btn btn-primary">Save Changes</button>
|
||||
<a href="{{ url('user') }}" type="button" class="btn btn-default">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div><!-- box -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
2162
resources/views/user-layouts/user_template.blade.php
Normal file
2162
resources/views/user-layouts/user_template.blade.php
Normal file
File diff suppressed because it is too large
Load Diff
111
resources/views/user-layouts/view-design.blade.php
Normal file
111
resources/views/user-layouts/view-design.blade.php
Normal file
@@ -0,0 +1,111 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
My Designs
|
||||
<small>{{ $array_client_designs[0]->DesignName }}</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url('user/my-designs') }}"><i class="fa fa-th-list"></i> My Designs</a></li>
|
||||
<li class="active">{{ $array_client_designs[0]->DesignName }} </li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<!-- <a href="{{ url('designer/edit') }}/{{ $array_client_designs[0]->DesignCode }}" type="button" class="btn btn-default pull-right" style="margin-left: 5px;"><i class="fa fa-edit"></i> Edit Design</a>
|
||||
<button type="button" data-dd="{{ $array_client_designs[0]->DesignCode }}" data-port="{{ $array_cat_name[0]->Port }}" class="btn btn-warning pull-right" id="btn-reload-thumbnails"><i class="fa fa-refresh"></i> Reload Image Thumbnails</button> -->
|
||||
</div>
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="thumb-content">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
@foreach($array_client_designs as $row)
|
||||
@foreach($array_template_paths as $key => $row1)
|
||||
@if($key == 0)
|
||||
<img src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" id="main-thumbnail" class="img img-responsive">
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="hide-bullets">
|
||||
@foreach($array_client_designs as $row)
|
||||
@foreach($array_template_paths as $key => $row1)
|
||||
@if($key == 0)
|
||||
<li class="col-sm-3 col-xs-3">
|
||||
<a class="thumbnail a_thumbnail active">
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-front-thumbnail.png"/>
|
||||
</a>
|
||||
</li>
|
||||
@else
|
||||
<li class="col-sm-3 col-xs-3">
|
||||
<a class="thumbnail a_thumbnail">
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-md-5">
|
||||
asdasdadadsaad
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
Design Details
|
||||
</h3>
|
||||
</div>
|
||||
<form id="frm-design-details">
|
||||
<input type="hidden" name="design_code" class="form-control" value="{{ $array_client_designs[0]->DesignCode }}">
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Design Name</label>
|
||||
<input type="text" name="design_name" class="form-control" value="{{ $array_client_designs[0]->DesignName }}" placeholder="Enter design name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-default">Cancel</button> -->
|
||||
<button type="submit" class="btn btn-primary pull-right">Save changes</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
267
resources/views/user-layouts/view-store-item.blade.php
Normal file
267
resources/views/user-layouts/view-store-item.blade.php
Normal file
@@ -0,0 +1,267 @@
|
||||
@extends('user-layouts.user_template')
|
||||
@section('content')
|
||||
<style>
|
||||
.hide-bullets {
|
||||
list-style:none;
|
||||
margin-left: -40px;
|
||||
margin-top:20px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper" style="min-height: 916px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Store Item
|
||||
<small>{{ $product_array[0]->ProductName }}</small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="{{ url('user/store-items') }}"><i class="fa fa-th"></i> Store Items</a></li>
|
||||
<li class="active">{{ $product_array[0]->ProductName }}</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<button type="button" class="btn btn-default pull-right" data-toggle="modal" data-target="#myModal">Re-arrange / Delete thumbnail</button>
|
||||
<button type="button" class="btn btn-danger pull-right" id="btn_delete_store_id" style="margin-right: 5px;" data-id="{{ $product_array[0]->Id }}">Delete this Item</button>
|
||||
</div>
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
@foreach($thumbnails_array as $thumbnail)
|
||||
@if($thumbnail->ImageClass == 'active')
|
||||
<img style="height:400px" src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image . '?t=' . time() }}" id="main-thumbnail">
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="hide-bullets">
|
||||
<li class="col-sm-3 col-xs-4">
|
||||
<a class="thumbnail btn-add-thumbnail" style="border-bottom-left-radius: 0px; border-botomt-right-radius: 0px; margin-bottom: -28px; cursor: pointer;">
|
||||
<!-- <span class="close">×</span> -->
|
||||
<img class="img img-responsive product-center " style="height: 65.45px;" src="{{ asset('/public/images/add-new-img.svg') }}"/>
|
||||
<!-- <p class="center">Add Image</p> -->
|
||||
<p class="text-center">
|
||||
Add Image
|
||||
</p>
|
||||
</a>
|
||||
</li>
|
||||
@foreach($thumbnails_array as $thumbnail)
|
||||
<li class="col-sm-3 col-xs-4">
|
||||
<a class="thumbnail a_thumbnail {{ $thumbnail->ImageClass }}" style="border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; margin-bottom: -28px;">
|
||||
<!-- <span class="close">×</span> -->
|
||||
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image . '?t=' . time() }}"/>
|
||||
</a>
|
||||
<div class="funkyradio">
|
||||
<div class="funkyradio-primary">
|
||||
<input type="radio" id="{{ 'radio-' .$thumbnail->Id }}" data-product-id="{{ $product_array[0]->Id }}" data-id="{{ $thumbnail->Id }}" name="setActive" @if($thumbnail->ImageClass != null) checked @endif />
|
||||
<label for="{{ 'radio-' .$thumbnail->Id }}" style="border-top-left-radius: 0px; border-top-right-radius: 0px;">active</label>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="col-md-5">
|
||||
asdasdadadsaad
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
Item Details
|
||||
</h3>
|
||||
</div>
|
||||
<form id="frm-item-details">
|
||||
<!-- <input type="hidden" name="design_code" class="form-control" value=""> -->
|
||||
<div class="box-body custom-box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<input type="hidden" class="form-control" name="item_url" value="{{ $product_array[0]->ProductURL }}" placeholder="Item Name">
|
||||
<div class="form-group">
|
||||
<label>Item Name</label>
|
||||
<input type="text" class="form-control" name="itemName" value="{{ $product_array[0]->ProductName }}" placeholder="Item Name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Desription</label>
|
||||
<textarea class="form-control" name="itemDescription">{{ $product_array[0]->ProductDescription }}</textarea>
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
|
||||
<div class="checkbox checkbox-inline">
|
||||
<input type="checkbox" class="styled" id="sale_chk" name="sale_chk" checked >
|
||||
<label for="sale_chk"> Sell Item</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox checkbox-inline">
|
||||
<input type="checkbox" class="styled" id="publish_chk" name="publish_chk" >
|
||||
<label for="publish_chk"> Publish Design</label>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
<div class="form-group">
|
||||
<label>Item Price</label>
|
||||
<input id="item_price" name="item_price" class="form-control price_format" type="text" value="{{ $product_array[0]->ProductPrice }}" data-error="#err-price" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Form</label>
|
||||
<select class="form-control" name="itemForm">
|
||||
<option value="jersey-and-shorts-form" @if($product_array[0]->ProductForm == "jersey-and-shorts-form") selected @endif>Jersey and Shorts Form</option>
|
||||
<option value="tshirt-form" @if($product_array[0]->ProductForm == "tshirt-form") selected @endif>T-Shirt Form</option>
|
||||
<option value="quantity-form" @if($product_array[0]->ProductForm == "quantity-form") selected @endif>Quantity Form</option>
|
||||
<option value="name-number-form" @if($product_array[0]->ProductForm == "name-number-form") selected @endif>Name and Number Form</option>
|
||||
<option value="name-number-size-form" @if($product_array[0]->ProductForm == "name-number-size-form") selected @endif>Name, Number and Size Form</option>
|
||||
<option value="number-form" @if($product_array[0]->ProductForm == "number-form") selected @endif>Number Only Form</option>
|
||||
<option value="name-size-form" @if($product_array[0]->ProductForm == "name-size-form") selected @endif>Name and Size Form</option>
|
||||
<option value="jersey-and-shorts-quantity-form" @if($product_array[0]->ProductForm == "jersey-and-shorts-quantity-form") selected @endif>Jersey, Shorts and Quantity Form</option>
|
||||
<option value="number-jersey-shorts-form" @if($product_array[0]->ProductForm == "number-jersey-shorts-form") selected @endif>Number, Jersey and Shorts Form</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Available Size</label>
|
||||
<select class="form-control select2" data-error="#err_available_size" data-placeholder="Select Size" name="available_size[]" multiple="multiple" required>
|
||||
<option value="toddler" @if(in_array("toddler", $available_size)) selected @endif>Toddler</option>
|
||||
<option value="youth" @if(in_array("youth", $available_size)) selected @endif>Youth</option>
|
||||
<option value="adult" @if(in_array("adult", $available_size)) selected @endif>Adult</option>
|
||||
<option value="mask" @if(in_array("mask", $available_size)) selected @endif>Mask</option>
|
||||
<option value="gaiter" @if(in_array("gaiter", $available_size)) selected @endif>Gaiter</option>
|
||||
<option value="buckethat" @if(in_array("buckethat", $available_size)) selected @endif>Buckethat</option>
|
||||
<option value="none" @if(in_array("none", $available_size)) selected @endif>None</option>
|
||||
</select>
|
||||
<span id="err_available_size"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Item Privacy</label>
|
||||
<select class="form-control" name="item_privacy">
|
||||
<option value="public" @if($product_array[0]->PrivacyStatus == "public") selected @endif>Public</option>
|
||||
<option value="private" @if($product_array[0]->PrivacyStatus == "private") selected @endif>Private</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Select Shipping Category</label>
|
||||
<select class="form-control" name="shipping_cost" required>
|
||||
<option value="0">None</option>
|
||||
@foreach ($shipping_cost as $sc)
|
||||
<option value="{{ $sc->Id }}" @if($sc->Id == $product_array[0]->ShippingCostId) selected @endif>{{ $sc->DisplayName }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span id="err_available_size"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<!-- <button type="submit" class="btn btn-default">Cancel</button> -->
|
||||
<button type="submit" class="btn btn-primary pull-right">Save changes</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="myModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Item Images</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Image</th>
|
||||
<th class="col-sm-2 text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sortable">
|
||||
@foreach($thumbnails_array as $thumbnail)
|
||||
|
||||
<tr id="{{ 'item-' . $thumbnail->Id }}">
|
||||
<td class="text-center" style="width: 50px"><i class="fa fa-bars"></i></td>
|
||||
<td><img class="img img-responsive product-center" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image . '?t=' . time() }}"/></td>
|
||||
<td class="text-center">
|
||||
<!-- <button class="btn btn-default btn-xs btn-edit-clipart" data-id="#"><i class="fa fa-edit"></i></button> -->
|
||||
<button class="btn btn-default btn-sm btn-delete-item-image" data-id="{{ $thumbnail->Id }}" data-filename="{{ $thumbnail->Image }}" title="Delete Image"><i class="fa fa-trash"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" id="btn_save_thumbnail_sorting">Save Changes</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal fade" id="modal_add_thumbnail" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<form id="frm_add_new_images">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Add Image</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row grid-divider">
|
||||
<div class="col-sm-4">
|
||||
<div class="col-padding">
|
||||
<h3>Select Image(s)</h3>
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="_id" value="{{ $product_array[0]->Id }}" />
|
||||
<input type="file" class="form-control" id="upload_images" name="upload_images[]" multiple accept="image/*" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="button" id="clear_frm_add_new_images" class="btn btn-default btn-block">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="col-padding">
|
||||
<h3>Preview</h3>
|
||||
<div class="col-md-12">
|
||||
<ul class="hide-bullets small-preview-thumb">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" id="btn_submit_new_item_image" class="btn btn-primary">Submit</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
0
resources/views/vendor/.gitkeep
vendored
Normal file
0
resources/views/vendor/.gitkeep
vendored
Normal file
48
resources/views/welcome.blade.php
Normal file
48
resources/views/welcome.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Laravel</title>
|
||||
|
||||
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #B0BEC5;
|
||||
display: table;
|
||||
font-weight: 100;
|
||||
font-family: 'Lato';
|
||||
}
|
||||
|
||||
.container {
|
||||
text-align: center;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 96px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.quote {
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div class="title">Laravel 5</div>
|
||||
<div class="quote">{{ Inspiring::quote() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user