|
|
@@ -0,0 +1,26 @@
|
|
|
+<div class="container pt-3 my-4">
|
|
|
+ <h2>Select Customer</h2>
|
|
|
+
|
|
|
+ <div class="list-group">
|
|
|
+ <?php
|
|
|
+
|
|
|
+ $uri = $_SERVER["REQUEST_URI"];
|
|
|
+ $uri_parts = explode("?", $uri);
|
|
|
+ $path = array_shift($uri_parts);
|
|
|
+
|
|
|
+ foreach($customers as $customer) {
|
|
|
+ $query = $_GET;
|
|
|
+ unset($query["path"]);
|
|
|
+ $query["customer_id"] = $customer->id;
|
|
|
+
|
|
|
+
|
|
|
+ ?>
|
|
|
+ <a class="list-group-item list-group-item-action" href="<?=htmlspecialchars($path)?>?<?=http_build_query($query)?>">
|
|
|
+ <?=htmlspecialchars($customer->name)?>
|
|
|
+ </a>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+
|
|
|
+</div>
|