added qr on reports
This commit is contained in:
@@ -68,7 +68,6 @@ class AdminController extends Controller
|
|||||||
$item_thumbs = $AdminModel->selectDisplayItemThumb();
|
$item_thumbs = $AdminModel->selectDisplayItemThumb();
|
||||||
$array_payment_details = $AdminModel->selectPaymentDetails('CartKey', $ck);
|
$array_payment_details = $AdminModel->selectPaymentDetails('CartKey', $ck);
|
||||||
$array_shipping_add = $AdminModel->selectShippingAddress('PaymentDetail_Id', $array_payment_details[0]->Id);
|
$array_shipping_add = $AdminModel->selectShippingAddress('PaymentDetail_Id', $array_payment_details[0]->Id);
|
||||||
|
|
||||||
return view('admin_pages.print_order')
|
return view('admin_pages.print_order')
|
||||||
->with('array_payment_details', $array_payment_details)
|
->with('array_payment_details', $array_payment_details)
|
||||||
->with('img_thumb', $item_thumbs)
|
->with('img_thumb', $item_thumbs)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class AdminModel extends Model
|
|||||||
|
|
||||||
function itemGroup($cartKey){
|
function itemGroup($cartKey){
|
||||||
$pdo = DB::connection()->getPdo();
|
$pdo = DB::connection()->getPdo();
|
||||||
$query = $pdo->prepare("SELECT *, COUNT(Id) AS qty, Price * SUM(Quantity) AS total_price FROM orders WHERE CartKey = :ck GROUP BY ProductId");
|
$query = $pdo->prepare("SELECT orders.*, COUNT(orders.Id) AS qty, orders.Price * SUM(orders.Quantity) AS total_price, teamstores.StoreName FROM orders LEFT JOIN teamstores on teamstores.Id = orders.StoreId WHERE CartKey = :ck GROUP BY ProductId");
|
||||||
$query->execute([':ck'=>$cartKey]);
|
$query->execute([':ck'=>$cartKey]);
|
||||||
$row = $query->fetchAll(\PDO::FETCH_OBJ);
|
$row = $query->fetchAll(\PDO::FETCH_OBJ);
|
||||||
return $row;
|
return $row;
|
||||||
|
|||||||
@@ -353,8 +353,9 @@
|
|||||||
|
|
||||||
/* this affects the margin in the printer settings */
|
/* this affects the margin in the printer settings */
|
||||||
/* top - right - bottom - left */
|
/* top - right - bottom - left */
|
||||||
margin: 10mm 5mm 1mm 5mm;
|
margin: 10mm 5mm 1mm 5mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body class="">
|
<body class="">
|
||||||
@@ -374,6 +375,17 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<h3 class="align-center" style="font-size: 15px;"><b>Order Details</b></h3>
|
<h3 class="align-center" style="font-size: 15px;"><b>Order Details</b></h3>
|
||||||
|
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse; ">
|
||||||
|
<tr >
|
||||||
|
<td style="width: 100px; text-align: center;">
|
||||||
|
<img src="https://crewsportswear.app:5954/?text=http://tracking.crewsportswear.com/?tracking_number={{$array_payment_details[0]->InvoiceNumber }}" height="72" alt="QRCode">
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right">
|
||||||
|
<img src="https://crewsportswear.app:5954/?text=http://tracking.crewsportswear.com/?tracking_number={{$array_payment_details[0]->InvoiceNumber }}" height="72" alt="QRCode">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse; ">
|
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse; ">
|
||||||
<tr >
|
<tr >
|
||||||
<th class="bg-info" colspan="2">Payer Information</th>
|
<th class="bg-info" colspan="2">Payer Information</th>
|
||||||
@@ -437,7 +449,11 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="font-size: 12px;"><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></div>
|
<h3 style="margin: 0; padding: 0;">Store: <b>{{ $item->StoreName }}</b></h3>
|
||||||
|
<hr style="margin: 2px; padding: 2px;">
|
||||||
|
<div style="font-size: 12px;">
|
||||||
|
<a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a>
|
||||||
|
</div>
|
||||||
Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }}
|
Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }}
|
||||||
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse;">
|
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse;">
|
||||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||||
@@ -524,6 +540,7 @@
|
|||||||
|
|
||||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td> @if($sub_item->Name != '') {{ $sub_item->Name }} @else -- @endif </td>
|
<td> @if($sub_item->Name != '') {{ $sub_item->Name }} @else -- @endif </td>
|
||||||
<td>{{ $sub_item->Number }}</td>
|
<td>{{ $sub_item->Number }}</td>
|
||||||
<td>{{ $sub_item->JerseySize }}</td>
|
<td>{{ $sub_item->JerseySize }}</td>
|
||||||
@@ -631,7 +648,7 @@
|
|||||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="content-block">
|
<td class="content-block">
|
||||||
<span class="apple-link">Copyright © 2019 <a href="https://crewsportswear.com">crewsportswear.com</a>. All rights reserved.</span>
|
<span class="apple-link">Copyright © {{ date('Y') }} <a href="https://crewsportswear.com">crewsportswear.com</a>. All rights reserved.</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user