| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- namespace App;
- /**
- * @var Product $product
- */
- $supplier = $product->getSupplier();
- ?>
- <div class="row mb-3">
- <div class="col">
- <h3>
- <?=htmlspecialchars($product->name)?>
- <?php
- if($product->isArchived()) {
- ?>
- <span class="badge text-bg-secondary">
- <?=htmlspecialchars(__("Archived"))?>
- </span>
- <?php
- }
- ?>
- </h3>
- </div>
- <div class="col-auto">
- <a class="btn btn-primary" href="<?=htmlspecialchars($product->getUrl())?>/update">
- <i class="fa fa-fw fa-pencil"></i>
- <?=htmlspecialchars(__("Update"))?>
- </a>
- </div>
- </div>
- <section class="mb-4">
- <h4 class="mb-3"><?=htmlspecialchars(__("Details"))?></h4>
- <div class="list-group">
- <div class="list-group-item d-flex justify-content-between">
- <strong><?=htmlspecialchars(__("Supplier"))?></strong>
- <a href="<?=htmlspecialchars($supplier->getUrl())?>">
- <?=htmlspecialchars($supplier->name)?>
- </a>
- </div>
- <div class="list-group-item d-flex justify-content-between">
- <strong><?=htmlspecialchars(__("SKU"))?></strong>
- <?=htmlspecialchars($product->sku)?>
- </div>
- <div class="list-group-item d-flex justify-content-between">
- <strong><?=htmlspecialchars(__("Type"))?></strong>
- <?=htmlspecialchars($product->getDisplayType())?>
- </div>
- <div class="list-group-item d-flex justify-content-between">
- <strong><?=htmlspecialchars(__("Price"))?></strong>
- <?=htmlspecialchars($product->getDisplayPrice())?>
- </div>
- <div class="list-group-item d-flex justify-content-between">
- <strong><?=htmlspecialchars(__("URL"))?></strong>
- <span>
- <i class="fa fa-fw fa-external-link"></i>
- <a href="<?=htmlspecialchars($product->url)?>" target="_blank">
- <?=htmlspecialchars(__("View"))?>
- </a>
- </span>
- </div>
- <div class="list-group-item d-flex justify-content-between">
- <strong><?=htmlspecialchars(__("Brochure"))?></strong>
- <span>
- <i class="fa fa-fw fa-external-link"></i>
- <a href="<?=htmlspecialchars($product->getUrl())?>/view-brochure" target="_blank">
- <?=htmlspecialchars(__("View"))?>
- </a>
- </span>
- </div>
- </div>
- </section>
|