HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/dreamsrent-wp/wp-content/themes/dreamsrent/templates/header/header-provider.php
	<!DOCTYPE html>
	<html <?php language_attributes(); ?> >

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
		<link rel="profile" href="//gmpg.org/xfn/11">
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
		<?php wp_head(); ?>
	</head>
	<body <?php body_class(); ?>>
	<?php wp_body_open(); ?>
	
	<?php
		// Check if Redux Framework is active
		if (in_array('redux-framework/redux-framework.php', apply_filters('active_plugins', get_option('active_plugins')))) {

			// Get main and mobile logos using Redux Framework
			$main_logo = dreamsrent_fl_framework_getoptions('frontend_logo');
			$main_logo_url = isset($main_logo) && $main_logo != '' ? $main_logo['url'] : '';

			$mobile_logo = dreamsrent_fl_framework_getoptions('small_logo');
			$mobile_logo_url = isset($mobile_logo) && $mobile_logo != '' ? $mobile_logo['url'] : '';
		} else {
			// Fallback to default logos if Redux Framework is not active
			$main_logo_url = get_template_directory_uri() . '/assets/images/logo.svg';
			$mobile_logo_url = get_template_directory_uri() . '/assets/images/logo-small.png';
		}
		
		?>

	<div class="main-wrapper">

	<!-- Header -->
	<div class="header">
				<div class="main-header">
				
					<div class="header-left">
						<a href="#" class="logo">
							<img src="<?php echo esc_url($main_logo_url); ?>" alt="Logo">
						</a>
						<a href="#" class="dark-logo">
							<img src="<?php echo esc_url($main_logo_url); ?>" alt="Logo">
						</a>
					</div>

					<a id="mobile_btn" class="mobile_btn" href="#sidebar">
						<span class="bar-icon">
							<span></span>
							<span></span>
							<span></span>
						</span>
					</a>

					<div class="header-user">
						<div class="nav user-menu nav-list">
							<div class="me-auto d-flex align-items-center" id="header-search">					
								<a id="toggle_btn" href="javascript:void(0);">
									<i class="ti ti-menu-deep"></i>
								</a>		
								<div class="add-dropdown">
 <?php 
    $av_add_reservation = dreamsrent_fl_framework_getoptions('av_add_reservation');
    if ((isset($av_add_reservation) && $av_add_reservation)) {
    ?>

									<a href="<?php echo esc_url(get_permalink($av_add_reservation)); ?>" class="btn btn-dark d-inline-flex align-items-center">
										<i class="ti ti-plus me-1"></i><?php esc_html_e('New Reservation', 'dreamsrent'); ?>
									</a>
 <?php } ?>
								</div>			
							</div>
		
							<div class="d-flex align-items-center header-icons">	
									
								<div class="dropdown profile-dropdown">
									<a href="javascript:void(0);" class="d-flex align-items-center" data-bs-toggle="dropdown"  data-bs-auto-close="outside">
										<span class="avatar avatar-sm">

										<?php

	if (is_user_logged_in()) {
		$current_user = wp_get_current_user();
		$name = $current_user->display_name;
		$role = $current_user->roles[0];
		$user_id = get_current_user_id();
		$user_data = get_userdata($user_id);
		$user_first_name = $user_data ? $user_data->first_name : '';
		$user_last_name = $user_data ? $user_data->last_name : '';
		$user_email= $user_data ? $user_data->user_email : '';
		?>

	<?php
		$profile_picture_url = get_user_meta($user_id, 'profile_picture', true);
		$profile_picture_url_default = get_template_directory_uri() . '/assets/images/user_image.jpg';

		$default_width = "40";
		$default_height = "40";
		$alt = "User Image"; ?>

											
	<?php
	if($profile_picture_url) { ?>
	<img src="<?php echo esc_html($profile_picture_url); ?>" alt="<?php echo esc_attr($alt); ?>" class="img-fluid rounded-circle" width="<?php echo esc_attr($default_width); ?>" height="<?php echo esc_attr($default_height); ?>">
	<?php } else { ?>
		<img src="<?php echo esc_html($profile_picture_url_default); ?>"  alt="<?php echo esc_attr($alt); ?>" class="img-fluid rounded-circle" width="<?php echo esc_attr($default_width); ?>" height="<?php echo esc_attr($default_height); ?>">
		<?php } ?>
	
	<?php } ?>

										</span>
									</a>
									<div class="dropdown-menu">
										<div class="profileset d-flex align-items-center">
											<span class="user-img me-2">
	

									
		<?php
	if($profile_picture_url) { ?>
	<img src="<?php echo esc_html($profile_picture_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($default_width); ?>" height="<?php echo esc_attr($default_height); ?>">
	<?php } else { ?>
		<img src="<?php echo esc_html($profile_picture_url_default); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($default_width); ?>" height="<?php echo esc_attr($default_height); ?>">
		<?php } ?>
	
	

											</span>
											<div>
												<h6 class="fw-semibold mb-1"><?php echo esc_html(ucfirst($user_first_name) . ' ' . ucfirst($user_last_name), 'dreamsrent'); ?></h6>
												<p class="fs-13"><?php echo esc_html($user_email, 'dreamsrent'); ?></p>
											</div>
										</div>

												 <?php 
    $av_setting = dreamsrent_fl_framework_getoptions('av_setting');
    if ((isset($av_setting) && $av_setting)) {
 		?>

										<a class="dropdown-item d-flex align-items-center" href="<?php echo esc_url(get_permalink($av_setting)); ?>">
 <?php } ?>
											<i class="ti ti-user-edit me-2"></i><?php echo esc_html__('Edit Profile', 'dreamsrent'); ?>
										</a>

 <?php 
    $av_payments = dreamsrent_fl_framework_getoptions('av_payments');
    if ((isset($av_payments) && $av_payments)) {
		$is_active = (get_the_ID() == $av_payments) ? 'active' : '';
		?>

 
										<a class="dropdown-item d-flex align-items-center" href="<?php echo esc_url(get_permalink($av_payments)); ?>">
											<i class="ti ti-credit-card me-2"></i><?php echo esc_html__('Payments', 'dreamsrent'); ?>
										</a>
 <?php } ?>
										<div class="dropdown-divider my-2"></div>
										
										

										
												 <?php 
    $av_setting = dreamsrent_fl_framework_getoptions('av_setting');
    if ((isset($av_setting) && $av_setting)) {
 		?>



										<a class="dropdown-item d-flex align-items-center" href="<?php echo esc_url(get_permalink($av_setting)); ?>">
											<i class="ti ti-settings me-2"></i><?php echo esc_html__('Settings', 'dreamsrent'); ?>
										</a>

 <?php } ?>

										<div class="dropdown-divider my-2"></div>
										<a class="dropdown-item logout d-flex align-items-center justify-content-between" href="<?php echo wp_logout_url(home_url()); ?>">
											<span><i class="ti ti-logout me-2"></i><?php echo esc_html__('Logout Account', 'dreamsrent'); ?></span> <i class="ti ti-chevron-right"></i>
										</a>
									</div>
								</div>
							</div>
						</div>
					</div>

					<!-- Mobile Menu -->
					<div class="dropdown mobile-user-menu">
						<a href="javascript:void(0);" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
							<i class="fa fa-ellipsis-v"></i>
						</a>
						<div class="dropdown-menu dropdown-menu-end">

						 <?php 
    $av_setting = dreamsrent_fl_framework_getoptions('av_setting');
    if ((isset($av_setting) && $av_setting)) {
 		?>

							<a class="dropdown-item" href="<?php echo esc_url(get_permalink($av_setting)); ?>"><?php esc_html_e('My Profile', 'dreamsrent'); ?></a>
<?php } ?>
					
						 <?php 
    $av_setting = dreamsrent_fl_framework_getoptions('av_setting');
    if ((isset($av_setting) && $av_setting)) {
 		?>

							<a class="dropdown-item" href="<?php echo esc_url(get_permalink($av_setting)); ?>"><?php esc_html_e('Settings', 'dreamsrent'); ?></a>
							<?php } ?>
							<a class="dropdown-item" href="<?php echo wp_logout_url(home_url()); ?>"><?php esc_html_e('Logout', 'dreamsrent'); ?></a>
						</div>
					</div>
					<!-- /Mobile Menu -->

				</div>

			</div>
			<!-- /Header -->

	
			<!-- Sidebar -->
			<div class="sidebar" id="sidebar">
				<!-- Logo -->
				<div class="sidebar-logo">
					<a href="#" class="logo logo-normal">
						<img src="<?php echo esc_url($main_logo_url); ?>" alt="Logo">
					</a>
					<a href="#" class="logo-small">
						<img src="<?php echo esc_url($mobile_logo_url); ?>" alt="Logo">
					</a>
					<a href="#" class="dark-logo">
						<img src="<?php echo esc_url($main_logo_url); ?>" alt="Logo">
					</a>
				</div>
				<!-- /Logo -->
				<div class="sidebar-inner slimscroll">
					<div id="sidebar-menu" class="sidebar-menu">
						
						 
						<ul>
 						 
							<li class="menu-title"><span><?php esc_html_e('Bookings', 'dreamsrent'); ?></span></li>
							<li>
								<ul>
									<?php 
    $av_reservation = dreamsrent_fl_framework_getoptions('av_reservation');
		$av_add_reservation = dreamsrent_fl_framework_getoptions('av_add_reservation');
	$av_edit_reservation = dreamsrent_fl_framework_getoptions('av_edit_reservation');
    if ((isset($av_reservation) && $av_reservation)) {
		//$is_active = (get_the_ID() == $av_reservation) ? 'active' : '';

		if ((isset($av_reservation) && $av_reservation)) {
    $current_id = get_the_ID();
    $is_active = (
        $current_id == $av_reservation || 
        $current_id == $av_add_reservation || 
        $current_id == $av_edit_reservation
    ) ? 'active' : '';
	}
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
										<a href="<?php echo esc_url(get_permalink($av_reservation)); ?>">
											<i class="ti ti-files"></i><span><?php esc_html_e('Reservations', 'dreamsrent'); ?></span><span class="track-icon"></span>
										</a>
									</li>
									<?php } ?>

 <?php 
    $av_all_bookings = dreamsrent_fl_framework_getoptions('av_all_bookings');

    if ((isset($av_all_bookings) && $av_all_bookings)) {
	$is_active = (get_the_ID() == $av_all_bookings) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
                                    <a href="<?php echo esc_url(get_permalink($av_all_bookings)); ?>?status=allbookings">
											<i class="ti ti-calendar-bolt"></i><span><?php esc_html_e('Bookings', 'dreamsrent'); ?></span>
										</a>
									</li> 

 <?php } ?>

  <?php 
    $av_calendar = dreamsrent_fl_framework_getoptions('av_calendar');
    if ((isset($av_calendar) && $av_calendar)) {
		$is_active = (get_the_ID() == $av_calendar) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
									<a href="<?php echo esc_url(get_permalink($av_calendar)); ?>">
											<i class="ti ti-calendar-bolt"></i><span><?php esc_html_e('Calendar', 'dreamsrent'); ?></span>
										</a>
								</li>  
 <?php } ?>	
									 
								</ul>							
							</li>
							<li class="menu-title"><span><?php esc_html_e('Bookings', 'dreamsrent'); ?></span></li>
							<li>
								<ul>

								
  <?php 
    $av_customers = dreamsrent_fl_framework_getoptions('av_customers');
    if ((isset($av_customers) && $av_customers)) {
		$is_active = (get_the_ID() == $av_customers) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
										<a href="<?php echo esc_url(get_permalink($av_customers)); ?>">
											<i class="ti ti-users-group"></i><span><?php esc_html_e('Customers', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>	

 								
  <?php 
    $av_drivers = dreamsrent_fl_framework_getoptions('av_drivers');
    if ((isset($av_drivers) && $av_drivers)) {
			$is_active = (get_the_ID() == $av_drivers) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
										<a href="<?php echo esc_url(get_permalink($av_drivers)); ?>">
											<i class="ti ti-user-bolt"></i><span><?php esc_html_e('Drivers', 'dreamsrent'); ?></span>
										</a>
									</li>  
 <?php } ?>	
   <?php 
    $av_locations = dreamsrent_fl_framework_getoptions('av_locations');
    if ((isset($av_locations) && $av_locations)) {
			$is_active = (get_the_ID() == $av_locations) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
										<a href="<?php echo esc_url(get_permalink($av_locations)); ?>">
											<i class="ti ti-map-pin"></i><span><?php esc_html_e('Locations', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>	
								</ul>
							</li>
							<li class="menu-title"><span><?php esc_html_e('RENTALS', 'dreamsrent'); ?></span></li>
							<li>
								<ul>

								<?php 
    $av_all_cars = dreamsrent_fl_framework_getoptions('av_all_cars');
	$av_add_car = dreamsrent_fl_framework_getoptions('av_add_car');
	$av_edit_car = dreamsrent_fl_framework_getoptions('av_edit_car');
    if ((isset($av_all_cars) && $av_all_cars)) {
		//$is_active = (get_the_ID() == $av_all_cars) ? 'active' : '';

		 
    $current_id = get_the_ID();
    $is_active = (
        $current_id == $av_all_cars || 
        $current_id == $av_add_car || 
        $current_id == $av_edit_car
    ) ? 'active' : '';
	 

		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
										
										<a href="<?php echo esc_url(get_permalink($av_all_cars)); ?>">
											<i class="ti ti-car"></i><span><?php esc_html_e('Cars', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>
									
 		<?php 
    $av_maintenance = dreamsrent_fl_framework_getoptions('av_maintenance');
    if ((isset($av_maintenance) && $av_maintenance)) {
		$is_active = (get_the_ID() == $av_maintenance) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
										<a href="<?php echo esc_url(get_permalink($av_maintenance)); ?>">
											<i class="ti ti-color-filter"></i><span><?php esc_html_e('Maintenance', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>
							
 	<?php 
    $av_reviews = dreamsrent_fl_framework_getoptions('av_reviews');
    if ((isset($av_reviews) && $av_reviews)) {
		$is_active = (get_the_ID() == $av_reviews) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
									<a href="<?php echo esc_url(get_permalink($av_reviews)); ?>">
											<i class="ti ti-star"></i><span><?php esc_html_e('Reviews', 'dreamsrent'); ?></span>
										</a>
									</li>

 <?php } ?>

								</ul>
							</li>	
							<li class="menu-title"><span><?php esc_html_e('FINANCE & ACCOUNTS', 'dreamsrent'); ?></span></li>					
							<li>
								<ul>


								<?php 
    $av_earnings = dreamsrent_fl_framework_getoptions('av_earnings');
    if ((isset($av_earnings) && $av_earnings)) {
		$is_active = (get_the_ID() == $av_earnings) ? 'active' : '';
		?>
     <li class="<?php echo esc_attr($is_active); ?>">
									<a href="<?php echo esc_url(get_permalink($av_earnings)); ?>">
										
 											<i class="ti ti-file-invoice"></i><span><?php esc_html_e('Earnings', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>

 <?php 
    $av_payouts = dreamsrent_fl_framework_getoptions('av_payouts');
    if ((isset($av_payouts) && $av_payouts)) {
		$is_active = (get_the_ID() == $av_payouts) ? 'active' : '';
		?>
     <li class="<?php echo esc_attr($is_active); ?>">
									<a href="<?php echo esc_url(get_permalink($av_payouts)); ?>">
										
 											<i class="ti ti-file-invoice"></i><span><?php esc_html_e('Payouts', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>
 
									<?php 
    $av_invoices = dreamsrent_fl_framework_getoptions('av_invoices');
    if ((isset($av_invoices) && $av_invoices)) {
		$is_active = (get_the_ID() == $av_invoices) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
									<a href="<?php echo esc_url(get_permalink($av_invoices)); ?>">
										
 											<i class="ti ti-file-invoice"></i><span><?php esc_html_e('Invoices', 'dreamsrent'); ?></span>
										</a>
									</li>
 <?php } ?>
									 

 <?php 
    $av_payments = dreamsrent_fl_framework_getoptions('av_payments');
    if ((isset($av_payments) && $av_payments)) {
		$is_active = (get_the_ID() == $av_payments) ? 'active' : '';
		?>

							 <li class="<?php echo esc_attr($is_active); ?>">
									<a href="<?php echo esc_url(get_permalink($av_payments)); ?>">

											<i class="ti ti-credit-card"></i><span><?php esc_html_e('Payments', 'dreamsrent'); ?></span>
										</a>
									</li>
								</ul>
							</li>
 <?php } ?>

 					<?php 
    $av_chat = dreamsrent_fl_framework_getoptions('av_chat');
	 $av_enquires = dreamsrent_fl_framework_getoptions('av_enquires');
   
		?>

		 

    <li class="menu-title"><span><?php esc_html_e('OTHERS', 'dreamsrent'); ?></span></li>

							<li>
							<ul>

			
		<?php 
    $av_plan_management = dreamsrent_fl_framework_getoptions('av_plan_management');
	$en = dreamsrent_fl_framework_getoptions('enable_vendor_packages');
    if ((isset($av_plan_management) && $av_plan_management && $en)) {
        $is_active = (get_the_ID() == $av_plan_management) ? 'active' : '';
        ?>
                             <li class="<?php echo esc_attr($is_active); ?>">
                                    <a href="<?php echo esc_url(get_permalink($av_plan_management)); ?>">
                                        <i class="ti ti-clipboard-text"></i><span><?php esc_html_e('Plan Management', 'dreamsrent'); ?></span> 
                                    </a>
                                </li>
        <?php } ?>

        <?php  if ((isset($av_chat) && $av_chat)) {
            $is_active = (get_the_ID() == $av_chat) ? 'active' : ''; ?>
            <li class="<?php echo esc_attr($is_active); ?>">
                <a href="<?php echo esc_url(get_permalink($av_chat)); ?>">
                    <i class="ti ti-message"></i><span><?php esc_html_e('Messages', 'dreamsrent'); ?></span>
                </a>
            </li>
        <?php } ?>

        <?php  if ((isset($av_enquires) && $av_enquires)) {
            $is_active = (get_the_ID() == $av_enquires) ? 'active' : ''; ?>
            <li class="<?php echo esc_attr($is_active); ?>">
                <a href="<?php echo esc_url(get_permalink($av_enquires)); ?>">
                    <i class="ti ti-message"></i><span><?php esc_html_e('Enquires', 'dreamsrent'); ?></span> 
                </a>
            </li>
        <?php } ?>

								 
							</ul>
						</li>



							</ul>
					</div>
				</div>
			</div>
			<!-- /Sidebar -->