<?php
/*----------------------------------------------------------------------------------|  www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		doctorinfo.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____  _____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \(  _  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/ )(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__)  (_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('JPATH_BASE') or die('Restricted access');



?>

<!--[JCBGUI.layout.layout.1.$$$$]-->
<section>
   <div class="container">
       <div class="row justify-content-center">
           <div class="col-md-10">
               <div class="jumbotron jumbotron-fluid" style="padding: 24px 15px;border-radius: 4px;background: #ffffff;border: 1px solid #eee;box-shadow: 8px 10px 13px #eeeefd;">
                   <div style="display: flex;flex-wrap: wrap">
                       <div>
                           <img style="border: 3px solid #ccc;width: 120px;height: 120px;border-radius: 50%;" src="<?php echo $displayData->image; ?>" alt="">
                       </div>
                       <div style="align-self: center;margin-right: 15px;">
                           <strong><?php echo $displayData->users_name; ?></strong>
                           <p><?php echo $displayData->categories_title; ?></p>
                       </div>
                   </div>
                   <div style="padding: 15px 0;">
                       <span>
                           <i class="fa fa-calendar" style="color: #c771df"></i>
<!--                           یکشنبه 1400/02/19-->
                           <?= Joomla\CMS\HTML\HtmlHelper::date($displayData->appointment->appointment, 'Y-m-d');?>
                       </span>
                       <span>
                           <i class="fa fa-clock" style="color: #45ca6d"></i>
<!--                           15:44-->
                           <?= Joomla\CMS\HTML\HtmlHelper::date($displayData->appointment->appointment, 'H:i');?>
                       </span>
                   </div>
                   <div style="display: flex;flex-wrap: wrap;justify-content: space-between;">
                       <p>
                           <i class="fa fa-map-marker-alt" style="color: red"></i>
                           <?= $displayData->address;?>
                       </p>
                       <a href="<?= JRoute::_('index.php?option=com_reservation&view=doctor&uid='.JFactory::getApplication()->input->get('uid',0));?>" class="btn btn-outline-info">تغییر نوبت</a>
                   </div>
               </div>
               <style>
                   #checkout-nav ul
                   {
                       display: flex;
                       list-style: none;
                       flex-wrap: wrap;
                   }
                   #checkout-nav ul li
                   {
                       position: relative;
                       background-color: #3cbea2;
                       border-radius: 4px;
                       padding: 3px 14px;
                       margin-right: 4px;
                   }
                   #checkout-nav ul li:after
                   {
                       position: absolute;
                       border-width: 4px;
                       border-color: transparent red transparent transparent;
                       content: '';
                   }
                   #checkout-nav ul li:before
                   {
                       position: absolute;
                       border-width: 4px;
                       border-color: transparent red transparent transparent;
                       content: '';
                   }
               </style>
               <div id="checkout-nav">
                   <ul>
                       <?php
                       $app= JFactory::getApplication();
                       $function_to_be_executed= $app->getUserState('function_to_be_executed',0);
                       foreach($displayData->checkout as $key=> $item): ?>
                            <?php if($key== $function_to_be_executed): ?>
                               <li style="background-color: red; color: #fff"><?= $item->checkout_navber;?></li>
                            <?php else: ?>
                               <li><?= $item->checkout_navber;?></li>
                            <?php endif; ?>

                       <?php endforeach; ?>
                   </ul>
               </div>
           </div>
       </div>
   </div>
</section><!--[/JCBGUI$$$$]-->

