add indexes, add messagedetsta
This commit is contained in:
53
backend/views/common/_customer_tab.php
Normal file
53
backend/views/common/_customer_tab.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
use yii\helpers\Url;
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
$route = \Yii::$app->controller->id .'/'. \Yii::$app->controller->action->id;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$items = [
|
||||
// [ 'Recepció', ['customer/reception', 'number' => $card->number ]],
|
||||
// [ 'Termék eladás', ['product/sale', 'number' => $card->number ]],
|
||||
[ 'Információ', ['customer/view', 'id' => $customer->id_customer ]],
|
||||
[ 'Adatlap', ['customer/update', 'id' => $customer->id_customer ]],
|
||||
[ 'Befizetések', ['ticket/index-customer', 'id' => $customer->id_customer ]],
|
||||
[ 'Kulcsok', ['key/index-customer','id' => $customer->id_customer ]],
|
||||
[ 'Szerződések', ['contract/index-customer', 'id' => $customer->id_customer ]],
|
||||
// [ 'Kosár', ['transfer/customer-cart', 'id_card' => $card->id_card ]],
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<?php foreach ($items as $item){?>
|
||||
<?php
|
||||
if ( empty($title)){
|
||||
if ( $item[1][0] == $route) {
|
||||
$title = $item[0];
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li role="presentation" class="<?php echo $item[1][0] == $route ? 'active' : '' ?>"><a href="<?php echo Url::toRoute($item[1])?>"><?php echo $item[0] ?></a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
|
||||
<?php if ( !empty($title)) {?>
|
||||
<h1><?php echo $title?></h1>
|
||||
<p>Vendég: <?php echo $card->customer->name ?></p>
|
||||
<p>Kártyaszám: <?php echo $card->number ?></p>
|
||||
<?php }?>
|
||||
Reference in New Issue
Block a user