Victoria Hall Booking for Events
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.

218 lines
11 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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 payments is not null -->
  47. <div th:if="${bookingsDetails.payments != null}">
  48. <!-- Transaction Id -->
  49. <p><strong>Transaction Id:</strong>
  50. <span
  51. th:text="${bookingsDetails.payments.transactionId != null ? bookingsDetails.payments.transactionId : 'NA'}"></span>
  52. </p>
  53. <!-- Payment Status -->
  54. <p><strong>Payment Status:</strong>
  55. <span
  56. th:text="${bookingsDetails.payments.paymentStatus != null ? bookingsDetails.payments.paymentStatus : 'NA'}"
  57. th:class="${bookingsDetails.payments.paymentStatus == 'Success'} ? 'text-success fw-bold' : 'text-danger fw-bold'"></span>
  58. </p>
  59. <!-- Total Amount Paid -->
  60. <p><strong>Total Amount Paid:</strong>
  61. <span
  62. th:text="${bookingsDetails.payments.amountReceived != null ? '₹ ' + bookingsDetails.payments.amountReceived : 'NA'}"
  63. style="font-weight: bold;"></span>
  64. </p>
  65. </div>
  66. <!-- Display NA if payments is null -->
  67. <div th:if="${bookingsDetails.payments == null}">
  68. <p><strong>Transaction Id:</strong> <span>NA</span></p>
  69. <p><strong>Payment Status:</strong> <span>NA</span></p>
  70. <p><strong>Total Amount Paid:</strong> <span>NA</span></p>
  71. </div>
  72. </div>
  73. </div>
  74. <!-- Hall Details Section -->
  75. <div class="section" th:if="${bookingsDetails != null}"
  76. style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  77. <h6
  78. style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">
  79. Hall Details:</h6>
  80. <div style="display: flex; justify-content: space-between;">
  81. <div class="hall-details-left" style="width: 48%;">
  82. <p><strong>Zone:</strong> <span id="zone"
  83. th:text="${bookingsDetails.hallDetails.zone}"></span></p>
  84. <p><strong>Division:</strong> <span id="division"
  85. th:text="${bookingsDetails.hallDetails.division}"></span></p>
  86. <p><strong>Hall Name:</strong> <span id="hallname"
  87. th:text="${bookingsDetails.hallDetails.hallId} + '-' + ${bookingsDetails.hallDetails.hallName}"></span>
  88. </p>
  89. <p><strong>Hall Address:</strong> <span id="address">
  90. <span th:text="${bookingsDetails.hallDetails.doorNo}"></span>,
  91. <span th:text="${bookingsDetails.hallDetails.street}"></span>,
  92. <span th:text="${bookingsDetails.hallDetails.area}"></span>,
  93. <span th:text="${bookingsDetails.hallDetails.pinCode}"></span>
  94. </span></p>
  95. </div>
  96. <div class="hall-details-right" style="width: 48%;">
  97. <p><strong>Caretaker Name:</strong> <span
  98. th:text="${bookingsDetails.hallDetails.hallInchargeName}"></span></p>
  99. <p><strong>Caretaker Mobile No:</strong> <span
  100. th:text="${bookingsDetails.hallDetails.hallInchargeMobno}"></span></p>
  101. </div>
  102. </div>
  103. </div>
  104. <!-- Booking Details Section -->
  105. <div class="section" th:if="${bookingsDetails != null}"
  106. style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  107. <h6
  108. style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">
  109. Booking Details:</h6>
  110. <div style="display: flex; justify-content: space-between;">
  111. <div class="booking-details-left" style="width: 48%;">
  112. <p><strong>Booking Id:</strong> <span
  113. th:text="${bookingsDetails.bookingId}"></span></p>
  114. <p><strong>Starting Date:</strong> <span
  115. th:text="${bookingsDetails.startDate}"></span></p>
  116. <p><strong>Starting Slot:</strong> <span
  117. th:text="${bookingsDetails.startingSlot == 1 ? 'Evening' : 'Evening'}"></span>
  118. </p>
  119. <p><strong>No of days Booked:</strong> <span id="bookId"
  120. th:text="${bookingsDetails.noOfDays}"></span></p>
  121. <!-- If the booking status is not 'Refunded', display the booking status -->
  122. <p th:unless="${bookingsDetails.bookingStatus.name() == 'REFUNDED'}">
  123. <strong>Booking Status:</strong>
  124. <span th:text="${bookingsDetails.bookingStatus}"
  125. th:class="${bookingsDetails.bookingStatus.name() == 'APPROVED'} ? 'text-success fw-bold' : 'text-danger fw-bold'">
  126. </span>
  127. </p>
  128. <!-- If booking status is 'Refunded' and refund status is 'Waiting', display refund initiation message -->
  129. <p
  130. th:if="${bookingsDetails.bookingStatus.name() == 'REFUNDED' && bookingsDetails.refundStatus.name() == 'WAITING'}">
  131. <strong>Booking Status:</strong>
  132. <span style="background-color: red;font-weight: bold; padding: 2px 5px;color:white">FAILURE</span><br><br>
  133. <strong>Refund Status:</strong>
  134. <span style="background-color: yellow; font-weight: bold; padding: 2px 5px;">Refund has to be initiated.</span>
  135. </p>
  136. <!-- If booking status is 'Refunded' and refund status is 'Completed', display refund initiated message -->
  137. <p
  138. th:if="${bookingsDetails.bookingStatus.name() == 'REFUNDED' && bookingsDetails.refundStatus.name() == 'COMPLETED'}">
  139. <strong>Booking Status:</strong>
  140. <span style="background-color: red;font-weight: bold; padding: 2px 5px;color:white">FAILURE</span><br><br>
  141. <strong>Refund Status:</strong>
  142. <span style="background-color: green; font-weight: bold; padding: 2px 5px;color:white;">Refund Initiated.</span>
  143. </p>
  144. </div>
  145. <div class="booking-details-right" style="width: 48%;">
  146. <p><strong>Booking Date:</strong> <span
  147. th:text="${bookingsDetails.bookingDate}"></span></p>
  148. <p><strong>Ending Date:</strong> <span
  149. th:text="${bookingsDetails.endDate}"></span></p>
  150. <p><strong>Ending Slot:</strong> <span
  151. th:text="${bookingsDetails.endingSlot == 1 ? 'Evening' : 'Evening'}"></span>
  152. </p>
  153. <p><strong>Comment:</strong> <span th:text="${bookingsDetails.comments}"
  154. th:class="${bookingsDetails.comments == 'Booking Confirmed Successfully'} ? 'text-success fw-bold' : 'text-danger fw-bold'"
  155. class="fw-bold"></span></p>
  156. <p><strong>Reason For Booking:</strong> <span
  157. th:text="${bookingsDetails.reason}"></span></p>
  158. </div>
  159. </div>
  160. <div class="amount-details"
  161. style="display: flex; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px;">
  162. <div class="amount-item" style="flex: 1; text-align: center;">
  163. <p><strong>Rent:</strong> <span
  164. th:text=" '₹ ' + ${bookingsDetails.hallAmount}"></span></p>
  165. </div>
  166. <div class="amount-item" style="flex: 1; text-align: center;">
  167. <p><strong>GST:</strong> <span th:text=" '₹ ' + ${bookingsDetails.gst}"></span>
  168. </p>
  169. </div>
  170. <div class="amount-item" style="flex: 1; text-align: center;">
  171. <p><strong>Deposit:</strong> <span
  172. th:text=" '₹ ' + ${bookingsDetails.depositAmount}"></span></p>
  173. </div>
  174. <div class="amount-item" style="flex: 1; text-align: center;">
  175. <p><strong>Total:</strong> <span style="font-weight: bold;"
  176. th:text=" '₹ ' + ${bookingsDetails.amountReceived}"></span></p>
  177. </div>
  178. </div>
  179. </div>
  180. <!-- Computer Generated Note
  181. <div class="generated-note" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; background-color: #f9f9f9;"> -->
  182. <h6 style="text-align:center;font-size:11px;">* This is a computer-generated document. No
  183. signature is required *</h6>
  184. <p><span id="generatedDate" style="font-size:10px;"></span></p>
  185. </div>
  186. </div>
  187. <!-- Buttons -->
  188. <div class="button-container" th:if="${bookingsDetails != null}"
  189. style="display: flex; justify-content: flex-end; margin-top: 20px;">
  190. <button class="btn btn-success" th:onclick="printTables([[${bookingsDetails.bookingRefId}]])"
  191. style="background: #FB6340;">Download</button>
  192. <button class="btn btn-success" th:onclick="return redirect([[${bookingsDetails.bookingtype}]])"
  193. style="background: rgb(21, 68, 92); border-radius: 5px; padding: 8px 16px;">Back to
  194. Home</button>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>