AK
Size: a a a
AK
С
AK
AK
С
P
P
P
С
С
С
P
F
F
$prices = array_filter($services, function ($item) use ($row) {
return $item->pid == $row->id;
});
if (count($prices) > 0) {
$pricelist .= '<table class="table table-striped table-bordered table-hover"><tbody>';
$pricelist .= implode('', array_map(function ($item) {
$html = '<tr>';
$html .= "<td>{$item->name}</td>";
if($item->discount!=0){
$html .= "<td><s>{$item->price}</s> <span class='discount-price'>{$item->price_with_discount} руб.</span></td>";
}
else{
$html .= "<td>{$item->price} руб.</td>";
};
$html .= '</tr>';
return $html;
}, $prices));
$result = [];
$pricelist .= '</tbody></table>';
}
F
BT