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.

151 lines
9.8 KiB

1 year 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;">COLLECTION PENDING ACKNOWLEDGEMENT COPY</ul>
  20. </h6>
  21. </div>
  22. <!-- User Details and Payment Details Section -->
  23. <div class="section" style="display: flex; justify-content: space-between; margin-bottom: 15px;">
  24. <!-- User Details Box -->
  25. <div th:if="${bookingsDetails != null}" class="user-details-box" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; width: 48%; background-color: #f9f9f9;">
  26. <h6 style="font-weight: bold;background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">User Details:</h6>
  27. <p><strong>User Name:</strong> <span id="uName" th:text="${bookingsDetails.users.name}"></span></p>
  28. <p><strong>User Type:</strong> <span id="uType" th:text="${bookingsDetails.users.usertype}"></span></p>
  29. <p><strong>Mobile No:</strong> <span id="mobile" th:text="${bookingsDetails.users.mobileNo}"></span></p>
  30. <p><strong>Email:</strong> <span id="eMail" th:text="${bookingsDetails.users.email}"></span></p>
  31. </div>
  32. <!-- Payment Details Box -->
  33. <div class="payment-details-box" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; width: 48%; background-color: #f9f9f9;">
  34. <h6 style="font-weight: bold; background-color: #404E67; color: white; padding: 8px; border-radius: 5px;">Payment Details:</h6>
  35. <!-- Check if payments is not null -->
  36. <div th:if="${bookingsDetails.extrapayments != null}">
  37. <!-- Transaction Id -->
  38. <p><strong>Transaction Id:</strong>
  39. <span th:text="${bookingsDetails.extrapayments.transactionId != null ? bookingsDetails.extrapayments.transactionId : 'NA'}"></span>
  40. </p>
  41. <!-- Payment Status -->
  42. <p><strong>Payment Status:</strong>
  43. <span th:text="${bookingsDetails.extrapayments.paymentStatus != null ? bookingsDetails.extrapayments.paymentStatus : 'NA'}"
  44. th:class="${bookingsDetails.extrapayments.paymentStatus == 'Success'} ? 'text-success fw-bold' : 'text-danger fw-bold'"></span>
  45. </p>
  46. <!-- Total Amount Paid -->
  47. <p><strong>Total Amount Paid:</strong>
  48. <span th:text="${bookingsDetails.extrapayments.amountReceived != null ? '₹ ' + bookingsDetails.extrapayments.amountReceived : 'NA'}"
  49. style="font-weight: bold;"></span>
  50. </p>
  51. </div>
  52. <!-- Display NA if payments is null -->
  53. <div th:if="${bookingsDetails.extrapayments == null}">
  54. <p><strong>Transaction Id:</strong> <span>NA</span></p>
  55. <p><strong>Payment Status:</strong> <span>NA</span></p>
  56. <p><strong>Total Amount Paid:</strong> <span>NA</span></p>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="section" th:if="${bookingsDetails != null}" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  61. <h6 style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">Collection Pending Details:</h6>
  62. <div style="display: flex; justify-content: space-between;">
  63. <div class="hall-details-left" style="width: 48%;">
  64. <p><strong>Deposite Amount:</strong> <span id="deposiamount" th:text="${bookingsDetails.depositAmount}"></span></p>
  65. <p><strong>EB Amount:</strong> <span id="ebAmount" th:text="${bookingsDetails.settlement.ebAmount}"></span></p>
  66. <p><strong>Damage Amount:</strong> <span id="DamageAmount" th:text="${bookingsDetails.settlement.damageAmount}"></span></p>
  67. <p><strong>Collection Pending Amount:</strong> <span id="collectionPending">
  68. <span th:text="${bookingsDetails.settlement.collectionPending}"></span>
  69. </span></p>
  70. <p><strong>Collection Pending Status:</strong> <span id="collectionPendingstatus">
  71. <span th:text="${bookingsDetails.settlement.collectionStatus}"></span>
  72. </span></p>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- Hall Details Section -->
  77. <div class="section" th:if="${bookingsDetails != null}" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  78. <h6 style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">Hall Details:</h6>
  79. <div style="display: flex; justify-content: space-between;">
  80. <div class="hall-details-left" style="width: 48%;">
  81. <p><strong>Zone:</strong> <span id="zone" th:text="${bookingsDetails.hallDetails.zone}"></span></p>
  82. <p><strong>Division:</strong> <span id="division" th:text="${bookingsDetails.hallDetails.division}"></span></p>
  83. <p><strong>Hall Name:</strong> <span id="hallname" th:text="${bookingsDetails.hallDetails.hallId} + '-' + ${bookingsDetails.hallDetails.hallName}"></span></p>
  84. <p><strong>Hall Address:</strong> <span id="address">
  85. <span th:text="${bookingsDetails.hallDetails.doorNo}"></span>,
  86. <span th:text="${bookingsDetails.hallDetails.street}"></span>,
  87. <span th:text="${bookingsDetails.hallDetails.area}"></span>,
  88. <span th:text="${bookingsDetails.hallDetails.pinCode}"></span>
  89. </span></p>
  90. </div>
  91. <div class="hall-details-right" style="width: 48%;">
  92. <p><strong>Caretaker Name:</strong> <span th:text="${bookingsDetails.hallDetails.hallInchargeName}"></span></p>
  93. <p><strong>Caretaker Mobile No:</strong> <span th:text="${bookingsDetails.hallDetails.hallInchargeMobno}"></span></p>
  94. </div>
  95. </div>
  96. </div>
  97. <!-- Booking Details Section -->
  98. <div class="section" th:if="${bookingsDetails != null}" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 15px; background-color: #f9f9f9;">
  99. <h6 style="font-weight: bold; background-color: #404E67;color: white; padding: 8px; border-radius: 5px;">Booking Details:</h6>
  100. <div style="display: flex; justify-content: space-between;">
  101. <div class="booking-details-left" style="width: 48%;">
  102. <p><strong>Booking Id:</strong> <span th:text="${bookingsDetails.bookingId}"></span></p>
  103. <p><strong>Starting Date:</strong> <span th:text="${bookingsDetails.startDate}"></span></p>
  104. <p><strong>Starting Slot:</strong> <span th:text="${bookingsDetails.startingSlot == 1 ? 'Morning' : 'Evening'}"></span></p>
  105. <p><strong>No of days Booked:</strong> <span id="bookId" th:text="${bookingsDetails.noOfDays}"></span></p>
  106. <p><strong>Booking Status:</strong>
  107. <span th:text="${bookingsDetails.bookingStatus}"
  108. th:class="${bookingsDetails.bookingStatus.name() == 'APPROVED'} ? 'text-success fw-bold' : 'text-danger fw-bold'">
  109. </span>
  110. </p>
  111. </div>
  112. <div class="booking-details-right" style="width: 48%;">
  113. <p><strong>Booking Date:</strong> <span th:text="${bookingsDetails.bookingDate}"></span></p>
  114. <p><strong>Ending Date:</strong> <span th:text="${bookingsDetails.endDate}"></span></p>
  115. <p><strong>Ending Slot:</strong> <span th:text="${bookingsDetails.endingSlot == 1 ? 'Morning' : 'Evening'}"></span></p>
  116. <p><strong>Comment:</strong> <span th:text="${bookingsDetails.comments}"
  117. th:class="${bookingsDetails.comments == 'Booking Confirmed Successfully'} ? 'text-success fw-bold' : 'text-danger fw-bold'" class="fw-bold"></span></p>
  118. <p><strong>Reason For Booking:</strong> <span th:text="${bookingsDetails.reason}"></span></p>
  119. </div>
  120. </div>
  121. </div>
  122. <!-- Computer Generated Note
  123. <div class="generated-note" style="border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; background-color: #f9f9f9;"> -->
  124. <h6 style="text-align:center;font-size:11px;">* This is a computer-generated document. No signature is required *</h6>
  125. <p><span id="generatedDate" style="font-size:10px;"></span></p>
  126. </div>
  127. </div>
  128. <!-- Buttons -->
  129. <div class="button-container" th:if="${bookingsDetails != null}" style="display: flex; justify-content: flex-end; margin-top: 20px;">
  130. <button class="btn btn-success" th:onclick="printTables([[${bookingsDetails.bookingId}]])" style="background: #FB6340;">Download</button>
  131. <button class="btn btn-success" th:onclick="return redirect([[${bookingsDetails.bookingtype}]])" style="background: rgb(21, 68, 92); border-radius: 5px; padding: 8px 16px;">Back to Home</button>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>