/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Dashboard
/
ProductFavorites
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/ProductFavorites
mkdir
upload
Name
Size
Mode
Actions
index.php
5193
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/ProductFavorites/index.php
(5193B)
<?php $this->assign('title', __('Produse favorite')); ?> <?php $this->Breadcrumbs->reset()->add(__('Produse favorite'), null); $this->Breadcrumbs->prepend([ ['title' => __('Contul meu'), 'url' => ['controller' => 'Profiles', 'action' => 'view']], ]); $this->Breadcrumbs->prepend([ ['title' => __('Acasă'), 'url' => ['controller' => 'Pages', 'action' => 'home']], ]); ?> <div class="block__profile"> <div class="container"> <div class="block__breadcrumbs my-4"> <?php echo $this->Breadcrumbs->render() ?> </div> <div class="row"> <div class="col-12"> <h1> <?php echo __('Contul meu'); ?> </h1> </div> <aside class="col-lg-3"> <div class="side-nav profile-side-nav"> <?php echo $this->element('../Dashboard/element/sidebar'); ?> </div> </aside> <div class="col-lg-9 pl-lg-0"> <div class="products index content profile-content"> <div class="d-flex mb-3"> <h3 class="my-auto"><?php echo __('Produse favorite'); ?></h3> </div> <div class="profile-content-wrapper py-0"> <?php if (!empty($productFavorites)) : ?> <div class="rows-striped"> <?php foreach ($productFavorites as $productFavorite) : ?> <div class="row"> <div class="col-12 col-sm-8 col-lg-8 px-md-0 my-auto"> <div class="product-row"> <div class="image"> <?php $image = $this->Html->image($this->Custom->generateUrlHdy( [ 'model_name' => $productFavorite->product->model_name, 'uuid' => $productFavorite->product->uuid, 'image_name' => $productFavorite->product->featured_image['image_path'] ], true, 300, 200, true ), ['class' => 'img-fluid']) ?> <?php echo $productFavorite->has('product') ? $this->Html->link($image, ['prefix' => false, 'controller' => 'Products', 'action' => 'view', $productFavorite->product->slug, $productFavorite->product->uuid], ['escape' => false]) : ''; ?> </div> <div class="details"> <h3> <?php echo $productFavorite->has('product') ? $this->Html->link($productFavorite->product->name, ['prefix' => false, 'controller' => 'Products', 'action' => 'view', $productFavorite->product->slug, $productFavorite->product->uuid]) : ''; ?> </h3> <h4 class="font-weight-bold"> <?php echo __('Preț:') ?> <?php echo $productFavorite->has('product') ? $this->Number->format($productFavorite->product->price, ['precision' => 0, 'after' => ' Lei']) : ''; ?> </h4> </div> </div> </div> <div class="col-12 col-sm-4 col-lg-4 pr-md-0 actions text-right my-auto"> <?php echo $this->Form->postLink(__('Șterge'), ['prefix' => false, 'controller' => 'ProductFavorites', 'action' => 'addRemove', $productFavorite->product->uuid], ['confirm' => __('Are you sure you want to delete # {0}?', $productFavorite->product->name), 'escape' => false, 'class' => 'btn outline primary size-xs']); ?> </div> </div> <?php endforeach; ?> </div> <?php echo $this->element('paginator'); ?> <?php else : ?> <div class="py-3"> <?php echo __('Nu aveți produse favorite'); ?> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div>
Save
cmd:
run