File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ const addMoney=async(user_id,added_money)=>
126126
127127const getTransactions = async ( id ) =>
128128{
129- var transactions = await Transactions . find ( { user_id :id } ) ;
129+ var transactions = await Transaction . find ( { user_id :id } ) ;
130130 return transactions ;
131131}
132132
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <html lang =" en" >
3+ <head >
4+ <meta charset =" UTF-8" >
5+ <meta http-equiv =" X-UA-Compatible" content =" IE=edge" >
6+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" >
7+ <title >Transactions</title >
8+ <% - include (' ../partials/header.ejs' ) %>
9+ </head >
10+ <body >
11+ <% - include (' ../partials/navbar.ejs' )%>
12+ <% - include (' ../partials/alerts.ejs' ) %>
13+ <div class =" container" >
14+ <center ><h1 >Transactions</h1 ></center >
15+ <h3 >Your Transactions:</h3 >
16+ <hr >
17+ <% for (let transaction of transactions){ if (transaction .status === " Completed" ){continue ;}% >
18+ < b> Type< / b> - < %= transaction .type % >< br>
19+ < % if (transaction .booking_id ){ % >
20+ < b> Booking Id< / b> - < %= transaction .booking_id % >< br>
21+ < % } % >
22+ < b> Amount< / b> - < %= transaction .amount % >< br>
23+ < b> Remarks< / b> - < %= transaction .remarks % >< br>
24+ < hr>
25+ < % }if (! transactions){ % >
26+ No transactions Found!
27+ < % } %>
28+ %>
29+ </div >
30+ </body >
31+ <% - include (' ../partials/footer.ejs' ) %>
You can’t perform that action at this time.
0 commit comments