add currency for teamstore

This commit is contained in:
Frank John Begornia
2019-08-19 21:37:47 +08:00
parent e60bb3baf8
commit b7e81adf31
68 changed files with 9977 additions and 442 deletions

View File

@@ -672,8 +672,7 @@
<button type="button" class="btn btn-lg btn-primary pull-right" data-toggle="modal" data-target="#modalLogin"><i class="fa fa-floppy-o" aria-hidden="true"></i> Save Design</button>
</div>
@else
<button type="button" class="btn btn-lg btn-primary pull-right" data-toggle="modal" data-target="#modalDesignName"><i class="fa fa-floppy-o" aria-hidden="true"></i> Save Design</button>
<button type="button" class="btn btn-lg btn-primary pull-right" data-toggle="modal" data-target="#modalDesignName"><i class="fa fa-floppy-o" aria-hidden="true"></i> Save Design</button>
@endif
</div>
@@ -685,6 +684,7 @@
</div>
</div>
</div>
<!-- modals -->
<div class="modal fade" id="fontsModal" role="dialog">
<div class="modal-dialog modal-lg">
@@ -835,7 +835,7 @@
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.15/fabric.min.js"></script>
<script src="https://rawgit.com/EffEPi/fabric.curvedText/master/fabric.curvedText.js"></script>
<!-- <script src="https://rawgit.com/EffEPi/fabric.curvedText/master/fabric.curvedText.js"></script> -->
<script src="{{asset('/public/designer/js/spectrum.js')}}"></script>
<script src="{{asset('/public/designer/js/custom-script.js')}}"></script>
@@ -846,6 +846,13 @@
<script>
$(document).ready(function() {
$.getJSON("{{asset('/public/designer/palette.json') }}", callbackFuncWithData);
function callbackFuncWithData(data){
console.log(data)
}
myCart();
$('#toTop').click(function() {
@@ -1000,9 +1007,13 @@
colorPickerCustom();
templateColors('{{ $template_arrays[0]->TemplateCode }}');
loadClipartContent();
var get_template_type = "{{ $template->Type }}";
if(get_template_type != "Shirts"){
addDefaultTeamText();
addNameNumber();
}
// addDefaultTeamText();
// addNameNumber();
// onDeSelected();
// end call
@@ -2727,7 +2738,7 @@
function addLastName(){
var defaultName = "LASTNAME";
var defaultName = "PLAYER";
var currentCount = +$("#countbtn").val() + 1;
$('#countbtn').val(currentCount);
@@ -2861,7 +2872,7 @@
function addNameNumber() {
var defaultNumber = "00";
var defaultName = "LASTNAME";
var defaultName = "PLAYER";
$('#countbtn').val("5");
$('#NameNumberId').html('');
@@ -2871,6 +2882,7 @@
top: 114.85 , // 94.35 for the default
fontSize: 75.00, // 71.25 for default font size. equivalent 2.5"
fill: '#000000',
fontFamily: 'Athletic Regular',
textAlign: 'center',
padding: 0,
//spacing: 20,
@@ -2892,6 +2904,7 @@
top: 84.35, // 94.35 for the default
fontSize: 175.00, // 71.25 for default font size. equivalent 2.5"
fill: '#000000',
fontFamily: 'Athletic Regular',
textAlign: 'center',
padding: 0,
//spacing: 20,
@@ -2913,6 +2926,7 @@
top: 50.28 , // 94.35 for the default
fontSize: 32.50, // 71.25 for default font size. equivalent 2.5"
fill: '#000000',
fontFamily: 'Athletic Regular',
textAlign: 'center',
padding: 0,
//spacing: 20,
@@ -2935,6 +2949,7 @@
fontSize: 62.50, // 71.25 for default font size. equivalent 2.5"
//height: fabric.util.parseUnit('1in'),
fill: '#000000',
fontFamily: 'Athletic Regular',
textAlign: 'center',
padding: 0,
//spacing: 20,
@@ -2958,6 +2973,7 @@
//height: fabric.util.parseUnit('1in'),
fill: '#000000',
textAlign: 'center',
fontFamily: 'Athletic Regular',
padding: 0,
//spacing: 20,
stroke: null,
@@ -3025,6 +3041,7 @@
fontSize: 50.00, // 71.25 for default font size. equivalent 2.5"
//height: fabric.util.parseUnit('1in'),
fill: '#000000',
fontFamily: 'Athletic Regular',
textAlign: 'center',
padding: 0,
//spacing: 20,
@@ -3447,9 +3464,11 @@
// alert("dadas");
// console.log();
},
beforeShow: function () {
},
hide: function (color) {
var onHideColor = color.toHexString(); // #ff0000
var SideAndPath = {!! json_encode($templatepaths_arrays) !!};
@@ -3479,6 +3498,7 @@
},
change: function(color) {
var onChangeColor = color.toHexString(); // #ff0000
@@ -3510,7 +3530,8 @@
$('#body-color-type').val('Solid');
},
palette: [
"palette": [
["rgb(38, 38, 38)", "rgb(102, 102, 102)", "rgb(68, 69, 79)", "rgb(255, 255, 255)"],
["rgb(77, 20, 8)", "rgb(0, 75, 43)", "rgb(0, 135, 81)", "rgb(0, 111, 175)"],
["rgb(0, 95, 111)", "rgb(16, 34, 64)", "rgb(66, 128, 206)", "rgb(17, 43, 155)"],

View File

@@ -1,38 +0,0 @@
[
[
"rgb(38, 38, 38)",
"rgb(102, 102, 102)",
"rgb(68, 69, 79)",
"rgb(255, 255, 255)"
],
[
"rgb(77, 20, 8)",
"rgb(0, 75, 43)",
"rgb(0, 135, 81)",
"rgb(0, 111, 175)"
],
[
"rgb(0, 95, 111)",
"rgb(16, 34, 64)",
"rgb(66, 128, 206)",
"rgb(17, 43, 155)"
],
[
"rgb(64, 18, 129)",
"rgb(116, 0, 36)",
"rgb(169, 30, 54)",
"rgb(221, 117, 174)"
],
[
"rgb(214, 0, 2)",
"rgb(51, 0, 0)",
"rgb(255, 224, 27)",
"rgb(255, 186, 0)"
],
[
"rgb(211, 198, 120)",
"rgb(158, 64, 0)",
"rgb(255, 64, 0)",
"rgb(255, 112, 10)"
]
]

View File

@@ -375,6 +375,14 @@
<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>
@@ -391,6 +399,7 @@
<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>
@@ -435,23 +444,34 @@
<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=="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=="number-form")
<tr>
<th>Number</th>
<th>Price</th>
<th>Quantity</th>
</tr>
@else
@endif
<!-- table header -->
<!-- table body -->
@@ -488,21 +508,29 @@
<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-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>
@else
@endif
@@ -515,6 +543,7 @@
</tbody>
</table>
</div>
@endif
@endforeach
</td>
</tr>

View File

@@ -7,34 +7,26 @@
<!-- 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="author" content="CREW Developers">
<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:url" content="https://crewsportswear.com" />
<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">
<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">
<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">
<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]-->
@@ -47,7 +39,8 @@
<![endif]-->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<!-- 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>-->
@@ -84,12 +77,14 @@
<!-- 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> -->
<!-- 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>
<!-- <script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script> -->
<script src="{{asset('public/assets/js/crew-designer.js')}}"></script>
<!-- custom js -->
<script src="{{ asset('public/assets/js/crew-designer.js') }}"></script>
<script>
$(function(){
myCart();
@@ -101,7 +96,6 @@
$('.modal').on('show.bs.modal', function() {
$(this).show();
console.log("assda")
setModalMaxHeight(this);
});
@@ -114,8 +108,70 @@
$(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 myCart(){
$.ajax({ //create an ajax request to load_page.php

View File

@@ -64,6 +64,10 @@
<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>

View File

@@ -9,16 +9,15 @@
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>
@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>
@@ -35,31 +34,12 @@
<div class="row">
<div class="col-md-8">
<div style="border: 1px solid #e2e2e2; padding: 10px;">
<h4><img height="30px" class="store-logo" src="{{ config('site_config.uploads') . 'teamstore/'. $store_array[0]->StoreUrl . '/' . $store_array[0]->StoreLogo }}"> {{ $store_array[0]->StoreName }}</h4>
</div>
@foreach($item_group as $item)
@if($item->Order == "Jersey")
@define $itemOrder = " (Jersey Only)"
@define $thumb_display = "-front-thumbnail.png"
@elseif ($item->Order == "Shorts")
@define $itemOrder = " (Shorts Only)"
@define $thumb_display = "-left-thumbnail.png"
@else
@define $itemOrder = " (w/ Shorts)"
@define $thumb_display = "-front-thumbnail.png"
@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> -->
@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">
@@ -68,12 +48,13 @@
<img class="previewImage" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $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 }} &bull; Row(s): {{ $item->qty }} </p>
<h4>
<a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a>
</h4>
<p>Total Price: {{ $item->total_price . ' ' . $store_array[0]->StoreCurrency }} &bull; Row(s): {{ $item->qty }} </p>
<div class="table-responsive">
<table class="table table-striped table-condensed">
@@ -129,6 +110,15 @@
<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>
@else
@@ -144,20 +134,20 @@
<td>{{ $sub_item->Number }}</td>
<td>{{ $sub_item->JerseySize }}</td>
<td>{{ $sub_item->ShortsSize }}</td>
<td>{{ $sub_item->Price }}</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 }}</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 }}</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>
@@ -165,7 +155,7 @@
<tr>
<td>{{ $sub_item->Name }}</td>
<td>{{ $sub_item->Number }}</td>
<td>{{ $sub_item->Price }}</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>
@@ -174,18 +164,26 @@
<td>{{ $sub_item->Name }}</td>
<td>{{ $sub_item->Number }}</td>
<td>{{ $sub_item->Size }}</td>
<td>{{ $sub_item->Price }}</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 }}</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>
@else
@endif
@@ -197,13 +195,14 @@
</div>
</div>
</div>
@endif
@endforeach
</div>
<div class="col-md-4 order-summary" >
<div class="row" style="background-color: #f5f5f5;">
<div class="col-sm-12">
@if(Session::has('msg'))
<div class="row">
<div class="col-md-4 order-summary" >
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
@if(Session::has('msg'))
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-ban"></i> ERROR:</h4>
@@ -211,14 +210,47 @@
</div>
@endif
<h3>Order Summary</h3>
<hr class="hr-design">
<h4 class="text-center">
<b>Subtotal : </b> $ {{ $getSubtotal[0]->Subtotal }}
</h4>
<hr class="hr-design">
<a @if($getSubtotal[0]->Subtotal <= 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('/')}}" class="btn btn-default btn-block" type="submit">Continue Shopping</a>
<br><br><br>
</div>
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
<h3>Subtotal: <span id="my_subtotal">{{ $getSubtotal }}</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>

View File

@@ -232,25 +232,10 @@
$('#display-product-price').html('$ ' + $('#product_price').val());
}
});
// $(document).on('change', '#product_price', function() {
// var product_price = $('#product_price').val();
// $('#display-product-price').html('$ ' + product_price);
// });
$(document).on('input keyup', '.capitalizeText', function() {
$(this).val($(this).val().toUpperCase());
});
// $('.image-thumbnails').click(function(){
// // console.log($(this))
// // console.log($(this).attr('src'))
// $('#main-thumbnail').attr('src', $(this).attr('src'));
// $('.a_thumbnail').removeClass('active');
// $(this).parent().addClass('active');
// });
$('[id^=carousel-selector-]').click( function(){
var id = this.id.substr(this.id.lastIndexOf("-") + 1);
@@ -259,67 +244,6 @@
$('.a_thumbnail').removeClass('active');
$(this).addClass('active');
});
$(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('button click', '.removeRow-name-and-number', 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_name_and_number" 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('button click', '.removeRow-name-number-size', 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_name_number_size" 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('button click', '.removeRow-number', 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_number" 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();
});
$("#frm-order-list").validate({
@@ -383,6 +307,85 @@
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 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){
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('button click', '.removeRow-name-and-number', 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_name_and_number" 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('button click', '.removeRow-name-number-size', 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_name_number_size" 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('button click', '.removeRow-number', 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_number" 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('button click', '.removeRow-gamer-field', 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_gamer_field" 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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ adding of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
$(document).on('button click', '#addNewRow', function(){
var TemplateCode = $('#template_code').val();
// console.log(TemplateCode)
@@ -463,7 +466,6 @@
});
$(document).on('button click', '#addNewRow_name_number_size', function(){
var TemplateCode = $('#template_code').val();
// console.log(TemplateCode)
@@ -504,6 +506,48 @@
});
$(document).on('button click', '#addNewRow_gamer_field', function(){
var TemplateCode = $('#template_code').val();
var product_url = $('#product_url').val();
// console.log(TemplateCode)
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-gamer-field') }}",
data:{
itemCount : num,
tempCode : TemplateCode,
product_url : product_url
},
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 className = "row" + (num - 1);
$('.tr-remove-btn').html('<button type="button" class="btn btn-danger btn-sm removeRow-gamer-field 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', '#addNewRow_number', function(){
var TemplateCode = $('#template_code').val();
// console.log(TemplateCode)
@@ -543,7 +587,8 @@
});
});
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ end adding of rows @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
}); //end document ready
function myCart(){

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -0,0 +1,95 @@
<style>
tbody#orderTableBody>tr>td {
padding: 0px !important;
}
.panel-design-details{
max-height: 300px;
overflow: auto;
}
</style>
<div class="panel panel-default">
<div class="panel-heading">
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<form id="frm-order-list">
<input type="hidden" value="1" id="orderCounterValue" name="orderCounterValue" />
<input type="hidden" value="{{ $product_array[0]->Id }}" id="product_id" name="product_id" />
<input type="hidden" name="product_price" id="product_price" value="{{ $product_array[0]->ProductPrice }}">
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
<input type="hidden" name="store_id" id="store_id" value="{{ $store_array[0]->Id }}">
<input type="hidden" name="product_url" id="product_url" value="{{ $product_array[0]->ProductURL }}">
<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[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Gamer Tag">
</td>
<td>
<input type="text" name="order_names2[]" id="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[]" id="order_jersey_size_1" data-row-number="1">
@foreach($sizes_array as $size)
<option value="{{ $size->Size }}">{{ $size->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_gamer_field" 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>
<!-- <hr class="hr-design"> -->
<div id="displayqty"></div>
<br>
@if($product_array[0]->ProductPrice > 0)
<button class="btn btn-primary pull-right" type="submit" id="btn-add-to-cart"><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> Add to Cart</button>
@endif
</form>
</div>
</div>
<div class="spacer-top"></div>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#productDescription" aria-controls="productDescription" role="tab" data-toggle="tab">Desciption</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="productDescription">
<div class="row">
<div class="col-md-12">
<p>
{{ $product_array[0]->ProductDescription }}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -9,8 +9,7 @@
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
<h1>{{ $product_array[0]->ProductName }}</h1> <p class="price">{{ $product_array[0]->ProductPrice }} <small> {{ $store_array[0]->StoreCurrency }} </small></p>
</div>
<div class="panel-body">
<div class="row">

View File

@@ -165,7 +165,7 @@
<hr class="line">
<div class="row">
<div class="col-md-6 col-sm-6">
<p class="price">$ {{ $product->ProductPrice }}</p>
<p class="price">{{ $product->ProductPrice }} <small style="font-size: 15px;"> {{ $store_array[0]->StoreCurrency }}</small></p>
</div>
<div class="col-md-6 col-sm-6">
<a href="{{ url('teamstore') }}/{{ $store_array[0]->StoreUrl }}/product/{{ $product->ProductURL }}" class="btn btn-success right" > View Details</a>

View 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.prod_private_server_ip') }}/images/{{ $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.prod_private_server_ip') }}/images/{{ $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.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
</a>
<!-- <p>&nbsp;</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

View File

@@ -40,7 +40,7 @@
<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('designer/preview') }}/{{ $row->DesignCode }}" class="btn btn-primary btn-xs"><i class="fa fa-shopping-cart"></i> Buy</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

View File

@@ -60,6 +60,14 @@
<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>
@@ -78,136 +86,136 @@
<div class="row">
<div class="col-md-12">
@foreach($item_goup_array as $item)
<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.prod_private_server_ip') }}/images/{{ $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 }} &bull; 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>
@else
@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.prod_private_server_ip') }}/images/{{ $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 }} &bull; Row(s): {{ $item->qty }} </p>
<div class="table-responsive">
<table class="table table-striped table-condensed">
@foreach($order_item_array as $sub_item)
@if($sub_item->ProductId == $item->ProductId)
@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>
@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>
@else
@elseif($item->FormUsed=="quantity-form")
<tr>
<th>Price</th>
<th>Quantity</th>
</tr>
@endif
@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>
@else
@endif
@endforeach
</table>
@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>
@else
@endif
@endif
@endforeach
</table>
</div>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
</div>
</div>
</div>

View File

@@ -1,4 +1,4 @@
@extends('user-layouts.user_template')
@extends('user-layouts.user_template')
@section('content')
<style>
.hide-bullets {