added canada
This commit is contained in:
@@ -1,347 +1,422 @@
|
||||
@extends('merchbay_main')
|
||||
@section('main-content')
|
||||
|
||||
<style>
|
||||
.previewImage{
|
||||
height: 150px;
|
||||
width: 95%;
|
||||
overflow:hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
<style>
|
||||
.previewImage {
|
||||
height: 150px;
|
||||
width: 95%;
|
||||
overflow: hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.cart-store-logo{
|
||||
border: 1px solid #e2e2e2;
|
||||
}
|
||||
</style>
|
||||
.cart-store-logo {
|
||||
border: 1px solid #e2e2e2;
|
||||
}
|
||||
|
||||
<div class="wrapper pb-5">
|
||||
<div class="main__content">
|
||||
<div class="container">
|
||||
</style>
|
||||
|
||||
{{-- breadcrumbs --}}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="py-4">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
@if(isset($store_array[0]->StoreUrl))
|
||||
<li class="breadcrumb-item"><a href="{{ url('store') . '/' . $store_array[0]->StoreUrl }}">{{ $store_array[0]->StoreName }}</a></li>
|
||||
@else
|
||||
<li class="breadcrumb-item"><a href="{{ url('/') }}">Home</a></li>
|
||||
@endif
|
||||
<li class="breadcrumb-item active" aria-current="page">Shopping cart</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="wrapper pb-5">
|
||||
<div class="main__content">
|
||||
<div class="container">
|
||||
|
||||
{{-- breadcrumbs --}}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="py-4">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
@if (isset($store_array[0]->StoreUrl))
|
||||
<li class="breadcrumb-item"><a
|
||||
href="{{ url('store') . '/' . $store_array[0]->StoreUrl }}">{{ $store_array[0]->StoreName }}</a>
|
||||
</li>
|
||||
@else
|
||||
<li class="breadcrumb-item"><a href="{{ url('/') }}">Home</a></li>
|
||||
@endif
|
||||
<li class="breadcrumb-item active" aria-current="page">Shopping cart</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-5">
|
||||
<div class="col-lg-12">
|
||||
<h3>Shopping Cart</h3>
|
||||
@if(Session::has('cartkeyError'))
|
||||
{{-- <div class="alert alert-danger alert-dismissible">
|
||||
<div class="row pb-5">
|
||||
<div class="col-lg-12">
|
||||
<h3>Shopping Cart</h3>
|
||||
@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> --}}
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<strong>Error!</strong> {!! Session::get('cartkeyError') !!}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
@endif
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<strong>Error!</strong> {!! Session::get('cartkeyError') !!}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"
|
||||
aria-label="Close"></button>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (count($row) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-pull-4">
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px;">
|
||||
<h6><img height="30px" class="cart-store-logo"
|
||||
src="{{ config('site_config.uploads') . 'teamstore/' . $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreLogo }}">
|
||||
{{ $store_array[0]->StoreName }}</h6>
|
||||
</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('store') . '/' . $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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></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 }}"><i
|
||||
class="fa fa-times"></i></a></td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<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;">
|
||||
<p><strong>Ship to:</strong></p>
|
||||
@if ($address_book === null)
|
||||
<a href="{{ url('user/address-book') }}">[ Add ]</a>
|
||||
@else
|
||||
<div>{{ $address_book[0]->Fullname }}</div>
|
||||
<div>{{ $address_book[0]->ContactNumber }}</div>
|
||||
<div>
|
||||
{{ $address_book[0]->Address . ', ' . $address_book[0]->State . ', ' . $address_book[0]->City . ', ' . $address_book[0]->Country . ', ' . $address_book[0]->CountryCode . ' ' . $address_book[0]->ZipCode }}
|
||||
<a href="{{ url('user/address-book') }}">[ Edit ]</a> </div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px; border-bottom: none;">
|
||||
<h5>Subtotal: <small>{{ number_format($tax['order_grandtotal'] , 2) . ' ' . $store_array[0]->StoreCurrency }}</small> </h5>
|
||||
<h5>Shipping Fee: <small>{{ number_format($shipping_fee , 2) . ' ' . $store_array[0]->StoreCurrency }}</small> </h5>
|
||||
<h5>Tax: <small>{{ number_format($tax['tax'] , 2) . ' ' . $store_array[0]->StoreCurrency }}</small> </h5>
|
||||
<hr>
|
||||
<h3>Total: <span id="my_subtotal">{{ number_format($tax['order_grandtotal'] + $shipping_fee + $tax['tax'], 2) }}</span>
|
||||
<small>{{ $store_array[0]->StoreCurrency }}</small></h3>
|
||||
|
||||
{{-- {{ var_dump($tax) }}
|
||||
{{ var_dump($shipping_fee) }} --}}
|
||||
<hr>
|
||||
<div class="form-group" id="voucher_list">
|
||||
@foreach ($row as $item)
|
||||
@if ($item->VoucherId != null)
|
||||
<div class="btn-group mb-2">
|
||||
@if ($item->VoucherType == 'Percentage')
|
||||
<button type="button" class="btn btn-black btn-sm dropdown-toggle"
|
||||
data-bs-toggle="dropdown">{{ $item->VoucherCode . ' ' . $item->VoucherValue . '%' }}
|
||||
OFF</button>
|
||||
@else
|
||||
<button type="button" class="btn btn-black btn-sm dropdown-toggle"
|
||||
data-bs-toggle="dropdown">{{ $item->VoucherCode . ' ' . $item->VoucherValue . ' ' . $store_array[0]->StoreCurrency }}
|
||||
OFF</button>
|
||||
@endif
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item"
|
||||
href="{{ url('removeitem') . '/' . $item->Id }}">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 w-100"
|
||||
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>
|
||||
<!-- <div class="my-2">
|
||||
<button class="btn btn-lg btn-info w-100">Checkout with Voucher</button>
|
||||
</div> -->
|
||||
<div class="bg-info p-2 mt-2">
|
||||
Be advised payments made on merchbay will show up as crewsportswear on your receipt
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="py-4">
|
||||
<a href="{{ url('store') . '/' . $store_array[0]->StoreUrl }}"
|
||||
class="btn btn-black w-100" type="submit">Continue Shopping</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<h3 style="color:#d2d2d2;">Your cart is currently empty.</h3>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
@if(count($row) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-pull-4">
|
||||
<div style="border: 1px solid #e2e2e2; padding: 10px;">
|
||||
<h6><img height="30px" class="cart-store-logo" src="{{ config('site_config.uploads') . 'teamstore/'. $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreLogo }}"> {{ $store_array[0]->StoreName }}</h6>
|
||||
</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('store') . '/' . $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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></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 }}"><i class="fa fa-times"></i></a></td>
|
||||
</tr>
|
||||
@else
|
||||
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<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 mb-2">
|
||||
@if($item->VoucherType == "Percentage")
|
||||
<button type="button" class="btn btn-black btn-sm dropdown-toggle" data-bs-toggle="dropdown">{{ $item->VoucherCode . ' ' . $item->VoucherValue . '%' }} OFF</button>
|
||||
@else
|
||||
<button type="button" class="btn btn-black btn-sm dropdown-toggle" data-bs-toggle="dropdown">{{ $item->VoucherCode . ' ' . $item->VoucherValue . ' ' . $store_array[0]->StoreCurrency }} OFF</button>
|
||||
@endif
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="{{ url('removeitem') . '/' . $item->Id }}">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 w-100" 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>
|
||||
<!-- <div class="my-2">
|
||||
<button class="btn btn-lg btn-info w-100">Checkout with Voucher</button>
|
||||
</div> -->
|
||||
<div class="bg-info p-2 mt-2">
|
||||
Be advised payments made on merchbay will show up as crewsportswear on your receipt
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="py-4">
|
||||
<a href="{{ url('store') . '/' . $store_array[0]->StoreUrl }}" class="btn btn-black w-100" type="submit">Continue Shopping</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<h3 style="color:#d2d2d2;">Your cart is currently empty.</h3>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -33,12 +33,12 @@
|
||||
<div class="carousel-item active" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/merchbay/slider/krut-merch.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
<div class="carousel-item" data-bs-interval="10000">
|
||||
<!-- <div class="carousel-item" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/WIPCAPS.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
<div class="carousel-item" data-bs-interval="10000">
|
||||
</div> -->
|
||||
<!-- <div class="carousel-item" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/NINONG.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="carousel-item" data-bs-interval="10000">
|
||||
<img src="https://crewsportswear.app:5955/DRIVE.jpg" class="d-block w-100" alt="...">
|
||||
</div>
|
||||
|
||||
@@ -34,15 +34,13 @@
|
||||
<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->Address }}, {{ $row->State }}, {{ $row->City }}, {{ $row->Country}} {{ $row->CountryCode}}, {{ $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>
|
||||
|
||||
@@ -1,81 +1,89 @@
|
||||
@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>
|
||||
<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>
|
||||
|
||||
<!-- 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 -->
|
||||
</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="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 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>Country</label>
|
||||
<select class="form-control" name="countryCode" id="select_country" onchange="selectCountry(this)">
|
||||
<option value="">Select Country</option>
|
||||
<option value="US">United State</option>
|
||||
<option value="CA">Canada</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>State / Province</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>House Number, Building and Street Name</label>
|
||||
<textarea type="text" class="form-control" name="address" placeholder="Please enter your House Number, Building and Street Name"></textarea>
|
||||
</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 class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary btn-custom-save">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
@endsection
|
||||
</div>
|
||||
@endsection
|
||||
@@ -46,8 +46,12 @@
|
||||
</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 }}">
|
||||
<label>Country</label>
|
||||
<select class="form-control" name="countryCode" id="select_country" onchange="selectCountry(this)" data-selected="{{ $array_address_book[0]->CountryCode }}">
|
||||
<option value="">Select Country</option>
|
||||
<option value="US">United State</option>
|
||||
<option value="CA">Canada</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>State</label>
|
||||
@@ -61,6 +65,10 @@
|
||||
<option value="">Select City</option>
|
||||
</select>
|
||||
</div>
|
||||
<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>Zip Code</label>
|
||||
<input type="text" class="form-control" name="zipcode" placeholder="Please enter your zip code" value="{{ $array_address_book[0]->ZipCode }}">
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<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="text" class="form-control" disabled 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>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user