pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 11:54:39 +08:00
parent 2770200fd6
commit 66b19c0591
+1 -2
View File
@@ -101,8 +101,7 @@ Route::group(['middleware' => ['role:admin']], function() {
});
echo "<h1>Total Po Pending Customer Update: <b>".count($bookings)."</b></h1>";
foreach ($customers as $customer => $bookings) {
dd($bookings);
echo "<h3>".$customer."(".count($bookings).")</h3><br>";
echo "<h3>".$bookings[0]->user->marking."(".count($bookings).")</h3><br>";
foreach ($bookings as $booking) {
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a> <small style='color: red;'>".$booking->user->marking."</small> / <small style='color: darkgrey;'>".$booking->created_at."</small><br>";
}