	<!-- Add Department Modal -->
    <div id="add_department" class="modal custom-modal fade" role="dialog">
					<div class="modal-dialog modal-dialog-centered" role="document">
						<div class="modal-content">
							<div class="modal-header">
								<h5 class="modal-title"><?php  echo $request_permission; ?></h5>
								<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
							</div>
							<div class="modal-body">
					 <form clas="cmxform" id="signupForm" method="post" action="hr_add_business_trip_modal_code.php" enctype="multipart/form-data" > 
					   <div class="form-group">
			<input type="hidden" name="add_user_id" id="add_user_id" readonly value="<?php echo $urow['user_id']; ?>">
           	<input type="hidden" name="user_id_top_manager" id="user_id_top_manager" readonly value="<?php echo $user_id_top_manager; ?>">
           	 <input type="hidden" name="company_id" id="company_id" readonly value="<?php echo $company_id; ?>">
           	  <input type="hidden" name="system_id" id="system_id" readonly value="<?php echo $main_system_id; ?>"> 

           <input type="hidden" name="link_lang" id="link_lang" readonly value="<?php echo $link_lang; ?>">  
        <input type="hidden" name="lang" id="lang" readonly value="<?php echo $lang; ?>"> 
		   	<input type="hidden" name="messag_add" id="messag_add" readonly value="<?php echo $messag_add; ?>"> 
		   	
		   	
   <input type="text" readonly name="actual_link" id="actual_link" readonly value="<?php echo $actual_link; ?>">
		   	

		   	 </div>

	   <?php
      function GetSeriaotherr() {	
		$strings = '123456789';	
		$stringLength = strlen($strings);
		$newStrings = '';
		for ($i = 0; $i < 6; $i++) {
			$newStrings .= $strings[rand(0, $stringLength - 1)];
		}
		return $newStrings;
	}
  ?> 		
								    
								    
				
                <div class="form-group"style="font-size:14px; font-weight:;">
                 <label style="float:;">
              <?php echo $id; ?>
                </label>
             <input type="text"readonly value="<?php echo GetSeriaotherr();?>" name="request_per_id" id="request_per_id" class="form-control"style="font-size:14px; font-weight:bold;" required="" >
                       </div>
                       
                  <div class="form-group">
				<lable><?php echo $the_companyr; ?></lable>
				<select clas="select" name="company_id_sel" id="company_id_sel" class="form-select"required="">
                 <!--option value=""><?php echo $select.$space.$the_companyr; ?> </option-->
                 
                 <!--option value="all_company"><?php echo $company_title; ?> </option-->

                    <?php
                         if($urow['user_type']=="System_Manager"){
                       $sql_com="SELECT * FROM waseet_company_user_tbl GROUP BY company_id ";
                         }else{
                     if($company_id=='all_company'){   
                        $sql_com="SELECT * FROM waseet_company_user_tbl where deleted='0'AND stop='0'AND company_id IN ('$ids')GROUP BY company_id ";
                     }else{
                      $sql_com="SELECT * FROM waseet_company_user_tbl where deleted='0'AND stop='0'AND company_id='$company_id' GROUP BY company_id ";
                     } 
                         }
                        $result_com = $conn->query($sql_com);
                        if ($result_com->num_rows > 0) {
                        while($row_com = $result_com->fetch_assoc()) {
                            
                        $sql_com1="SELECT * FROM main_company_tbl where deleted='0'AND  company_id='".$row_com['company_id']."' ";
                        $result_com1 = $conn->query($sql_com1);
                        if ($result_com1->num_rows > 0) {
                        while($row_com1 = $result_com1->fetch_assoc()) {
                          //  echo $row_com1['company_name_ar'];
                            if($lang=='ar'){$name_ar2=$row_com1['company_name_ar'];}else{$name_ar2=$row_com1['company_name_en'];}        
                            //  echo $name_ar2;
                          ?>
                   <option value="<?php echo $row_com1['company_id']; ?>"><?php echo $name_ar2; ?> </option>
					<?php  }} }}  ?>	
					</select>
					</div>  
					
					
					
					     <div class="form-group">
				<lable><?php echo $type; ?></lable>
				<select clas="select" name="request_per_type" id="request_per_type" class="form-select"required="">
            	  <option value="business_trip"><?php echo $business_trip; ?> </option>
            	   <option value="emergency"><?php echo $emergency; ?> </option>
					</select>
					</div> 
					
							
				 <div class="form-group">
				<lable><?php echo $t_request_type; ?></lable>
				<select clas="select" name="request_type" id="request_type" class="form-select"required="">
            	  <option value="Late"><?php echo $Being_late_for_work; ?> </option>
            	   <option value="leave_before"><?php echo $Dismissa_before_the_working_hours; ?> </option>
					</select>
					</div>  
					
				<div class="form-group"style="font-size:14px; font-weight:;">
                <label style="float:;">
                <?php echo $details; ?>
                </label>                                          
  <textarea name="request_per_details" id="request_per_details" class="form-control" required=""></textarea>
                </div>
                
                
                   <div class="form-group"style="font-size:14px; font-weight:;">
                <label style="float:;">
               <?php echo $the_date; ?>
                </label>  
                <?php   $c_date = date("Y-m-d"); ?>
                  <input type="date"value="<?php echo $c_date; ?>" name="request_per_date" id="request_per_date" class="form-control"style="font-size:14px; font-weight:bold;" required="" placeholder="<?php echo $entry.$space.$The_name_holiday_english; ?>" >
                </div>
                
               
                      
                        <div class="form-group">
               <label style="float:;">         
           <?php echo $from_the_Time; ?>
                 </label>
                   <input type="time" value=""  name="request_per_time_from" id="request_per_time_from" class="form-control" style="font-size:14px; font-weight:bold;"required=""  placeholder=" <?php echo $entry.$space.$Holiday_details; ?>" >
                      </div>
                      
                      
                        <div class="form-group">
               <label style="float:;">         
           <?php echo $to_the_Time; ?>
                 </label>
                   <input type="time" value=""  name="request_per_time_to" id="request_per_time_to" class="form-control" style="font-size:14px; font-weight:bold;" required="" placeholder=" <?php echo $entry.$space.$Holiday_details; ?>" >
                      </div>
        
								
								
						<div class="modal-footer ">
					    <input type="submit" name="sav_btn" id="sav_btn" style="display:non;" class="btn btn-primary me-2" value="<?php echo $save; ?>">
						<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo $cancel; ?></button>
					</div>		
								
								
								</form>
							</div>
						</div>
					</div>
				</div>
				<!-- /Add Department Modal -->
				
				
				
				
				