You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

233 lines
12 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
2 years ago
​
​
​
​
​
​
2 years ago
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!-- Pre-loader end -->
  2. <div id="pcoded" class="pcoded">
  3. <div class="pcoded-container">
  4. <!-- Menu header -->
  5. <div class="nav-display">
  6. <nav th:replace="~{fragments/nav-user :: nav}"></nav>
  7. </div>
  8. <!-- Main content -->
  9. <div class="container-fluid" style="margin-top: 4%; padding: 15px;">
  10. <div class="row">
  11. <div class="col-md-12 col-sm-12">
  12. <div class="card" style="width: 90%; max-width: 1060px; margin: 0 auto;">
  13. <div class="card-body">
  14. <!-- Acknowledgement Header -->
  15. <div style="text-align: center; margin-bottom: 20px;">
  16. <span><img src="media\images\logo.png" style="width:30px;height:30px;"></span>
  17. <br>
  18. <h6 style="font-weight: bold; text-decoration: underline;">
  19. <ul style="list-style-type: none; margin: 0; padding: 0;">ACKNOWLEDGEMENT COPY</ul>
  20. </h6>
  21. </div>
  22. <!-- User Details and Payment Details Section -->
  23. <div class="section"
  24. style="display: flex; justify-content: space-between; margin-bottom: 15px;">
  25. <!-- User Details Box -->
  26. <div th:if="${bookingsDetails != null}" class="user-details-box"
  27. style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; width: 48%; background-color: #f9f9f9;">
  28. <h6
  29. style="font-weight: bold;background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">
  30. User Details:</h6>
  31. <p><strong>User Name:</strong> <span id="uName"
  32. th:text="${bookingsDetails.users.name}"></span></p>
  33. <p><strong>User Type:</strong> <span id="uType"
  34. th:text="${bookingsDetails.users.usertype}"></span></p>
  35. <p><strong>Mobile No:</strong> <span id="mobile"
  36. th:text="${bookingsDetails.users.mobileNo}"></span></p>
  37. <p><strong>Email:</strong> <span id="eMail"
  38. th:text="${bookingsDetails.users.email}"></span></p>
  39. </div>
  40. <!-- Payment Details Box -->
  41. <div class="payment-details-box"
  42. style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; width: 48%; background-color: #f9f9f9;">
  43. <h6
  44. style="font-weight: bold; background-color: #404E67; color: white; padding: 8px; border-radius: 5px;">
  45. Payment Details:</h6>
  46. <!-- Check if booking is APPROVED / WAITING_FOR_NOC and payment is Success -->
  47. <div
  48. th:if="${bookingsDetails.payments != null and (bookingsDetails.bookingStatus.name() == 'APPROVED' or bookingsDetails.bookingStatus.name() == 'WAITING_FOR_NOC') and bookingsDetails.payments.paymentStatus == 'Success'}">
  49. <!-- Transaction Id -->
  50. <p><strong>Transaction Id:</strong>
  51. <span
  52. th:text="${bookingsDetails.payments.transactionId != null ? bookingsDetails.payments.transactionId : 'NA'}"></span>
  53. </p>
  54. <!-- Payment Status -->
  55. <p><strong>Payment Status:</strong>
  56. <span
  57. th:text="${bookingsDetails.payments.paymentStatus != null ? bookingsDetails.payments.paymentStatus : 'NA'}"
  58. th:class="${bookingsDetails.payments.paymentStatus == 'Success'} ? 'text-success fw-bold' : 'text-danger fw-bold'"></span>
  59. </p>
  60. <!-- Total Amount Paid -->
  61. <p><strong>Total Amount Paid:</strong>
  62. <span
  63. th:text="${bookingsDetails.payments.amountReceived != null ? '₹ ' + bookingsDetails.payments.amountReceived : 'NA'}"
  64. style="font-weight: bold;"></span>
  65. </p>
  66. </div>
  67. <!-- Display failure message otherwise -->
  68. <div
  69. th:unless="${bookingsDetails.payments != null and (bookingsDetails.bookingStatus.name() == 'APPROVED' or bookingsDetails.bookingStatus.name() == 'WAITING_FOR_NOC') and bookingsDetails.payments.paymentStatus == 'Success'}">
  70. <p><strong>Transaction Id:</strong>
  71. <span
  72. th:text="${bookingsDetails.payments.transactionId != null ? bookingsDetails.payments.transactionId : 'NA'}"></span>
  73. </p>
  74. <p><strong>Payment Status:</strong>
  75. <span class="text-danger fw-bold">Payment Not Confirmed.</span>
  76. </p>
  77. <p class="text-danger fw-bold" style="margin-top: 5px;">
  78. If your amount is debited, it will be refunded with in 7 to 15 working days.
  79. </p>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- Hall Details Section -->
  84. <div class="section" th:if="${bookingsDetails != null}"
  85. style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  86. <h6
  87. style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">
  88. Hall Details:</h6>
  89. <div style="display: flex; justify-content: space-between;">
  90. <div class="hall-details-left" style="width: 48%;">
  91. <p><strong>Zone:</strong> <span id="zone"
  92. th:text="${bookingsDetails.hallDetails.zone}"></span></p>
  93. <p><strong>Division:</strong> <span id="division"
  94. th:text="${bookingsDetails.hallDetails.division}"></span></p>
  95. <p><strong>Hall Name:</strong> <span id="hallname"
  96. th:text="${bookingsDetails.hallDetails.hallId} + '-' + ${bookingsDetails.hallDetails.hallName}"></span>
  97. </p>
  98. <p><strong>Hall Address:</strong> <span id="address">
  99. <span th:text="${bookingsDetails.hallDetails.doorNo}"></span>,
  100. <span th:text="${bookingsDetails.hallDetails.street}"></span>,
  101. <span th:text="${bookingsDetails.hallDetails.area}"></span>,
  102. <span th:text="${bookingsDetails.hallDetails.pinCode}"></span>
  103. </span></p>
  104. </div>
  105. <div class="hall-details-right" style="width: 48%;">
  106. <p><strong>Caretaker Name:</strong> <span
  107. th:text="${bookingsDetails.hallDetails.hallInchargeName}"></span></p>
  108. <p><strong>Caretaker Mobile No:</strong> <span
  109. th:text="${bookingsDetails.hallDetails.hallInchargeMobno}"></span></p>
  110. </div>
  111. </div>
  112. </div>
  113. <!-- Booking Details Section -->
  114. <div class="section" th:if="${bookingsDetails != null}"
  115. style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  116. <h6
  117. style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">
  118. Booking Details:</h6>
  119. <div style="display: flex; justify-content: space-between;">
  120. <div class="booking-details-left" style="width: 48%;">
  121. <p><strong>Booking Id:</strong> <span
  122. th:text="${bookingsDetails.bookingId}"></span></p>
  123. <p><strong>Starting Date:</strong> <span
  124. th:text="${bookingsDetails.startDate}"></span></p>
  125. <p><strong>Starting Slot:</strong> <span
  126. th:text="${bookingsDetails.startingSlot == 1 ? 'Morning' : 'Evening'}"></span>
  127. </p>
  128. <p><strong>No of days Booked:</strong> <span id="bookId"
  129. th:text="${bookingsDetails.noOfDays}"></span></p>
  130. <!-- If the booking status is not 'Refunded', display the booking status -->
  131. <p th:unless="${bookingsDetails.bookingStatus.name() == 'REFUNDED'}">
  132. <strong>Booking Status:</strong>
  133. <span th:text="${bookingsDetails.bookingStatus}"
  134. th:class="${bookingsDetails.bookingStatus.name() == 'APPROVED'} ? 'text-success fw-bold' : 'text-danger fw-bold'">
  135. </span>
  136. </p>
  137. <!-- If booking status is 'Refunded' and refund status is 'Waiting', display refund initiation message -->
  138. <p
  139. th:if="${bookingsDetails.bookingStatus.name() == 'REFUNDED' && bookingsDetails.refundStatus.name() == 'WAITING'}">
  140. <strong>Booking Status:</strong>
  141. <span
  142. style="background-color: red;font-weight: bold; padding: 2px 5px;color:white">FAILURE</span><br><br>
  143. <strong>Refund Status:</strong>
  144. <span
  145. style="background-color: yellow; font-weight: bold; padding: 2px 5px;">Refund
  146. has to be initiated.</span>
  147. </p>
  148. <!-- If booking status is 'Refunded' and refund status is 'Completed', display refund initiated message -->
  149. <p
  150. th:if="${bookingsDetails.bookingStatus.name() == 'REFUNDED' && bookingsDetails.refundStatus.name() == 'COMPLETED'}">
  151. <strong>Booking Status:</strong>
  152. <span
  153. style="background-color: red;font-weight: bold; padding: 2px 5px;color:white">FAILURE</span><br><br>
  154. <strong>Refund Status:</strong>
  155. <span
  156. style="background-color: green; font-weight: bold; padding: 2px 5px;color:white;">Refund
  157. Initiated.</span>
  158. </p>
  159. </div>
  160. <div class="booking-details-right" style="width: 48%;">
  161. <p><strong>Booking Date:</strong> <span
  162. th:text="${bookingsDetails.bookingDate}"></span></p>
  163. <p><strong>Ending Date:</strong> <span
  164. th:text="${bookingsDetails.endDate}"></span></p>
  165. <p><strong>Ending Slot:</strong> <span
  166. th:text="${bookingsDetails.endingSlot == 1 ? 'Morning' : 'Evening'}"></span>
  167. </p>
  168. <p><strong>Comment:</strong> <span th:text="${bookingsDetails.comments}"
  169. th:class="${bookingsDetails.comments == 'Booking Confirmed Successfully'} ? 'text-success fw-bold' : 'text-danger fw-bold'"
  170. class="fw-bold"></span></p>
  171. <p><strong>Reason For Booking:</strong> <span
  172. th:text="${bookingsDetails.reason}"></span></p>
  173. </div>
  174. </div>
  175. <div class="amount-details"
  176. style="display: flex; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px;">
  177. <div class="amount-item" style="flex: 1; text-align: center;">
  178. <p><strong>Rent:</strong> <span
  179. th:text=" '₹ ' + ${bookingsDetails.hallAmount}"></span></p>
  180. </div>
  181. <div class="amount-item" style="flex: 1; text-align: center;">
  182. <p><strong>GST:</strong> <span th:text=" '₹ ' + ${bookingsDetails.gst}"></span>
  183. </p>
  184. </div>
  185. <div class="amount-item" style="flex: 1; text-align: center;">
  186. <p><strong>Deposit:</strong> <span
  187. th:text=" '₹ ' + ${bookingsDetails.depositAmount}"></span></p>
  188. </div>
  189. <div class="amount-item" style="flex: 1; text-align: center;">
  190. <p><strong>Total:</strong> <span style="font-weight: bold;"
  191. th:text=" '₹ ' + ${bookingsDetails.amountReceived}"></span></p>
  192. </div>
  193. </div>
  194. </div>
  195. <!-- Computer Generated Note
  196. <div class="generated-note" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; background-color: #f9f9f9;"> -->
  197. <h6 style="text-align:center;font-size:11px;">* This is a computer-generated document. No
  198. signature is required *</h6>
  199. <p><span id="generatedDate" style="font-size:10px;"></span></p>
  200. </div>
  201. </div>
  202. <!-- Buttons -->
  203. <div class="button-container" th:if="${bookingsDetails != null}"
  204. style="display: flex; justify-content: flex-end; margin-top: 20px;">
  205. <button class="btn btn-success" th:onclick="printTables([[${bookingsDetails.bookingId}]])"
  206. style="background: #FB6340;">Download</button>
  207. <button class="btn btn-success" th:onclick="return redirect([[${bookingsDetails.bookingtype}]])"
  208. style="background: rgb(21, 68, 92); border-radius: 5px; padding: 8px 16px;">Back to
  209. Home</button>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>