|
@@ -49,6 +49,37 @@
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
+ <div class="card">
|
|
|
|
+ <div class="card-header">
|
|
|
|
+ <div class="d-flex align-items-center justify-content-between">
|
|
|
|
+ <h5 class="mb-0 fw-bold">Tests Requested</h5>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="card-body">
|
|
|
|
+ <div>
|
|
|
|
+ <?php
|
|
|
|
+ $tests = [];
|
|
|
|
+ $subOrders = $order->allAssociatedOrders();
|
|
|
|
+ foreach($subOrders as $subOrder){
|
|
|
|
+ $tests = array_merge($tests, $subOrder->testsRequestedInHumanReadable());
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <table class="table table-sm table-bordered border w-100 mb-0">
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach ($tests as $key=>$test)
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="w-50 w-lg-75 px-2">{{ $test }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
@if($order->getPartnerEmail())
|
|
@if($order->getPartnerEmail())
|
|
<div class="card mt-3">
|
|
<div class="card mt-3">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
@@ -66,7 +97,7 @@
|
|
</span>
|
|
</span>
|
|
@endif
|
|
@endif
|
|
@include('app.my-account.admin.orders.forms.upload-attachment', [
|
|
@include('app.my-account.admin.orders.forms.upload-attachment', [
|
|
- 'title' => 'Upload Partner Results',
|
|
|
|
|
|
+ 'title' => 'Upload Partner Results PDF',
|
|
'fileName' => 'partner_results_attachment',
|
|
'fileName' => 'partner_results_attachment',
|
|
'edit' => $partner_results_attachment ? true:false
|
|
'edit' => $partner_results_attachment ? true:false
|
|
])
|
|
])
|
|
@@ -105,76 +136,37 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
- <table class="table table-sm table-bordered dashboard-stats-table mb-0">
|
|
|
|
- <tbody>
|
|
|
|
- <tr>
|
|
|
|
- <th class="px-2" colspan="2">
|
|
|
|
- <span class="text-secondary">Email:</span>
|
|
|
|
- {{ $order->getPartnerEmail() }}
|
|
|
|
- </th>
|
|
|
|
- </tr>
|
|
|
|
-
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
- <div class="col-md-6">
|
|
|
|
- <div class="card">
|
|
|
|
- <div class="card-header">
|
|
|
|
- <div class="d-flex align-items-center justify-content-between">
|
|
|
|
- <h5 class="mb-0 fw-bold">Tests Requested</h5>
|
|
|
|
|
|
+ <div class="">
|
|
|
|
+ <span class="text-secondary">Email:</span> <b>{{ $order->getPartnerEmail() }}</b>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="card-body">
|
|
|
|
- <div>
|
|
|
|
- <?php
|
|
|
|
- $tests = [];
|
|
|
|
- $subOrders = $order->allAssociatedOrders();
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $partnerTests = [];
|
|
foreach($subOrders as $subOrder){
|
|
foreach($subOrders as $subOrder){
|
|
- $tests = array_merge($tests, $subOrder->testsRequestedInHumanReadable());
|
|
|
|
|
|
+ $partnerTests = array_merge($partnerTests, $subOrder->partnerTestsRequestedInHumanReadable());
|
|
}
|
|
}
|
|
- ?>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- <table class="table table-sm table-bordered border w-100 mb-0">
|
|
|
|
- <tbody>
|
|
|
|
- @foreach ($tests as $key=>$test)
|
|
|
|
- <tr>
|
|
|
|
- <td class="w-50 w-lg-75 px-2">{{ $test }}</td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <?php
|
|
|
|
- $partnerTests = [];
|
|
|
|
- foreach($subOrders as $subOrder){
|
|
|
|
- $partnerTests = array_merge($partnerTests, $subOrder->partnerTestsRequestedInHumanReadable());
|
|
|
|
- }
|
|
|
|
- ?>
|
|
|
|
- @if(count($partnerTests))
|
|
|
|
- <div class="card mt-3">
|
|
|
|
- <div class="card-header">
|
|
|
|
- <div class="d-flex align-items-center justify-content-between">
|
|
|
|
- <h5 class="mb-0 fw-bold">Partner Tests Requested</h5>
|
|
|
|
|
|
+ ?>
|
|
|
|
+ @if(count($partnerTests))
|
|
|
|
+ <div class="card mt-3">
|
|
|
|
+ <div class="card-header">
|
|
|
|
+ <div class="d-flex align-items-center justify-content-between">
|
|
|
|
+ <h5 class="mb-0 fw-bold">Tests Requested</h5>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="card-body">
|
|
|
|
+ <table class="table table-sm table-bordered border w-100 mb-0">
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach ($partnerTests as $pKey=>$pTest)
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="w-50 w-lg-75 px-2">{{ $pTest }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="card-body">
|
|
|
|
- <table class="table table-sm table-bordered border w-100 mb-0">
|
|
|
|
- <tbody>
|
|
|
|
- @foreach ($partnerTests as $pKey=>$pTest)
|
|
|
|
- <tr>
|
|
|
|
- <td class="w-50 w-lg-75 px-2">{{ $pTest }}</td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|