_booking_data.php
1 year ago
_full_summary.php
1 year ago
_table_body.php
3 weeks ago
customize_table.php
2 months ago
grouped_bookings_quick_view.php
1 year ago
index.php
3 days ago
pending_approval.php
1 year ago
quick_availability.php
1 year ago
view_booking_log.php
1 year ago
grouped_bookings_quick_view.php
65 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <div class="latepoint-lightbox-heading"> |
| 7 | <h2><?php esc_html_e('Group Appointment', 'latepoint'); ?></h2> |
| 8 | </div> |
| 9 | <div class="latepoint-lightbox-content"> |
| 10 | <div class="grouped-bookings-main-info"> |
| 11 | <div class="avatar" style="background-image: url(<?php echo esc_url($booking->agent->get_avatar_url()); ?>)"></div> |
| 12 | <div class="gb-info"> |
| 13 | <div class="gbi-sub"><?php echo esc_html($booking->nice_start_date); ?></div> |
| 14 | <div class="gbi-main"><?php echo esc_html($booking->service->name); ?></div> |
| 15 | <div class="gbi-high"><?php echo esc_html(OsTimeHelper::minutes_to_hours_and_minutes($booking->start_time)); ?> |
| 16 | - <?php echo esc_html(OsTimeHelper::minutes_to_hours_and_minutes($booking->end_time)); ?></div> |
| 17 | </div> |
| 18 | <div class="gb-capacity"> |
| 19 | <div class="gbc-label"> |
| 20 | <?php |
| 21 | // translators: %1$d total booked number |
| 22 | // translators: %2$d total available number |
| 23 | echo esc_html__('Booked:', 'latepoint') . ' <span>' . esc_html(sprintf(__('%1$d of %2$d', 'latepoint'), $total_attendees, $booking->service->capacity_max)) . '<span>'; ?></div> |
| 24 | <div class="booked-percentage"> |
| 25 | <div class="booked-bar" |
| 26 | style="width: <?php echo esc_attr(OsServiceHelper::get_percent_of_capacity_booked($booking->service, $total_attendees)); ?>%;"></div> |
| 27 | </div> |
| 28 | </div> |
| 29 | </div> |
| 30 | <div class="group-bookings-list"> |
| 31 | <div class="gb-heading"><span><?php esc_html_e('Bookings', 'latepoint'); ?></span></div> |
| 32 | <?php foreach ($group_bookings as $group_booking) { ?> |
| 33 | <div class="gb-booking" <?php echo OsBookingHelper::quick_booking_btn_html($group_booking->id); ?>> |
| 34 | <div class="gbb-status"></div> |
| 35 | <div class="gbb-avatar" |
| 36 | style="background-image: url(<?php echo esc_url($group_booking->customer->get_avatar_url()); ?>)"></div> |
| 37 | <div class="gbb-customer"> |
| 38 | <div class="gbb-name"><?php echo esc_html($group_booking->customer->full_name); ?></div> |
| 39 | <div class="gbb-email"><?php echo esc_html($group_booking->customer->email); ?></div> |
| 40 | </div> |
| 41 | <div class="gbb-attendees"> |
| 42 | <div class="gb-value"><?php echo esc_html($group_booking->total_attendees); ?></div> |
| 43 | <div class="gb-label"> |
| 44 | <?php echo esc_html(_n( 'Attendee', 'Attendees', $group_booking->total_attendees, 'latepoint' )); ?> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <?php } ?> |
| 49 | </div> |
| 50 | <div class="add-booking-to-group-box-wrapper"> |
| 51 | <div |
| 52 | class="os-add-box add-booking-to-group-box" <?php echo OsOrdersHelper::quick_order_btn_html(false, ['start_time' => $group_booking->start_time, |
| 53 | 'end_time' => $group_booking->end_time, |
| 54 | 'agent_id' => $group_booking->agent_id, |
| 55 | 'start_date' => $group_booking->start_date, |
| 56 | 'service_id' => $group_booking->service_id, |
| 57 | 'location_id' => $group_booking->location_id]); ?>> |
| 58 | <div class="add-box-graphic-w"> |
| 59 | <div class="add-box-plus"><i class="latepoint-icon latepoint-icon-plus4"></i></div> |
| 60 | </div> |
| 61 | <div class="add-box-label"><?php esc_html_e('Add Booking', 'latepoint'); ?></div> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 |