| 1 |
<?php |
| 2 |
/** |
| 3 |
* Setup Wizard — Business profile (contact details only). |
| 4 |
* |
| 5 |
* @package Yatra |
| 6 |
*/ |
| 7 |
|
| 8 |
defined('ABSPATH') || exit; |
| 9 |
|
| 10 |
use Yatra\Services\SettingsService; |
| 11 |
|
| 12 |
$company_name = SettingsService::get('company_name', ''); |
| 13 |
$company_email = SettingsService::get('company_email', ''); |
| 14 |
$company_phone = SettingsService::get('company_phone', ''); |
| 15 |
?> |
| 16 |
|
| 17 |
<form method="post" class="wizard-step"> |
| 18 |
<?php wp_nonce_field('yatra-setup'); ?> |
| 19 |
<input type="hidden" name="save_step" value="business"> |
| 20 |
|
| 21 |
<div class="wizard-header wizard-header--task"> |
| 22 |
<p class="wizard-header-kicker"><?php echo esc_html($this->get_wizard_progress_label()); ?></p> |
| 23 |
<h1><?php esc_html_e('Your business', 'yatra'); ?></h1> |
| 24 |
<p class="wizard-header-lead"><?php esc_html_e('These details appear on booking records and customer-facing messages.', 'yatra'); ?></p> |
| 25 |
</div> |
| 26 |
|
| 27 |
<div class="wizard-content"> |
| 28 |
<div class="form-row" style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;"> |
| 29 |
<div class="form-group" style="margin-bottom: 0;"> |
| 30 |
<label class="form-label" for="company_name"><?php esc_html_e('Business / brand name', 'yatra'); ?> <span class="wizard-req">*</span></label> |
| 31 |
<input type="text" id="company_name" name="company_name" value="<?php echo esc_attr($company_name); ?>" class="form-control" required autocomplete="organization" placeholder="<?php esc_attr_e('e.g. Mountain View Tours', 'yatra'); ?>"> |
| 32 |
</div> |
| 33 |
<div class="form-group" style="margin-bottom: 0;"> |
| 34 |
<label class="form-label" for="company_email"><?php esc_html_e('Public contact email', 'yatra'); ?> <span class="wizard-req">*</span></label> |
| 35 |
<input type="email" id="company_email" name="company_email" value="<?php echo esc_attr($company_email); ?>" class="form-control" required autocomplete="email" placeholder="<?php esc_attr_e('e.g. hello@yourbusiness.com', 'yatra'); ?>"> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
<div class="form-group"> |
| 39 |
<label class="form-label" for="company_phone"><?php esc_html_e('Phone', 'yatra'); ?> <span class="wizard-req">*</span></label> |
| 40 |
<input type="tel" id="company_phone" name="company_phone" value="<?php echo esc_attr($company_phone); ?>" class="form-control" required autocomplete="tel" placeholder="<?php esc_attr_e('e.g. +1 555 123 4567', 'yatra'); ?>"> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
|
| 44 |
<div class="wizard-footer"> |
| 45 |
<a href="<?php echo esc_url($this->get_step_url('welcome')); ?>" class="btn btn-secondary wizard-footer-back"> |
| 46 |
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg> |
| 47 |
<?php esc_html_e('Back', 'yatra'); ?> |
| 48 |
</a> |
| 49 |
<div class="wizard-footer-actions"> |
| 50 |
<a href="<?php echo esc_url($this->get_next_step_link()); ?>" class="btn btn-secondary btn-skip"><?php esc_html_e('Skip', 'yatra'); ?></a> |
| 51 |
<button type="submit" class="btn btn-primary"> |
| 52 |
<?php esc_html_e('Continue', 'yatra'); ?> |
| 53 |
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg> |
| 54 |
</button> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
</form> |
| 58 |
|