D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
josepharmacy.online
/
Filename :
test_stub2.php
back
Copy
<?php @if($productDetails) @php $priceBefore = 0; $priceAfter = 0; $totalBefore = 0; $totalAfter = 0; if (isset($detail['bundle_id']) && $detail['bundle_id']) { $priceBefore = $detail['original_price'] ?? (isset($productDetails['unit_price']) ? $productDetails['unit_price'] : $detail['price']); $priceAfter = $detail['price']; } else { $priceBefore = $detail['original_price'] ?? $detail['price']; $priceAfter = $detail['price'] - ($detail['qty'] > 0 ? ($detail['discount'] / $detail['qty']) : 0); } $totalBefore = $priceBefore * $detail['qty']; $totalAfter = $priceAfter * $detail['qty']; ?> <tr> <td><?php echo e(++$row); ?></td> <td> <div class="media align-items-center gap-10"> <a target="_blank" href="<?php echo e(route('admin.products.view', ['addedBy' => $productDetails['added_by'] == 'seller' ? 'vendor' : 'in-house', 'id' => $productDetails['id']])); ?>"> <img class="avatar avatar-60 rounded img-fit" src="<?php echo e(getStorageImages(path: $detail?->productAllStatus?->thumbnail_full_url, type: 'backend-product')); ?>" alt="<?php echo e(translate('image_Description')); ?>"> </a> <div> <a target="_blank" class="text-dark fs-12 fw-bold" <?php if(strlen($productDetails['name']) > 30): ?> data-bs-toggle="tooltip" title="<?php echo e($productDetails['name']); ?>" <?php endif; ?> href="<?php echo e(route('admin.products.view', ['addedBy' => $productDetails['added_by'] == 'seller' ? 'vendor' : 'in-house', 'id' => $productDetails['id']])); ?>"> <?php echo e(substr($productDetails['name'], 0, 30)); ?><?php echo e(strlen($productDetails['name']) > 30 ? '...' : ''); ?> </a> <?php if(!empty($detail->bundle_name)): ?> <div class="text-muted fz-9">(<?php echo e(translate('Bundle')); ?>: <?php echo e($detail->bundle_name); ?>) </div> <?php endif; ?> <div class="fs-10"> <strong><?php echo e(translate('unit_price')); ?> :</strong> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $detail['price']))); ?> </div> <?php if($detail->variant): ?> <div class="max-w-150px text-wrap fs-10"> <strong> <?php echo e(translate('variation')); ?> : </strong> <?php echo e($detail['variant']); ?> </div> <?php endif; ?> </div> </div> <?php if(isset($productDetails['digital_product_type']) && $productDetails['digital_product_type'] == 'ready_after_sell'): ?> <button type="button" class="btn btn-sm btn-primary mt-2" title="<?php echo e(translate('file_upload')); ?>" data-bs-toggle="modal" data-bs-target="#fileUploadModal-<?php echo e($detail->id); ?>"> <i class="fi fi-rr-file"></i> <?php echo e(translate('file')); ?> </button> <?php endif; ?> </td> <td class="text-center"><?php echo e($detail['qty']); ?></td> <td class="text-end"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $priceBefore), currencyCode: getCurrencyCode())); ?> </td> <td class="text-end"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $priceAfter), currencyCode: getCurrencyCode())); ?> </td> <?php ($subtotal = ($detail['price'] * $detail['qty']) - $detail['discount']); ?> </tr> <?php ($item_price += $detail['price'] * $detail['qty']); ?> <?php ($discount += $detail['discount']); ?> <?php ($total += $subtotal); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <?php $__currentLoopData = $order->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($productDetails = $detail?->productAllStatus ?? json_decode($detail->product_details, true)); ?>