/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
Products
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Products
mkdir
upload
Name
Size
Mode
Actions
add.php
1777
0644
edit
dl
rm
edit.php
2021
0644
edit
dl
rm
index.php
9153
0644
edit
dl
rm
view.php
4491
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Products/view.php
(4491B)
<!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-12"> <h1 class="float-left"><?php echo __('Product #') . $productId; ?></h1> <ol class="breadcrumb float-right"> <li class="breadcrumb-item active" aria-current="page"> <a class="" href="<?php echo $this->Url->build(['action' => 'index']); ?>"><i class="fas fa-home"></i> <?php echo __('Home'); ?></a></li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-3"> <div class="card"> <div class="card-body"> <?php if (!empty($productId)) : ?> <?php echo $this->cell('Admin/InfoProductBlock', [$productId]); ?> <?php endif; ?> </div> </div> </div> <?php if (!empty($orderProducts)) : ?> <div class="col-lg-9"> <?php echo $this->element('tabs/products', ["activeTab" => "orders"]); ?> <div class="card"> <div class="card-body table-responsive p-0"> <table class="table table-hover text-nowrap"> <tr> <th scope="col"><?php echo $this->Paginator->sort('Orders.uuid', ['label' => 'Order #']); ?></th> <th scope="col"><?php echo __('Product'); ?></th> <th scope="col" colspan="3"><?php echo __('Delivery'); ?></th> <th scope="col" class="actions text-center"><?php echo __('Actions'); ?></th> </tr> <?php foreach ($orderProducts as $orderProduct) : ?> <tr class="info"> <td> <a href="<?php echo $this->Url->build(['prefix' => 'Admin', 'controller' => 'Orders', 'action' => 'view', $orderProduct->order->id]); ?>"> <span class="label label-default" title="<?php echo '#' . $orderProduct->order->id; ?>"><?php echo h($orderProduct->order->uuid); ?></span> </a> </td> <td> <?php echo $orderProduct->qnt; ?> x <?php echo $this->Number->format($orderProduct->price, ['precision' => 0, 'after' => ' Lei']); ?> = <?php echo $this->Number->format(($orderProduct->price * $orderProduct->qnt), ['precision' => 0, 'after' => ' Lei']); ?> </td> <td> <strong><?php echo __('From: '); ?></strong> <a href="<?php echo $this->Url->build(['prefix' => 'Admin', 'controller' => 'User', 'action' => 'view', $orderProduct->product->user->id]); ?>"> <span class="label label-default" title="<?php echo '#' . $orderProduct->product->user->id; ?>"><?php echo h($orderProduct->product->user->name); ?></span> </a> <br /> <?php echo h($orderProduct->product->user_address->full_address); ?> </td> <td class="text-center"><i class="fa fa-arrow-right fa-2"></i></td> <td> <strong><?php echo __('To: '); ?></strong> <a href="<?php echo $this->Url->build(['prefix' => 'Admin', 'controller' => 'User', 'action' => 'view', $orderProduct->order->user->id]); ?>"> <span class="label label-default" title="<?php echo '#' . $orderProduct->order->user->id ?>"><?php echo h($orderProduct->order->user->name); ?></span> </a> <br /> <?php echo h($orderProduct->order->user_address->full_address); ?> </td> <td class="actions text-center"> <?php echo $this->Form->postLink(__('Delete'), ['controller' => 'orderProduct', 'action' => 'delete', $orderProduct->id], ['confirm' => __('Are you sure you want to delete # {0}?', $orderProduct->id), 'class' => 'btn btn-danger btn-xs']); ?> </td> </tr> <tr class="warning"> <td colspan="6"> </td> </tr> <?php endforeach; ?> </table> </div> </div> <?php echo $this->element('paginator'); ?> </div> <?php endif; ?> </div> </div> </section>
Save
cmd:
run