<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAdmin} : {$language.lblDashboard}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/ui.daterangepicker.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/dashboard.css" />
{include file='CommonCustomStyles.tpl'}
</head><body>
<div class="outer_container dashboard">
   {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container">
    <div class="content_wrapper clearfix">
    <noscript>
    <div class="message_info"> {$language.lblJsEnable} !!</div>
    </noscript>
    <h2>{$language.lblDashboard}</h2>
    <div class="business-summary">
        <div class="row clearfix">
            <div class="col-6">
                <div class="bg-white">
                    <h4>{$language.lblProductInfo}</h4>
                    <div class="sumry-tble vehicle-info clearfix">
                        {if $productPrivilege}
                        <div class="sumry-item">
                            <strong>
                            {*html->anchor href="product/index/dstatus/Active/" content={$resDashboard.upcoming}*}
                            {$resDashboard.upcoming}
                            </strong>
                            <span>{$language.lblActive}
                            {$language.lblCartProducts}</span>
                        </div>
                        <div class="sumry-item">
                            <strong>
                                {*html->anchor href="product/reviewProducts/" content={$resDashboard.review}*}
                                {$resDashboard.review}
                                </strong>
                            <span>{$language.lblCartProducts}
                            {$language.lblUnderReview}</span>
                        </div>	
                        {/if}
                        <div class="sumry-item">
                            <span>Autoline Last Update</span>
							<strong>
									{$autolineUpdate}
							</strong>
							
						</div>
                    </div>
                </div>
            </div>
            <div class="col-6">
                <div class="bg-white">
                    <h4>{$language.lblBookingInfo}</h4>
                    <div class="sumry-tble booking-info clearfix">
                        {if $orderPrivilege}
                        <div class="sumry-item">
                            <div>
                                <strong>{$orderCount}</strong>
                                <span>{$language.lblTodays} {$language.lblMultipleBookings}</span>
                            </div>
                        </div>
                        <div class="sumry-item">
                            <div class="border-left">
                                <strong>{$monthCount}</strong>
                                <span>{$language.lblThisMonth} {$language.lblMultipleBookings}</span>
                            </div>
                        </div>
                        <div class="sumry-item">
                            <div class="border-left">
                                <strong>{$orderTotalCount}</strong>
                                <span>{$language.lblTotal} {$language.lblMultipleBookings}</span>
                            </div>
                        </div>
                        {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>
		  
		{assign var="no_cursor" value="0"}
         {if $orderPrivilege}
		 {if $orderPrivilege}
		 {assign var="no_cursor" value=1}
		 {/if}
         {if $no_cursor gt 1}
		 {assign var="no_cursor" value=""}
		 {else}
			{assign var="no_cursor" value="no_cursor"}
		 {/if}
         <div class="business-summary bg-white"> 
          <!-- Latest product orders starts-->
          <div class="recent_head ">
            {*<ul class="right_tab">
            {if $orderPrivilege}
               <li>{html->anchor href="" class="tabLink $no_cursor" content=$language.lblBookings}</li>
            {/if}
           </ul>*}
            <h4 class="clearfix">
                {$language.lblRecentActivity} {if $orderPrivilege} {html->anchor href="" class="tabLink $no_cursor" content=$language.lblBookings} {/if}
            </h4>
          </div>
          <!-- Orders starts-->   
          <div class="grid_table00">
          {if $orderPrivilege}       
           <table width="100%" cellspacing="0" cellpadding="0" border="0" class="tabLinkBlock hide">
            {if $resListUserOrders}
           <thead>
              <tr>
                <th  valign="middle" align="left" class="bg_grey">{$language.lblOrderID}</th>
                <th valign="middle" align="left" class="bg_grey">{$language.lblCustomerName}</th>
                <th valign="middle" align="left" class="bg_grey">{$language.lblCustomerPhone}</th>
                <th valign="middle" align="left" class="bg_grey">{$language.lblCustomerEmail}</th>
                <th valign="middle" align="left" class="bg_grey">{$language.lblProduct}</th>
                <th valign="middle" align="left" class="bg_grey" width="135">{$language.lblDashPurchaseDate}</th>
              </tr>
            </thead>
           {/if}
            <tbody>
             {foreach item="listUserOrders" from=$resListUserOrders}
                {assign var="curr_morderID" value=$listUserOrders.masterOrderID}
              <tr>
                <td valign="middle" align="left">
                {if $ordershowPrivilege neq ''}{html->anchor history="yes" href="order/show/id/$curr_morderID/" class="order" content=$listUserOrders.orderNumber}{else}{$listUserOrders.orderNumber}{/if}</td>
                <td valign="middle" align="left">
                    {$listUserOrders.subtitle}{$listUserOrders.billingFirstName|decode_str|wordwrap:23|strip_tags:true}
                    {*{$listUserOrders.fullName|wordwrap:23|strip_tags:true}*}
				</td> 
				 <td valign="middle" align="left">
					
                    {$listUserOrders.billingPhone|decode_str}
				</td>   
				 <td valign="middle" align="left" class="email">
                    {$listUserOrders.customer_email|decode_str}
				</td>  
				<td valign="middle" align="left">
                    {$listUserOrders.productTitle}
				</td>  				
                <td valign="middle" align="left">{$listUserOrders.orderCreatedDate|date_format:$date_format}&nbsp;
                    
                    {$listUserOrders.orderCreatedDate|date_format:$time_format}</td>
                
              </tr>
               {foreachelse}
                <tr>
                  <td colspan="6"><div class="message_info"> {$language.msgNoRecords}</div></td>
                </tr>
                {/foreach}
              </tbody>
              <tfoot>
              	<td colspan="6" align="left" valign="middle">{if $resListUserOrders}{html->anchor href="order/index/" class="fixing_right" content=$language.lblDashViewAll}{/if}</td>
              </tfoot>
              </table>
               {/if} 
              
              </div>
              </div>
       {/if}   

	  <div class="business-summary">
        <div class="row clearfix">
            
            <div class="">
                <div class="bg-white">
                    <h4>{$language.lblMissingValues}</h4>
                    <div class="sumry-tble booking-info clearfix">
                        <div class="sumry-item" style="width:23.333% !important">
                            <div>
                                {html->anchor href="product/missingProducts/type/images/" content="<strong>{$dashboardMissing.imagesCount|default:0}</strong>"}
								{*<strong>{$dashboardMissing.imagesCount|default:0}</strong>*}
                                <span>{$language.lblImages} </span>
                            </div>
                        </div>
					   <div class="sumry-item" style="width:23.333% !important">
                            <div class="border-left">
								{html->anchor href="product/missingProducts/type/profiles/" content="<strong>{$dashboardMissing.profilesCount|default:0}</strong>"}
                                <span>{$language.lblOptionalProfiles} </span>
                            </div>
                        </div>
					   {if $financePrivilege|default:''}
                        <div class="sumry-item" style="width:23.333% !important">
                            <div class="border-left">
								{html->anchor href="product/missingProducts/type/finance/" content="<strong>{$dashboardMissing.financeCount|default:0}</strong>"}
                                <span>{$language.lblMenuFinanceRates} </span>
                            </div>
                        </div>
						{/if}
					   {if $leasePrivilege|default:''}
                        <div class="sumry-item" style="width:23.333% !important">
                            <div class="border-left">
								{html->anchor href="product/missingProducts/type/lease/" content="<strong>{$dashboardMissing.leaseCount|default:0}</strong>"}
                              <span>{$language.lblMenuLeasePrices}</span>
                            </div>
                        </div>
					  {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>
      <!--End:Left Block-->
     
      <!--End:Right Block-->
    
    <!--End:Dash Boaddiv-->
  </div>
  </div>
  <!--***********************************************************************END CONTAINER SECTION******************************************************-->
  <!--End:Content Container-->
      {include file='CommonBottom.tpl'}

</div>
<!--End:Outer Container-->
<div style="height:25px;"></div>
 <div   id="blockUILoader" style="display:none;">
<img alt="Loading...." src="{$view_images}/spinner-big.gif">
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
{form->rootpath_script}
{form->basepath_script}
{html->messages_script id="common_message"}
<script type="text/javascript" src="{$common_js}/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" >
var errDate	=	"{$language.errDate}";
</script>
<script type="text/javascript" src="{$common_js}/date.js"></script>
<script type="text/javascript" defer="defer" src="{$view_javascript}/daterangepicker.jQuery.js"></script>
<script type="text/javascript" defer="defer" src="{$view_javascript}/jquery.multiselect.widget.js"></script>
<script language="javascript" type="text/javascript" src="{$view_javascript}/index.page.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery.blockUI.js"></script>
</body>
</html>
