64 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			64 lines
		
	
	
		
			3.3 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> | ||
|  |     </div> | ||
|  | </div> |