pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 11:51:34 +08:00
parent 4494fcbc53
commit debc53b195
+1
View File
@@ -101,6 +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->user);
echo "<h3>".$customer."(".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>";