96 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * @var \App\View\AppView $this
 | 
						|
 * @var \Cake\Datasource\EntityInterface $productCatalog
 | 
						|
 */
 | 
						|
?>
 | 
						|
<div class="row">
 | 
						|
    <aside class="column">
 | 
						|
        <div class="side-nav">
 | 
						|
            <h4 class="heading"><?= __('Actions') ?></h4>
 | 
						|
            <?= $this->Html->link(__('Edit Product Catalog'), ['action' => 'edit', $productCatalog->id], ['class' => 'side-nav-item']) ?>
 | 
						|
            <?= $this->Form->postLink(__('Delete Product Catalog'), ['action' => 'delete', $productCatalog->id], ['confirm' => __('Are you sure you want to delete # {0}?', $productCatalog->id), 'class' => 'side-nav-item']) ?>
 | 
						|
            <?= $this->Html->link(__('List Product Catalogs'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
 | 
						|
            <?= $this->Html->link(__('New Product Catalog'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
 | 
						|
        </div>
 | 
						|
    </aside>
 | 
						|
    <div class="column column-80">
 | 
						|
        <div class="productCatalogs view content">
 | 
						|
            <h3><?= h($productCatalog->name) ?></h3>
 | 
						|
            <table>
 | 
						|
                <tr>
 | 
						|
                    <th><?= __('Name') ?></th>
 | 
						|
                    <td><?= h($productCatalog->name) ?></td>
 | 
						|
                </tr>
 | 
						|
                <tr>
 | 
						|
                    <th><?= __('Catalog Description') ?></th>
 | 
						|
                    <td><?= h($productCatalog->catalog_description) ?></td>
 | 
						|
                </tr>
 | 
						|
                <tr>
 | 
						|
                    <th><?= __('Enabled') ?></th>
 | 
						|
                    <td><?= $productCatalog->enabled ? __('Yes') : __('No'); ?></td>
 | 
						|
                </tr>
 | 
						|
            </table>
 | 
						|
            <div class="related">
 | 
						|
                <h4><?= __('Related Product Categories') ?></h4>
 | 
						|
                <?php if (!empty($productCatalog->product_categories)) : ?>
 | 
						|
                <div class="table-responsive">
 | 
						|
                    <table>
 | 
						|
                        <tr>
 | 
						|
                            <th><?= __('Name') ?></th>
 | 
						|
                            <th><?= __('Category Description') ?></th>
 | 
						|
                            <th><?= __('Enabled') ?></th>
 | 
						|
                            <th class="actions"><?= __('Actions') ?></th>
 | 
						|
                        </tr>
 | 
						|
                        <?php foreach ($productCatalog->product_categories as $productCategories) : ?>
 | 
						|
                        <tr>
 | 
						|
                            <td><?= h($productCategories->name) ?></td>
 | 
						|
                            <td><?= h($productCategories->category_description) ?></td>
 | 
						|
                            <td><?= h($productCategories->enabled) ?></td>
 | 
						|
                            <td class="actions">
 | 
						|
                                <?= $this->Html->link(__('View'), ['controller' => 'ProductCategories', 'action' => 'view', $productCategories->id]) ?>
 | 
						|
                                <?= $this->Html->link(__('Edit'), ['controller' => 'ProductCategories', 'action' => 'edit', $productCategories->id]) ?>
 | 
						|
                                <?= $this->Form->postLink(__('Delete'), ['controller' => 'ProductCategories', 'action' => 'delete', $productCategories->id], ['confirm' => __('Are you sure you want to delete # {0}?', $productCategories->id)]) ?>
 | 
						|
                            </td>
 | 
						|
                        </tr>
 | 
						|
                        <?php endforeach; ?>
 | 
						|
                    </table>
 | 
						|
                </div>
 | 
						|
                <?php endif; ?>
 | 
						|
            </div>
 | 
						|
            <div class="related">
 | 
						|
                <h4><?= __('External Product Catalog API\'s ') ?></h4>
 | 
						|
                <?php if (!empty($productCatalog->external_product_catalogs)) : ?>
 | 
						|
                    <div class="table-responsive">
 | 
						|
                        <table>
 | 
						|
                            <tr>
 | 
						|
                                <th><?= __('Name') ?></th>
 | 
						|
                                <th><?= __('Category Description') ?></th>
 | 
						|
                                <th><?= __('Enabled') ?></th>
 | 
						|
                                <th class="actions"><?= __('Actions') ?></th>
 | 
						|
                            </tr>
 | 
						|
                            <?php foreach ($productCatalog->external_product_catalogs as $externalProductCatalog) : ?>
 | 
						|
                            <?php
 | 
						|
                                /**
 | 
						|
                                 * @var \CakeProducts\Model\Entity\ExternalProductCatalog $externalProductCatalog
 | 
						|
                                 */
 | 
						|
                            ?>
 | 
						|
                                <tr>
 | 
						|
                                    <td><?= h($externalProductCatalog->base_url) ?></td>
 | 
						|
                                    <td><?= h($externalProductCatalog->api_url) ?></td>
 | 
						|
                                    <td><?= h($externalProductCatalog->_joinData->enabled) ?></td>
 | 
						|
                                    <td class="actions">
 | 
						|
                                        <?= $this->Html->link(__('View'), ['controller' => 'ExternalProductCatalogs', 'action' => 'view', $externalProductCatalog->id]) ?>
 | 
						|
                                        <?= $this->Html->link(__('Edit'), ['controller' => 'ExternalProductCatalogs', 'action' => 'edit', $externalProductCatalog->id]) ?>
 | 
						|
                                        <?= $this->Form->postLink(__('Delete'), ['controller' => 'ExternalProductCatalogsProductCatalogs', 'action' => 'delete', $externalProductCatalog->_joinData->id], ['confirm' => __('Are you sure you want to delete # {0}?', $externalProductCatalog->id)]) ?>
 | 
						|
                                    </td>
 | 
						|
                                </tr>
 | 
						|
                            <?php endforeach; ?>
 | 
						|
                        </table>
 | 
						|
                    </div>
 | 
						|
                <?php endif; ?>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
</div>
 |