<!DOCTYPE html>
<html lang="en-US">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
</head>
<body>

	<div>
		<?php
			$appointment = app('App\\Repositories\\AppointmentRepository')->getById($appointment_id);
			
			$resume=app('App\\Repositories\\ResumeRepository')->getByUserId($appointment->to_user);
		?>
		
		<p><b>New Meeting Invitation with <a href="{{$resume->present()->url()}}">{{$fullname}}</a></b></p>
		
		<p>Hello, <br/><br/>
		
			You are invited by {{$user_name}} to join the meeting with <a href="{{$resume->present()->url()}}">{{$fullname}}</a> on <strong>{{$appointment->appointment_date}} {{$appointment->master_start_time}}</strong> to <strong>{{$appointment->appointment_date}} {{$appointment->master_end_time}}</strong>  <br/><br/>
		
			Name: {{$user_name}} <br/><br/>
			
			Email: {{$user_email}} <br/><br/>
			
			Meeting Details: {{nl2br($appointment->description)}} <br/><br/>
			
            @if($appointment->location)
            	<?php
					$apLocation=$appointment->location;
					
					if($appointment->idmeet_meeting==1){
						if($toUid!=0){
							$apLocation=$apLocation."?lgid=".base64_encode($toUid);
						}else{
							$apLocation=$apLocation."?emailid=".$toEmail;
							$apLocation=trim($apLocation);
						}
					}
				?>
            
           		Meeting location: {{$apLocation}}<br/><br/>
                
                @if($appointment->zoom_meeting_id)
                    <strong>Meeting Id:</strong> {{$appointment->zoom_meeting_id}}<br/><br/>
                    
                    <strong>Password:</strong> {{$appointment->zoom_password}}<br/><br/>
                @endif
            @endif
             
			<a href="{{URL('icsfileuser/download')}}/{{$appointment->id}}" style="color:#ed1b23; text-decoration:none;">Click here</a> to download the meeting.
		</p>
		
        @if($appointment->location=="")
			<p><span style="color:#ed1b23; text-decoration:none;">Note:</span> Meeting venue location or web conferencing details provided by separate email.</p>
        @endif
         
		<br/><br/>
		
		<p>Best Wishes,<br/>
		   idhubs Support Team<br/>
		   <a href="https://twitter.com/go4idhubs">https://twitter.com/go4idhubs</a><br/>      
			<a href="https://www.instagram.com/go4idhubs">https://www.instagram.com/go4idhubs</a>
		</p>
	</div>
</body>
</html>