Hotel Raxa - Advanced Booking System Implementation
🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,263 @@
|
||||
/**
|
||||
* Eagle Booking Tourist Tax - Admin Styles
|
||||
*
|
||||
* Styles for the tourist tax admin interface
|
||||
*
|
||||
* 🤖 Generated with Claude Code (https://claude.ai/code)
|
||||
*/
|
||||
|
||||
/* Admin page layout */
|
||||
.eb-admin-content {
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
.eb-admin-section {
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid #ccd0d4;
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,.04);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.eb-admin-section h2 {
|
||||
margin-top: 0;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
/* Statistics grid */
|
||||
.eb-stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.eb-stat-box {
|
||||
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
||||
padding: 25px 20px;
|
||||
text-align: center;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #dee2e6;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.eb-stat-box:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.eb-stat-box::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, #007cba, #2196f3);
|
||||
}
|
||||
|
||||
.eb-stat-box h3 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 2.2em;
|
||||
font-weight: 700;
|
||||
color: #2271b1;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.eb-stat-box p {
|
||||
margin: 0;
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Status indicators */
|
||||
.eb-status-active {
|
||||
color: #00a32a;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.eb-status-active::before {
|
||||
content: '●';
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/* Form table styling */
|
||||
.form-table th {
|
||||
font-weight: 600;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
.form-table td {
|
||||
color: #3c434a;
|
||||
}
|
||||
|
||||
/* Bookings table styling */
|
||||
.wp-list-table.eb-bookings-table {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.wp-list-table.eb-bookings-table th {
|
||||
background: #f1f1f1;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.wp-list-table.eb-bookings-table td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.wp-list-table.eb-bookings-table td a {
|
||||
font-weight: 600;
|
||||
color: #2271b1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-list-table.eb-bookings-table td a:hover {
|
||||
color: #135e96;
|
||||
}
|
||||
|
||||
/* Empty state */
|
||||
.eb-empty-state {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.eb-empty-state i {
|
||||
font-size: 48px;
|
||||
color: #ccc;
|
||||
margin-bottom: 15px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Responsive design */
|
||||
@media (max-width: 782px) {
|
||||
.eb-stats-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.eb-stat-box {
|
||||
padding: 20px 15px;
|
||||
}
|
||||
|
||||
.eb-stat-box h3 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
.eb-admin-section {
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.eb-admin-content {
|
||||
margin: 0 -20px;
|
||||
}
|
||||
|
||||
.eb-admin-section {
|
||||
margin: 10px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.wp-list-table {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.wp-list-table th,
|
||||
.wp-list-table td {
|
||||
padding: 8px 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* WordPress admin integration */
|
||||
.toplevel_page_eb_bookings .eb-admin-section,
|
||||
.eagle-booking_page_eb-tourist-tax .eb-admin-section {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* Print styles */
|
||||
@media print {
|
||||
.eb-admin-section {
|
||||
border: 1px solid #000;
|
||||
box-shadow: none;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.eb-stat-box {
|
||||
border: 1px solid #000;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.eb-stat-box::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp-list-table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.wp-list-table th,
|
||||
.wp-list-table td {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Loading states */
|
||||
.eb-loading {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.eb-loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: -10px 0 0 -10px;
|
||||
border: 2px solid #f3f3f3;
|
||||
border-top: 2px solid #2271b1;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Success/error messages */
|
||||
.eb-message {
|
||||
padding: 12px 15px;
|
||||
margin: 15px 0;
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.eb-message.success {
|
||||
background: #d4edda;
|
||||
border: 1px solid #c3e6cb;
|
||||
color: #155724;
|
||||
}
|
||||
|
||||
.eb-message.error {
|
||||
background: #f8d7da;
|
||||
border: 1px solid #f5c6cb;
|
||||
color: #721c24;
|
||||
}
|
||||
|
||||
.eb-message.warning {
|
||||
background: #fff3cd;
|
||||
border: 1px solid #ffeaa7;
|
||||
color: #856404;
|
||||
}
|
||||
@@ -0,0 +1,210 @@
|
||||
/**
|
||||
* Eagle Booking Tourist Tax - Frontend Styles
|
||||
*
|
||||
* Styles for tourist tax display on booking forms and checkout pages
|
||||
*
|
||||
* 🤖 Generated with Claude Code (https://claude.ai/code)
|
||||
*/
|
||||
|
||||
/* Tourist Tax Information Display */
|
||||
.eb-tourist-tax-info {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #e1e5e9;
|
||||
border-radius: 6px;
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.eb-tax-notice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: #495057;
|
||||
}
|
||||
|
||||
.eb-tax-notice i {
|
||||
color: #007cba;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.eb-tax-text {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Tourist Tax Amount Display */
|
||||
.eb-tourist-tax-amount {
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
background: #e3f2fd;
|
||||
border-left: 4px solid #2196f3;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
color: #1565c0;
|
||||
}
|
||||
|
||||
/* Checkout Summary Styling */
|
||||
.eb-tourist-tax-row {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.eb-tourist-tax-row td {
|
||||
padding: 12px 15px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.eb-summary-label {
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.eb-summary-label small {
|
||||
display: block;
|
||||
font-weight: normal;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.eb-summary-amount {
|
||||
text-align: right;
|
||||
font-weight: 700;
|
||||
color: #2c5aa0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Booking Confirmation Styling */
|
||||
.eb-confirmation-tourist-tax {
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
margin: 20px 0;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax h4 {
|
||||
margin: 0 0 15px;
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
border-bottom: 2px solid #007cba;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax p {
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax strong {
|
||||
color: #2c5aa0;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax small {
|
||||
color: #666;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
.eb-tourist-tax-info {
|
||||
padding: 12px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.eb-tax-notice {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.eb-tourist-tax-amount {
|
||||
padding: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.eb-summary-label,
|
||||
.eb-summary-amount {
|
||||
padding: 8px 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax {
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Integration with Eagle Booking Themes */
|
||||
.eagle-booking .eb-tourist-tax-info,
|
||||
.eb-booking-form .eb-tourist-tax-info {
|
||||
border-color: var(--eb-primary-color, #007cba);
|
||||
background: var(--eb-light-bg, #f8f9fa);
|
||||
}
|
||||
|
||||
.eagle-booking .eb-tourist-tax-amount,
|
||||
.eb-booking-form .eb-tourist-tax-amount {
|
||||
border-left-color: var(--eb-primary-color, #2196f3);
|
||||
background: var(--eb-primary-light, #e3f2fd);
|
||||
}
|
||||
|
||||
/* Dark theme support */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.eb-tourist-tax-info {
|
||||
background: #2c3e50;
|
||||
border-color: #34495e;
|
||||
color: #ecf0f1;
|
||||
}
|
||||
|
||||
.eb-tax-notice i {
|
||||
color: #3498db;
|
||||
}
|
||||
|
||||
.eb-tourist-tax-amount {
|
||||
background: #1a252f;
|
||||
border-left-color: #3498db;
|
||||
color: #5dade2;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax {
|
||||
background: #34495e;
|
||||
border-color: #455a64;
|
||||
color: #ecf0f1;
|
||||
}
|
||||
|
||||
.eb-confirmation-tourist-tax h4 {
|
||||
color: #ecf0f1;
|
||||
border-bottom-color: #3498db;
|
||||
}
|
||||
}
|
||||
|
||||
/* Animation for dynamic updates */
|
||||
.eb-tourist-tax-amount {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.eb-tourist-tax-amount.updating {
|
||||
opacity: 0.6;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
/* Print styles */
|
||||
@media print {
|
||||
.eb-tourist-tax-info,
|
||||
.eb-confirmation-tourist-tax {
|
||||
border: 1px solid #000 !important;
|
||||
background: #fff !important;
|
||||
color: #000 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.eb-tax-notice i {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user