This commit is contained in:
franknstayn
2022-01-10 19:50:03 +08:00
parent e49bff8c5f
commit babe80e01d
2 changed files with 625 additions and 539 deletions

View File

@@ -1,5 +1,6 @@
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -33,7 +34,9 @@
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%; }
width: 100%;
}
table td {
font-family: sans-serif;
font-size: 12px;
@@ -93,6 +96,7 @@
text-align: center;
width: 100%;
}
.footer td,
.footer p,
.footer span,
@@ -133,6 +137,7 @@
margin: 0;
margin-bottom: 15px;
}
p li,
ul li,
ol li {
@@ -150,17 +155,23 @@
------------------------------------- */
.btn {
box-sizing: border-box;
width: 100%; }
width: 100%;
}
.btn>tbody>tr>td {
padding-bottom: 15px; }
padding-bottom: 15px;
}
.btn table {
width: auto;
}
.btn table td {
background-color: #ffffff;
border-radius: 5px;
text-align: center;
}
.btn a {
background-color: #ffffff;
border: solid 1px #3498db;
@@ -253,6 +264,7 @@
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
@@ -261,28 +273,35 @@
table[class=body] a {
font-size: 12px !important;
}
table[class=body] .wrapper,
table[class=body] .article {
padding: 10px !important;
}
table[class=body] .content {
padding: 0 !important;
}
table[class=body] .container {
padding: 0 !important;
width: 100% !important;
}
table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class=body] .btn table {
width: 100% !important;
}
table[class=body] .btn a {
width: 100% !important;
}
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
@@ -297,6 +316,7 @@
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
@@ -305,6 +325,7 @@
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
@@ -313,9 +334,11 @@
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #34495e !important;
}
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
@@ -333,8 +356,10 @@
overflow: hidden;
object-fit: contain;
}
</style>
</head>
<body class="">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
@@ -352,13 +377,15 @@
<tr>
<td>
<h3 class="align-center"><b>Order Details</b></h3>
<table class="table table-condensed table-bordered" width="100%" style="width: 100%; border-collapse: collapse; ">
<table class="table table-condensed table-bordered" width="100%"
style="width: 100%; border-collapse: collapse; ">
<tr>
<td class="text-center" colspan="2"><b>Payer Information</b></td>
</tr>
<tr>
<td class="col-md-3">Payer Name</td>
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}
</td>
</tr>
<tr>
<td class="col-md-3">Payer Email Address</td>
@@ -369,27 +396,33 @@
<td>{{ $array_payment_details[0]->PaymentMethod }}</td>
</tr>
<tr>
<td class="text-center" colspan="2"><b>Transaction Information</b></td>
<td class="text-center" colspan="2"><b>Transaction
Information</b></td>
</tr>
<tr>
<td class="col-md-3">Subtotal</td>
<td>{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}</td>
<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>
<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>
<td>{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}
</td>
</tr>
<tr>
<td class="col-md-3">Total</td>
<td>{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}</td>
<td>{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}
</td>
</tr>
<tr>
<td class="col-md-3">Invoice #</td>
@@ -400,22 +433,31 @@
<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%">
<div
style="border: 1px solid #e2e2e2; padding: 10px; margin-bottom: 10px;">
<table role="presentation" border="0" cellpadding="0"
cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left" style="width: 180px;">
@foreach ($img_thumb as $img)
@if ($img->ProductId == $item->ProductId)
<img style="height: 200px; overflow: hidden; object-fit: contain;" src="{{ config('site_config.images_url') }}/{{ $img->Image }}">
<img style="height: 200px; overflow: hidden; object-fit: contain;"
src="{{ config('site_config.images_url') }}/{{ $img->Image }}">
@endif
@endforeach
</td>
<td>
<div style="font-size: 14px;"><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></div>
Total Price: ${{ $item->total_price }} &bull; Row(s): {{ $item->qty }}
<table class="table table-condensed table-bordered" width="100%" style="width: 100%; border-collapse: collapse;">
@if($item->FormUsed=="jersey-and-shorts-form")
<div style="font-size: 14px;"><a
href="{{ url('store') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a>
</div>
Total Price: ${{ $item->total_price }} &bull;
Row(s): {{ $item->qty }}
<table
class="table table-condensed table-bordered"
width="100%"
style="width: 100%; border-collapse: collapse;">
@if ($item->FormUsed == 'jersey-and-shorts-form')
<tr>
<td><b>Name</b></td>
<td><b>Number</b></td>
@@ -499,80 +541,121 @@
@foreach ($order_item_array as $sub_item)
@if ($sub_item->ProductId == $item->ProductId)
@if($item->FormUsed=="jersey-and-shorts-form")
@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>
<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>
<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>
<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>
<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>
<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>
<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>
<td>{{ $sub_item->Name }}
</td>
<td>{{ $sub_item->Name2 }}
</td>
<td>{{ $sub_item->Size }}
</td>
<td>{{ $sub_item->Price }}
</td>
<td>{{ $sub_item->Quantity }}
</td>
</tr>
@elseif($item->FormUsed=="name-size-form")
<tr>
<td>{{ $sub_item->Name }}</td>
<td>{{ $sub_item->Size }}</td>
<td>{{ $sub_item->Price }}</td>
<td>{{ $sub_item->Quantity }}</td>
<td>{{ $sub_item->Name }}
</td>
<td>{{ $sub_item->Size }}
</td>
<td>{{ $sub_item->Price }}
</td>
<td>{{ $sub_item->Quantity }}
</td>
</tr>
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
<tr>
<td>{{ $sub_item->JerseySize }}</td>
<td>{{ $sub_item->ShortsSize }}</td>
<td>{{ $sub_item->Price }}</td>
<td>{{ $sub_item->Quantity }}</td>
<td>{{ $sub_item->JerseySize }}
</td>
<td>{{ $sub_item->ShortsSize }}
</td>
<td>{{ $sub_item->Price }}
</td>
<td>{{ $sub_item->Quantity }}
</td>
</tr>
@elseif($item->FormUsed=="number-jersey-shorts-form")
<tr>
<td>{{ $sub_item->Number }}</td>
<td>{{ $sub_item->JerseySize }}</td>
<td>{{ $sub_item->ShortsSize }}</td>
<td>{{ $sub_item->Price }}</td>
<td>{{ $sub_item->Quantity }}</td>
<td>{{ $sub_item->Number }}
</td>
<td>{{ $sub_item->JerseySize }}
</td>
<td>{{ $sub_item->ShortsSize }}
</td>
<td>{{ $sub_item->Price }}
</td>
<td>{{ $sub_item->Quantity }}
</td>
</tr>
@else
@@ -603,7 +686,9 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<span class="apple-link">Copyright &copy 2019 <a href="https://crewsportswear.com">crewsportswear.com</a>. All rights reserved.</span>
<span class="apple-link">Copyright &copy 2019 <a
href="https://crewsportswear.com">crewsportswear.com</a>. All rights
reserved.</span>
</td>
</tr>
</table>
@@ -616,4 +701,5 @@
</tr>
</table>
</body>
</html>

View File

@@ -360,7 +360,7 @@
<small>{{ $store_array[0]->StoreCurrency }}</small>
</h3>
@if ($getSubtotal >= 100)
@if ($getSubtotal >= 1)
<div class="border rounded-2 p-2 mt-2">
If you order $150 worth of product you get free shipping (pre tax)
</div>