code/resources/views/commons/orderslist.blade.php
<?php
$params = [
'identifier' => 'booking-list',
'items' => $orders,
'url' => 'bookings',
'header_function' => 'printableUserHeader',
];
if (isset($no_legend) == false) {
$params['legend'] = (object)[
'class' => App\Aggregate::class
];
}
?>
@include('commons.loadablelist', $params)