revert fixed pending_orders table

This commit is contained in:
edmondlang
2024-08-07 18:27:58 +08:00
parent 8a0005aa17
commit f58dea32ac
+19 -29
View File
@@ -403,32 +403,24 @@ Route::get('/pending_orders', function(){
->orderBy('updated_at', 'desc') ->orderBy('updated_at', 'desc')
->get(); ->get();
echo ' echo '<table border="1">';
<style> // echo '<thead>';
table { border-collapse: collapse; } // echo '<tr>';
td, th { border-left: 1px solid black;} // echo '<th>Client Booking Date</th>';
td:first-child, th:first-child { border-left: none; } // echo '<th>Payment Type</th>';
</style>'; // echo '<th>Marking</th>';
echo '<table class="pending_orders">'; // echo '<th>Customer Payment Currency</th>';
echo '<thead>'; // echo '<th>Customer Payment Amount</th>';
echo '<tr>'; // echo '<th>Reference No.</th>';
echo '<th>Booking Updated Date</th>'; // echo '<th>Booking Amount Currency</th>';
echo '<th>Booking</th>'; // echo '<th>CNY</th>';
echo '<th>Payment Type</th>'; // echo '<th>Service</th>';
echo '<th>Payment Currency</th>'; // echo '<th>Days</th>';
echo '<th>Payment Amount</th>'; // echo '<th>Cust Supplier Acc Type</th>';
echo '<th>Customer</th>'; // echo '<th>Cust Supplier Acc Name</th>';
echo '<th></th>'; // echo '</tr>';
echo '<th>Booking Currency</th>'; // echo '</thead>';
echo '<th>Booking Amount</th>'; // echo '<tbody>';
echo '<th></th>';
echo '<th>Service</th>';
echo '<th>Payment Updated</th>';
echo '<th>Cust Supplier Acc Type</th>';
echo '<th>Cust Supplier Acc Name</th>';
echo '</tr>';
echo '</thead>';
echo '<tbody>';
$i = 0; $i = 0;
foreach ($payments as $payment){ foreach ($payments as $payment){
$booking = $payment->owner; $booking = $payment->owner;
@@ -446,15 +438,13 @@ Route::get('/pending_orders', function(){
echo '<tr>'; echo '<tr>';
echo '<td>'.$payment->updated_at->format('d-M-y').'</td>'; echo '<td>'.$payment->updated_at->format('d-M-y').'</td>';
echo '<td>'.$booking->marking.'</td>';
echo '<td>'.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].'</td>'; echo '<td>'.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].'</td>';
echo '<td>'.$booking->marking.'</td>';
echo '<td>'.$payment->currency->short_code.'</td>'; echo '<td>'.$payment->currency->short_code.'</td>';
echo '<td>'.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').'</td>'; echo '<td>'.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').'</td>';
echo '<td>'.$booking->company->reference.'</td>'; echo '<td>'.$booking->company->reference.'</td>';
echo '<td></td>';
echo '<td>'.$payment->original_currency->short_code.'</td>'; echo '<td>'.$payment->original_currency->short_code.'</td>';
echo '<td>'.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').'</td>'; echo '<td>'.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').'</td>';
echo '<td></td>';
echo '<td>'.$booking->service->name.'</td>'; echo '<td>'.$booking->service->name.'</td>';
echo '<td>'.$payment->updated_at->diffForHumans().'</td>'; echo '<td>'.$payment->updated_at->diffForHumans().'</td>';
echo '<td>'.$bankType.'</td>'; echo '<td>'.$bankType.'</td>';