328 lines
10 KiB
PHP
328 lines
10 KiB
PHP
@extends('teamstore-layout.main')
|
|
@section('content')
|
|
@if ($store_array[0]->IsHibernated)
|
|
<script>
|
|
window.location = "../";
|
|
</script>
|
|
@endif
|
|
<style>
|
|
|
|
p{
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
}
|
|
.price{
|
|
font-size: 25px;
|
|
margin: 0 auto;
|
|
color: #333;
|
|
}
|
|
.right{
|
|
float:right;
|
|
border-bottom: 2px solid #4B8E4B;
|
|
}
|
|
.thumbnail{
|
|
/* opacity:0.70; */
|
|
-webkit-transition: all 0.5s;
|
|
transition: all 0.5s;
|
|
}
|
|
/* .thumbnail:hover{
|
|
opacity:1.00;
|
|
box-shadow: 0px 0px 10px #4bc6ff;
|
|
} */
|
|
.line{
|
|
margin-bottom: 5px;
|
|
}
|
|
@media screen and (max-width: 770px) {
|
|
.right{
|
|
float:left;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.product-thumbnails {
|
|
height: 100px;
|
|
width: 100px;
|
|
position: relative;
|
|
border : 1px solid #999;
|
|
margin: 0 auto;
|
|
}
|
|
.product-thumbnails > img {
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
height: auto;
|
|
width: auto;
|
|
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
/* one by one slider */
|
|
|
|
.multi-item-carousel .carousel-inner>.item,
|
|
.multi-item-carousel-clipart .carousel-inner>.item {
|
|
-webkit-transition: 200ms ease-in-out left;
|
|
transition: 200ms ease-in-out left;
|
|
}
|
|
|
|
.multi-item-carousel .carousel-inner .active.left {
|
|
left: -25%;
|
|
}
|
|
|
|
.multi-item-carousel .carousel-inner .active.right,
|
|
.multi-item-carousel-clipart .carousel-inner .active.right {
|
|
left: 25%;
|
|
}
|
|
|
|
.multi-item-carousel .carousel-inner .next,
|
|
.multi-item-carousel-clipart .carousel-inner .next {
|
|
left: 25%;
|
|
}
|
|
|
|
.multi-item-carousel .carousel-inner .prev,
|
|
.multi-item-carousel-clipart .carousel-inner .prev {
|
|
left: -25%;
|
|
}
|
|
|
|
@media all and (transform-3d),
|
|
(-webkit-transform-3d) {
|
|
.multi-item-carousel .carousel-inner>.item {
|
|
-webkit-transition: 200ms ease-in-out all;
|
|
transition: 200ms ease-in-out all;
|
|
-webkit-backface-visibility: visible;
|
|
backface-visibility: visible;
|
|
-webkit-transform: none!important;
|
|
transform: none!important;
|
|
}
|
|
}
|
|
|
|
.multi-item-carousel .carouse-control.left,
|
|
.multi-item-carousel .carouse-control.right {
|
|
background-image: none;
|
|
}
|
|
|
|
.carousel-inner>.item>a>img,
|
|
.carousel-inner>.item>img,
|
|
.img-responsive,
|
|
.thumbnail a>img,
|
|
.thumbnail>img {
|
|
margin: auto;
|
|
}
|
|
|
|
.carousel-control.left,
|
|
.carousel-control.right {
|
|
background: none;
|
|
border: none;
|
|
}
|
|
|
|
.carousel-control.left {
|
|
margin-left: -35px;
|
|
margin-top: 7px;
|
|
}
|
|
|
|
.carousel-control.right {
|
|
margin-right: -35px;
|
|
margin-top: 7px;
|
|
}
|
|
|
|
.carousel-control {
|
|
width: 0%;
|
|
}
|
|
|
|
.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="container">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ url('teamstore') }}/{{ $store_array[0]->StoreUrl }}">Home</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">{{ $product_array[0]->ProductName }}</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-5 col-sm-5">
|
|
<div class="row">
|
|
<div class="col-sm-12" id="carousel-bounding-box">
|
|
<div class="carousel slide" id="myCarousel" data-interval="false">
|
|
<!-- Carousel items -->
|
|
<div class="carousel-inner">
|
|
@define $i = 0
|
|
@foreach($thumbnails_array as $thumbnail)
|
|
@if($thumbnail->ImageClass == 'active')
|
|
<div class="active item text-center" data-slide-number="{{ $i }}">
|
|
<span class="zoom img-zoom">
|
|
<img style="height:400px;" src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}">
|
|
</span>
|
|
</div>
|
|
@else
|
|
<div class="item text-center" data-slide-number="{{ $i }}">
|
|
<span class="zoom img-zoom">
|
|
<img style="height:400px;" src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}">
|
|
</span>
|
|
</div>
|
|
@endif
|
|
@define $i++
|
|
@endforeach
|
|
</div>
|
|
|
|
<!-- Carousel nav -->
|
|
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
|
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
</a>
|
|
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
|
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<!-- </div> -->
|
|
</div>
|
|
|
|
<hr class="line">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<ul class="hide-bullets">
|
|
@define $j = 0
|
|
@foreach($thumbnails_array as $thumbnail)
|
|
<li class="col-sm-3 col-xs-3">
|
|
<a class="thumbnail a_thumbnail {{ $thumbnail->ImageClass }}" id="carousel-selector-{{ $j }}">
|
|
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.images_url') }}/{{ $thumbnail->Image }}"/>
|
|
</a>
|
|
</li>
|
|
@define $j++
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-7 col-sm-7">
|
|
<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="{{ 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)
|
|
<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">Description</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>
|
|
</div>
|
|
|
|
</div> <!-- container -->
|
|
</div>
|
|
@endsection
|