pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 18:14:34 +08:00
parent c26b41314c
commit 8664e1e189
+3
View File
@@ -103,9 +103,12 @@ Route::group(['middleware' => ['role:admin']], function() {
echo "<h1>Total Customers: <b>".count($customers)."</b></h1>";
echo "<h1>Total Po Pending Customer Update: <b>".count($bookings)."</b></h1>";
foreach ($customers as $customer => $bookings) {
$i = 0;
echo "<h3>".$bookings[0]->user->marking."(".count($bookings).")</h3><br>";
foreach ($bookings as $booking) {
$i += 1;
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a> / <small style='color: darkgrey;'>".$booking->created_at."</small> <small style='color: dodgerblue;' href=''>https://exchange.cief-malaysia.com/booking/". $booking->id . "/upload-po</small><br>";
if($i % 20 == 0) echo "<br><br>";
}
echo "<br><br><br>";
}