<style>
	@media (max-width: 1024px) {
		.right-column {
			display: none;
		}
		.profile-header {
			height: 280px;
		}
	}
</style>

<?php 
	$posted_in_community=0;
	$socialNetworkLink="";
	$socialNetworkLink="";
	
	$bookingRideUrl="";
	if($posted_community){
		$posted_in_community=$posted_community->id;
		$communitySocialNetworking2=$posted_community->present()->getLogo();
		$socialNetworkingBackground=$posted_community->present()->getSocialNetworkingBackGroundcolor();
		$socialNetworkLink=$posted_community->present()->url();
		
		if($posted_community->race_community==1){
			$bookingRideUrl=URL::route('community-ride-book',['slug'=>$posted_community->id]);
		}	
	}
?>

<div class="container page-content clearfix">
    
    <div class="left-column">
	
		<div class="book-a-ride-box">
			<span class="heading">BOOK A RIDE</span>		
		</div>				
		
		@if(!empty($slots))
			<div class="booking-slots-box">
				@foreach($slots as $slot)
					<a class="slot-row" href="{{URL::route('community-ride-booking',['slug'=>$posted_community->id,'slotid'=>$slot->id])}}">
						Book a {{$slot->times}} {{$slot->name}} ride
					</a>					
				@endforeach	
			</div>
		@else
			<div class="booking-coming-soon-alert">
				No slots found. 
			</div>		
		@endif	
    </div>

    <div class="right-column">
    	<div class="box-title black-ommunity-tittle blue-socialhome-title hidehomeonmobile" style="@if($socialNetworkingBackground) background:{{$socialNetworkingBackground}} !important; @endif">
            <a href="@if($socialNetworkLink!="") {{$socialNetworkLink}} @else {{URL::route('user-home')}} @endif" style="color:#FFF">
           		<img src="@if($communitySocialNetworking2) {{$communitySocialNetworking2}} @else {{Theme::asset()->img('theme/images/idhubs-texts.png')}} @endif" class="idhubs-social-network-text"/>
          	
            	@if($socialNetworkLink!="") <span class="social-media-visit-name">{{trans('user.social-community-network')}}</span> @endif
            </a>
           <!-- <b>idhubs community</b></a>-->
        </div>
    
        {!! Theme::section('user.side-info',['bookingRideUrl'=>$bookingRideUrl]) !!}
        
		<div id="suggested-friends-view-list" data-id="{{$posted_in_community}}">
       		 <div class="box friend-request-invitations suggested-friends-list">
    			<div class="box-title invitations-title">{{trans('connection.suggested')}} ({{trans('connection.friends')}}) <a href="{{URL::route('user-account-privacy')}}"><i class="fa fa-cog" aria-hidden="true"></i></a> 

        		</div>
             </div> 
        </div>
        
    </div>
</div>
