manual payments list

This commit is contained in:
omair saleh
2022-08-24 16:07:27 +08:00
parent b1414dc42a
commit 3d28673242
+14
View File
@@ -361,3 +361,17 @@ Route::get('/wallets/active', function(){
echo '</table>';
});
Route::get('/payments/manual', function(){
$payments = Transaction::where('type', TransactionType::PAYMENT)->where('owner_type', Booking::class)->get();
echo '<table>';
foreach ($payments as $payment){
echo '<tr>';
echo '<td>'.$payment->documents()->first()->created_at.'</td>';
echo '<td><a href="'.route('booking.details', $payment->owner->marking).'" target="_blank">'.$payment->owner->marking.'</a></td>';
echo '<td>'.$payment->amount.'</td>';
echo '</tr>';
}
echo '</table>';
});