<tr v-for="value in products.productsdiscounted.product">
<td >{{value['@attributes'].id}}</td>
<td>{{value.indeks}}</td>
<td>{{value.name}}</td>
<td>{{value.ean ?? ''}}</td>
<td>{{value.mainprice}}</td>
<td>{{value.eshopprice}}</td>
<td>{{value.discount}}</td>
<?php
function getMenu()
{
$mainMenu = [
[
'title' => 'Главная',
'path' => '/',
'sort' => 1,
],
[
'title' => 'Каталог',
'path' => '/templates/catalog/',
'sort' => 2,
],
[
'title' => 'Сидки',
'path' => '/templates/discounts/',
'sort' => 3,
],
[
'title' => 'О нас',
'path' => '/templates/about/',
'sort' => 4,
],
];
return $mainMenu;
}
<?php
function isAuth() {
$sessionName = $_SESSION['user_email'];
if ($sessionName) {
return true;
}
return false;
}