<?php
$result = $products
->Where(fn($x) => str_contains($x->Category, "smart"))
->Where(fn($x) => $x->Price > 500 && $x->Price < 1800)
->OrderBy(fn($x) => $x->Price)
->Skip(1)->Take(2)
->Map(fn($x) => "$x->Name, [ $x->Price ]");
?>
<ul>
<?php foreach($result as $p) { ?>
<li> <?= $p ?> </li>
<?php } ?>
</ul>