mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-09-01 19:04:00 +00:00
list pending orders in table format
This commit is contained in:
+2
-1
@@ -254,6 +254,7 @@ Route::get('/pending_orders', function(){
|
||||
$i = 0;
|
||||
foreach ($payments as $payment){
|
||||
$booking = $payment->owner;
|
||||
$bankType = str_word_count($booking->bank->holder_name) > 4 ? 'Company' : 'Personal';
|
||||
echo '<tr>';
|
||||
echo '<td>'.$payment->updated_at->format('d-M-y').'</td>';
|
||||
echo '<td>'.$booking->marking.'</td>';
|
||||
@@ -265,7 +266,7 @@ Route::get('/pending_orders', function(){
|
||||
echo '<td></td>';
|
||||
echo '<td>'.$booking->service->name.'</td>';
|
||||
echo '<td>'.$payment->updated_at->diffForHumans().'</td>';
|
||||
echo '<td>'.str_word_count($booking->bank->holder_name) > 4 ? 'Company' : 'Personal'.'</td>';
|
||||
echo '<td>'.$bankType.'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
|
||||
Reference in New Issue
Block a user