update rfm to table

This commit is contained in:
omair saleh
2022-03-18 16:16:25 +08:00
parent fb6b2173b5
commit aa1ba03415
+1 -2
View File
@@ -304,6 +304,7 @@ Route::get('/customers/active/{active_start}/{active_end}/{inactive_start?}/{ina
<th>Number of Orders</th>
<th>CBM</th>
</tr>';
foreach ($companies as $key => $company){
$connection = $company->inviters()->withPivot('invitee_reference')->first();
$marking = $connection ? $connection->pivot->invitee_reference:'';
@@ -317,8 +318,6 @@ Route::get('/customers/active/{active_start}/{active_end}/{inactive_start?}/{ina
});
}
$totalCbm = ($with_cbm ? '['. $packingList->count().'] ('. $totalCbm .')' : '');
echo '<tr>
<td>'.$key.'</td>
<td><a href="'.route('customer.profile', $marking).'" target="_blank">'.$marking.'</a></td>