/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
Orders
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Orders
mkdir
upload
Name
Size
Mode
Actions
add.php
1916
0644
edit
dl
rm
index.php
14953
0644
edit
dl
rm
view.php
4424
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Orders/view.php
(4424B)
<!-- 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 __('Order #') . $orderId; ?></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($orderId)) : ?> <?php echo $this->cell('Admin/InfoOrderBlock', [$orderId]); ?> <?php endif; ?> </div> </div> </div> <?php if (!empty($orderProducts)) : ?> <div class="col-lg-9"> <?php echo $this->element('tabs/orders', ['activeTab' => 'products']); ?> <div class="card"> <div class="card-body table-responsive p-0"> <table class="table table-hover text-nowrap"> <tr> <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 $i => $orderProduct) : ?> <tr class="info"> <td> <?php echo $orderProduct->qnt; ?> x <br /> <a href="<?php echo $this->Url->build(['prefix' => 'Admin', 'controller' => 'Products', 'action' => 'view', $orderProduct->product->id]); ?>"> <span class="label label-default" title="<?php echo '#' . $orderProduct->product->id; ?>"><?php echo h($orderProduct->product->name); ?></span> </a><br /> = <?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> <?php endforeach; ?> <tr class="active"> <td colspan="3"> </td> <td colspan="2" class="fa-2 info text-right"><?php echo __('Total: ') . $this->Number->format($orderProduct->order->total, ['precision' => 0, 'after' => ' Lei']); ?></td> </tr> </table> </div> </div> <?php echo $this->element('paginator'); ?> <?php endif; ?> </div> </section>
Save
cmd:
run