_agents.php
1 year ago
_complete.php
1 year ago
_default_agent.php
4 months ago
_form_agent.php
1 year ago
_form_service.php
5 months ago
_intro.php
1 year ago
_list_agents.php
1 year ago
_list_services.php
1 year ago
_personal_info.php
4 months ago
_services.php
4 months ago
_settings.php
1 year ago
_work_periods.php
4 months ago
_list_agents.php
34 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <div class="agent-boxes"> |
| 7 | <?php |
| 8 | foreach($agents as $agent){ ?> |
| 9 | <div class="agent-box-w wizard-add-edit-item-trigger" data-id="<?php echo esc_attr($agent->id); ?>" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('wizard', 'add_or_edit_agent')); ?>"> |
| 10 | <div class="agent-edit-icon"><i class="latepoint-icon latepoint-icon-edit-3"></i></div> |
| 11 | <div class="agent-avatar" style="background-image: url(<?php echo esc_url($agent->avatar_url); ?>)"></div> |
| 12 | <div class="agent-name"><?php echo esc_html($agent->full_name); ?></div> |
| 13 | <div class="agent-remove-trigger" |
| 14 | data-os-pass-this="yes" |
| 15 | data-os-prompt="<?php echo esc_attr__('Are you sure you want to remove this agent?', 'latepoint'); ?>" |
| 16 | data-os-params="<?php echo esc_attr(OsUtilHelper::build_os_params(['id' => $agent->id], 'destroy_agent_'.$agent->id)); ?>" |
| 17 | data-os-after-call="latepoint_remove_agent_box" |
| 18 | data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('agents', 'destroy')); ?>"> |
| 19 | <i class="latepoint-icon latepoint-icon-trash-2"></i> |
| 20 | </div> |
| 21 | </div> |
| 22 | <?php |
| 23 | } ?> |
| 24 | <div class="add-agent-box wizard-add-edit-item-trigger" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('wizard', 'add_or_edit_agent')); ?>"> |
| 25 | <div class="add-agent-graphic-w"> |
| 26 | <div class="add-agent-graphic"> |
| 27 | <div class="add-agent-head"></div> |
| 28 | <div class="add-agent-body"></div> |
| 29 | </div> |
| 30 | <div class="add-agent-plus"><i class="latepoint-icon latepoint-icon-plus4"></i></div> |
| 31 | </div> |
| 32 | <div class="add-agent-label"><?php esc_html_e('Add Agent', 'latepoint'); ?></div> |
| 33 | </div> |
| 34 | </div> |