123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?php
- $user = ptc_get_user_info();
- $coupon = get_ptc_get_coupon();
- $discount = ptc_get_discount();
- ?>
- <div class="nav-bar nav-bar--fixed">
- <div class="nav-bar-left">
- <div class="nav-icons">
- <i class="icon-menu" data-toggle=".nav-links"></i>
- <i class="icon-logo"></i>
- <i class="icon-mine" data-toggle=".nav-dropdown" data-auth></i>
- </div>
- <div class="nav-menu nav-links hidden" data-fade>
- <div class="nav-menu-header">
- <i class="logo"></i>
- <i class="close" data-toggle=".nav-links"></i>
- </div>
- <div class="nav-menu-body">
- <ul class="nav-links-inner">
- <li class="nav-link">
- <a href="https://www.ptc.net.au/booking/">REPAIR BOOKING</a>
- </li>
- <li class="nav-link">
- <a href="https://www.ptcshop.com.au/">ONLINE SHOP</a>
- </li>
- <li class="nav-link active">
- <a href="<?php echo home_url('care') ?>">Care Plus</a>
- </li>
- <li class="nav-link">
- <a href="https://www.ptc.net.au/store-locator/">SOTRE LOCATION</a>
- </li>
- <li class="nav-link">
- <a href="https://www.ptc.net.au/contact-us/">CONTACT US</a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="nav-bar-right">
- <div class="user pointer flex-ac" data-toggle=".nav-dropdown" data-auth>
- <?php if( $user ){ ?>
- <i class="icon-mine"></i>
- <span class="user-name ellipsis"><?php echo $user['name'] ?></span>
- <?php }else{ ?>
- <span class="u-no">LOGIN</span>
- <?php } ?>
- </div>
- <div class="contact">
- <i class="icon-phone"></i>
- <div>
- <p class="tel">1300 000 349</p>
- <p class="time">Mon-Fri: 9:00 - 16:00</p>
- </div>
- </div>
- </div>
- <?php if( $user ): ?>
- <div class="nav-menu nav-dropdown hidden" data-fade>
- <div class="nav-menu-header">
- <i class="logo"></i>
- <i class="close" data-toggle=".nav-dropdown"></i>
- </div>
- <div class="nav-menu-body user-panel">
- <div class="info">
- <div class="p1">
- <p class="name ellipsis">Hi, <?php echo $user['name'] ?></p>
- <p class="intro">
- <?php echo (is_array( $user['orders'] ) && count( $user['orders'] )) ? 'Pro' : 'Ordinary'; ?> member
- </p>
- </div>
-
- <?php if(!(is_array( $user['orders'] ) && count( $user['orders'] ))){ ?>
- <div class="p2">
- <p class="txt">You have not purchased a member
- <?php if( $user['num_order_expired'] > 0 ){ ?>
- <span>, $<?php echo $discount['amount']; ?> off for additional services</span>
- <?php } ?>
- </p>
- <button class="btn" data-action="buy">BUY</button>
- </div>
- <?php }else{ ?>
- <div class="p3">
- <div class="txt">
- $<?php echo $discount['amount']; ?> off for additional services |
- <strong class="primary pointer" data-action="buy">Buy now ></strong>
- </div>
- <div id="order-swiper" class="swiper">
- <div class="swiper-wrapper">
- <?php
- if(is_array( $user['orders'] ) && !empty( $user['orders'] )){
- foreach( $user['orders'] as $order ):
- ?>
- <div
- class="swiper-slide"
- data-order_id="<?php echo $order['id'] ?>"
- >
- <div class="service">
- <div class="service-title">
- <i class="service-icon icon-lite fls0"></i>
- <div class="service-type ellipsis"><?php echo $order['product_name'] ?></div>
- <div class="service-period fls0">
- <?php echo str_replace("-", "/", $order['start_time'] ) ?>
- to
- <?php echo str_replace("-", "/", $order['end_time'] ) ?>
- </div>
- </div>
- <div class="service-model tac ellipsis"><?php echo $order['phone_info'] ?></div>
- <?php if( $order['phone_imei'] ){ ?>
- <div class="service-code tac"><?php echo $order['phone_imei'] ?></div>
- <?php }else{ ?>
- <div class="service-code tac">
- <a
- class="primary bold"
- href="/ptc/imei/bind?id={{item.id}}"
- >BIND IMEI ></a
- >
- </div>
- <?php } ?>
- </div>
- </div>
- <?php
- endforeach;
- } // end foeach order
- ?>
- </div>
- </div>
- <?php
- if(is_array( $user['orders'] ) && !empty( $user['orders'] )){
-
- ?>
- <div class="pagination">
- <?php
- foreach( $user['orders'] as $item ): ?>
- <i class="dot"></i>
- <?php endforeach; ?>
- </div>
- <?php } ?>
- </div>
- <?php } ?>
- </div>
- <div class="role">
- <a href="/ptc/dashboard">
- <?php echo (is_array( $user['orders'] ) && count( $user['orders'] )) ? 'Pro' : 'Ordinary'; ?> Member
- </a>
- </div>
- <ul class="dropdown-list">
- <?php if( $user['num_order'] > 0 ){ ?>
- <li class="dropdown-item i1">
- <a href="/ptc/repair/history">MY REPAIR REQUEST</a>
- </li>
- <li class="dropdown-item i2">
- <a href="/ptc/order">MY ORDER</a>
- </li>
- <?php } ?>
- <li class="dropdown-item i3">
- <a href="/ptc/gift-card">MY DISCOUNT COUPON</a>
- </li>
- <li class="dropdown-item i4">
- <a href="/ptc/invite">INVITE FRIENDS
- <?php if( $coupon ){ ?>
- <span class="ptc-tag">Get $<?php echo $coupon['coupon_amount'] * $coupon['coupon_num'] ?> coupon</span>
- <?php } ?>
- </a>
- </li>
- <li class="dropdown-item i5">
- <a href="/ptc/account">ACCOUNT INFORMATION</a>
- </li>
- <li class="dropdown-item i6" id="signOut">SIGN OUT</li>
- </ul>
- </div>
- </div>
- <?php endif; ?>
- </div>
- <div class="tabbar">
- <a class=" tab <?php echo ( is_home() || is_front_page() || is_page( 'care' ) )? 'active' : '' ?>" href="<?php echo home_url('/care') ?>">HOME</a>
- <a class=" tab <?php echo is_page( 'feature' )? 'active' : '' ?>" href="<?php echo home_url('feature') ?>">FEATURE</a>
- <a class=" tab <?php echo is_page( 'why' ) ? 'active' : '' ?>" href="<?php echo home_url('why') ?>">WHY PTC</a>
- </div>
|