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

@@ -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>