|
@@ -1,7 +1,7 @@
|
|
<?php
|
|
<?php
|
|
- $orderDetailJson = $order->detailJson();
|
|
|
|
- $orderSelectedOptions = json_decode(@$orderDetailJson->selected_options ?? '{}');
|
|
|
|
- $orderSummary = $order->getOrderAllTestsRequested();
|
|
|
|
|
|
+$orderDetailJson = $order->detailJson();
|
|
|
|
+$orderSelectedOptions = json_decode(@$orderDetailJson->selected_options ?? '{}');
|
|
|
|
+$orderSummary = $order->getOrderAllTestsRequested();
|
|
?>
|
|
?>
|
|
|
|
|
|
<tr>
|
|
<tr>
|
|
@@ -34,7 +34,8 @@
|
|
<tr height="24" style="background-color:rgb(250,250,250)">
|
|
<tr height="24" style="background-color:rgb(250,250,250)">
|
|
<td colspan="5" valign="top"
|
|
<td colspan="5" valign="top"
|
|
style="text-align:center;text-transform:uppercase;padding:6px;border-top-left-radius:3px;border-bottom-left-radius:3px">
|
|
style="text-align:center;text-transform:uppercase;padding:6px;border-top-left-radius:3px;border-bottom-left-radius:3px">
|
|
- <span style="font-size:15px;font-weight:600">Tests Ordered</span></td>
|
|
|
|
|
|
+ <span style="font-size:15px;font-weight:600">Tests Ordered</span>
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
<tr height="15">
|
|
<tr height="15">
|
|
<td colspan="5"></td>
|
|
<td colspan="5"></td>
|
|
@@ -42,8 +43,7 @@
|
|
@foreach ($orderSummary['all_tests'] as $tkey => $test)
|
|
@foreach ($orderSummary['all_tests'] as $tkey => $test)
|
|
<tr>
|
|
<tr>
|
|
<td colspan="3" style="padding:0 0 0 0;vertical-align:top;">
|
|
<td colspan="3" style="padding:0 0 0 0;vertical-align:top;">
|
|
- <span
|
|
|
|
- style="font-weight:400;">{{ $test['name'] }}</span>
|
|
|
|
|
|
+ <span style="font-weight:400;">{{ $test['name'] }}</span>
|
|
</td>
|
|
</td>
|
|
<td align="right" valign="top" style="padding:0 0px;">
|
|
<td align="right" valign="top" style="padding:0 0px;">
|
|
<span
|
|
<span
|
|
@@ -53,39 +53,18 @@
|
|
@endforeach
|
|
@endforeach
|
|
|
|
|
|
@if (@$orderSelectedOptions->partner == 1)
|
|
@if (@$orderSelectedOptions->partner == 1)
|
|
- <tr height="15">
|
|
|
|
- <td colspan="5"></td>
|
|
|
|
- </tr>
|
|
|
|
- <tr height="24" style="background-color:rgb(250,250,250)">
|
|
|
|
- <td colspan="5" valign="top"
|
|
|
|
- style="text-align:center;text-transform:uppercase;padding:6px;border-top-left-radius:3px;border-bottom-left-radius:3px">
|
|
|
|
- <span style="font-size:15px;font-weight:600">Partner Tests</span></td>
|
|
|
|
- </tr>
|
|
|
|
- <tr height="15">
|
|
|
|
- <td colspan="5"></td>
|
|
|
|
- </tr>
|
|
|
|
- <?php
|
|
|
|
- $discountedAmountPerOrder = floatval($orderSummary['partner_discount_per_test']);
|
|
|
|
- $partnerDiscount = 0;
|
|
|
|
- $partnerTotalCost = 0;
|
|
|
|
- ?>
|
|
|
|
- @foreach ($orderSummary['all_tests'] as $pTestKey => $pTest)
|
|
|
|
- <?php
|
|
|
|
- $partnerDiscount = $partnerDiscount + $discountedAmountPerOrder;
|
|
|
|
- $pTestAmount = floatval($pTest['price']) - $discountedAmountPerOrder;
|
|
|
|
- $partnerTotalCost = $partnerTotalCost + floatval($pTestAmount);
|
|
|
|
- ?>
|
|
|
|
- <tr>
|
|
|
|
- <td colspan="3" style="padding:0 0 0 0;vertical-align:top;">
|
|
|
|
- <span
|
|
|
|
- style="font-weight:400;">{{ $pTest['name'] }}</span>
|
|
|
|
- </td>
|
|
|
|
- <td align="right" valign="top" style="padding:0 0px;">
|
|
|
|
- <span
|
|
|
|
- style="font-weight:400;white-space:nowrap;display:block;">${{ number_format($pTestAmount, 2) }}</span>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
|
|
+
|
|
|
|
+ @foreach ($orderSummary['all_tests'] as $pTestKey => $pTest)
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="3" style="padding:0 0 0 0;vertical-align:top;">
|
|
|
|
+ <span style="font-weight:400;">{{ $pTest['name'] }} (Partner Test)</span>
|
|
|
|
+ </td>
|
|
|
|
+ <td align="right" valign="top" style="padding:0 0px;">
|
|
|
|
+ <span
|
|
|
|
+ style="font-weight:400;white-space:nowrap;display:block;">${{ number_format($pTest['price'], 2) }}</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
@endif
|
|
@endif
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
@@ -105,16 +84,16 @@
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@if (@$orderSelectedOptions->partner == 1)
|
|
@if (@$orderSelectedOptions->partner == 1)
|
|
- {{-- <tr height="28">
|
|
|
|
|
|
+ <tr height="28">
|
|
<td align="right"
|
|
<td align="right"
|
|
style="color:#000;font-size:14px;font-weight:400;padding:0 30px 0 0;border:none;border-width:1px;border-color:rgb(238,238,238)">
|
|
style="color:#000;font-size:14px;font-weight:400;padding:0 30px 0 0;border:none;border-width:1px;border-color:rgb(238,238,238)">
|
|
- Tests</td>
|
|
|
|
|
|
+ User Tests Total</td>
|
|
<td width="1" style="background-color:rgb(238,238,238);width:1px"></td>
|
|
<td width="1" style="background-color:rgb(238,238,238);width:1px"></td>
|
|
<td width="90" align="right"
|
|
<td width="90" align="right"
|
|
style="width:120px;font-size:16px;font-weight:400;white-space:nowrap">
|
|
style="width:120px;font-size:16px;font-weight:400;white-space:nowrap">
|
|
- ${{ number_format(@$orderSelectedOptions->initial_tests_total, 2) }}
|
|
|
|
|
|
+ ${{ number_format(@$orderSummary['client_total'], 2) }}
|
|
</td>
|
|
</td>
|
|
- </tr> --}}
|
|
|
|
|
|
+ </tr>
|
|
<tr height="28">
|
|
<tr height="28">
|
|
<td align="right"
|
|
<td align="right"
|
|
style="color:#000;font-size:14px;font-weight:400;padding:0 30px 0 0;border:none;border-width:1px;border-color:rgb(238,238,238)">
|
|
style="color:#000;font-size:14px;font-weight:400;padding:0 30px 0 0;border:none;border-width:1px;border-color:rgb(238,238,238)">
|
|
@@ -122,7 +101,7 @@
|
|
<td width="1" style="background-color:rgb(238,238,238);width:1px"></td>
|
|
<td width="1" style="background-color:rgb(238,238,238);width:1px"></td>
|
|
<td width="90" align="right"
|
|
<td width="90" align="right"
|
|
style="width:120px;font-size:16px;font-weight:400;white-space:nowrap">
|
|
style="width:120px;font-size:16px;font-weight:400;white-space:nowrap">
|
|
- ${{ number_format(@$partnerTotalCost, 2) }}
|
|
|
|
|
|
+ ${{ number_format(@$orderSummary['partner_total'], 2) }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr height="28">
|
|
<tr height="28">
|
|
@@ -132,7 +111,7 @@
|
|
<td width="1" style="background-color:rgb(238,238,238);width:1px"></td>
|
|
<td width="1" style="background-color:rgb(238,238,238);width:1px"></td>
|
|
<td width="90" align="right"
|
|
<td width="90" align="right"
|
|
style="width:120px;font-size:16px;font-weight:400; color:#048a16;white-space:nowrap">
|
|
style="width:120px;font-size:16px;font-weight:400; color:#048a16;white-space:nowrap">
|
|
- -${{ number_format(@$partnerDiscount, 2) }}
|
|
|
|
|
|
+ -${{ number_format(@$orderSummary['partner_total_discount'], 2) }}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endif
|
|
@endif
|