_booking_tile.php
1 week ago
_bundle_tile.php
1 year ago
_order_tile.php
2 months ago
dashboard.php
2 months ago
login.php
9 months ago
password_reset_form.php
2 months ago
request_password_reset_token.php
2 months ago
scheduling_summary_for_bundle.php
1 year ago
view_booking_summary_in_lightbox.php
1 year ago
view_order_summary_in_lightbox.php
1 year ago
_bundle_tile.php
43 lines
| 1 | <?php |
| 2 | /** @var $bundle OsBundleModel */ |
| 3 | /** @var $order_item OsOrderItemModel */ |
| 4 | /** @var $bundle_services_with_booked_count OsServiceModel[] */ |
| 5 | /** @var $order OsOrderModel */ |
| 6 | |
| 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | exit; // Exit if accessed directly |
| 9 | } |
| 10 | ?> |
| 11 | <div class="customer-bundle-tile"> |
| 12 | <div class="customer-bundle-tile-inner"> |
| 13 | <div class="bundle-main-info-wrapper"> |
| 14 | <div class="bundle-main-info"> |
| 15 | <h6 class="bundle-name"><?php echo esc_html($bundle->name); ?></h6> |
| 16 | <div class="bundle-order-info"><?php echo esc_html__('Order', 'latepoint').' <a href="#" '.OsCustomerHelper::generate_order_summary_btn($order->id).'>#'.esc_html($order->confirmation_code).'</a>'; ?></div> |
| 17 | </div> |
| 18 | <div class="bundle-icon"> |
| 19 | <i class="latepoint-icon latepoint-icon-layers"></i> |
| 20 | </div> |
| 21 | </div> |
| 22 | <div class="bundle-services"> |
| 23 | <?php foreach($bundle_services_with_booked_count as $service){ ?> |
| 24 | <div class="bundle-included-service-wrapper"> |
| 25 | <div class="bundle-included-service-name"><?php echo esc_html($service->name); ?></div> |
| 26 | <?php |
| 27 | // translators: %1$d number of scheduled appointments, %2$d is total available |
| 28 | $scheduled_text = $service->join_attributes['total_scheduled_bookings'] ? sprintf(__('%1$d of %2$d Scheduled', 'latepoint'), $service->join_attributes['total_scheduled_bookings'], $service->join_attributes['quantity']) : __('Not Scheduled', 'latepoint'); |
| 29 | echo '<div class="bundle-included-service-quantity">'.esc_html($scheduled_text).'</div>'; |
| 30 | ?> |
| 31 | </div> |
| 32 | <?php } ?> |
| 33 | </div> |
| 34 | <div class="customer-bundle-bottom-actions"> |
| 35 | <a href="#" class="latepoint-btn latepoint-btn-primary latepoint-btn-outline latepoint-btn-block" <?php echo OsCustomerHelper::generate_bundle_scheduling_btn($order_item->id); ?>> |
| 36 | <span><?php esc_html_e('Start Scheduling', 'latepoint'); ?></span> |
| 37 | <i class="latepoint-icon latepoint-icon-arrow-right1"></i> |
| 38 | </a> |
| 39 | </div> |
| 40 | </div> |
| 41 | <div class="customer-bundle-tile-shadow"></div> |
| 42 | <div class="customer-bundle-tile-shadow"></div> |
| 43 | </div> |