<style>
.descriparea p {
	margin-bottom:15px;
}
</style>
	<h3 class="rs title-inside" style="margin-bottom:7px;
	font-family:Montserrat,Oswald,'Open Sans', Helvetica,Verdana,sans-serif;">
		<span style="color:#aaa;"></span>
		<?= $project['title'] ?>
	</h3>
	
<!--	<h2 class="rs group-title" style="margin-bottom:0px;">
		<?= $project['title'] ?>
	</h2>-->

	<input type='hidden' name='location_lat' value="<?= $project['location_lat']; ?>"/>
	<input type='hidden' name='location_lng' value="<?= $project['location_lng']; ?>" />
	<input type='hidden' name='location_lat2' value="<?= $project['location_lat2']; ?>"/>
	<input type='hidden' name='location_lng2' value="<?= $project['location_lng2']; ?>" />

	<div class="descriparea" style="font-size:17px; line-height:27px; padding-bottom:10px;">
		<!--<span style="font-weight:700; font-size:11px;">MORE ABOUT</span><br />-->
		<?= $project['description'] ?>
	</div>
	<div class="clear"></div>
	
	<div style="font-family: Montserrat,Oswald,'Open Sans', Helvetica,Verdana,sans-serif; font-size:12px;">
		FLIP M<span
		style="font-family:'Reddit Mono','PT Mono',sans-serif">0</span>BBERS
	</div>
	
	<div style="text-align:left; background:none;">
		<?php include ("cfmini.tpl.php"); ?>	
		<div class="clear"></div>
	</div>
	
	<h2 style="color:#f11303; font-family: Montserrat,Oswald,'Open Sans', Helvetica,Verdana,sans-serif; 
		font-weight:600; margin-bottom:10px;">
		MOB INITIATIVE/GOAL 
	</h2>
	
	<div class="leftcell" style="">
		<img src="/static/client/fm_icon_red.png" alt="FM" align="left"
		style="height:20px; float: left; margin-top: 5px; margin-left:-2px;
		margin-right: 4px;" /> FLIP TYPE
	</div>

	<div class="rightcell" style="">
		<?php
		foreach ($types as $type) {
			if ($project['type_id'] == $type['id']) {
				echo $type['title'];
			}
		}
		?>
	</div>
	
	<!-- //////////////////////////////////////////////// -->

	<div class="leftcell" style="">
		<img src="/static/images/client/continualcal.png" alt="When" align="left"
		style="height:20px; float: left; margin-top: 5px; 
		margin-right: 8px;" /> FLIP BY
	</div>

	<div class="rightcell" style="">
		<?= date('g:i a \o\n M d, Y',strtotime($project['timestamp_end'])); ?>
	</div>
	
	<!-- //////////////////////////////////////////////// -->
	
	<!-- my budget -->
	<div class="leftcell" style="">
		<img src="/static/client/full_budget_icon.png" alt="$" align="left"
		style="height:20px; float: left; margin-top: 5px;
		margin-right: 8px;" /> NEEDED
	</div>

	<div class="rightcell" style="">
		$<?= number_format($project['budget'],0,'',',') ?>
	</div>
	
	<!-- //////////////////////////////////////////////// -->
	
		<!-- my budget -->
	<div class="leftcell" style="">
		<img src="/static/client/budget_icon.png" alt="$" align="left"
		style="height:20px; float: left; margin-top: 5px; 
		margin-right: 8px;" /> MY CONTR.
	</div>

	<div class="rightcell" style="">
		$<?= number_format($project['tamount'],0,'',',') ?>
	</div>
	
	<!-- //////////////////////////////////////////////// -->
	
	<!-- CO-FUND (SO FAR) -->
	<div class="leftcell" style="">
		<img src="/static/client/budget_icon.png" alt="$" align="left"
		style="height:20px; float: left; margin-top: 5px; 
		margin-right: 8px;" /> PLEDGED
	</div>
	
	<div class="rightcell" style="">
		$<?= number_format($project['crowdfund'],0,'',',') ?> &nbsp;<span style="color:#bbb; 
		font-size:15px; font-weight:500;">so far</span>
	</div>
	
	<!-- //////////////////////////////////////////////// -->
	
	<!-- MARKET PRICING -->
	<div class="leftcell" style="display:none;">
		<img src="/static/client/full_budget_icon.png" alt="$" align="left"
		style="height:20px; float: left; margin-top: 5px;
		margin-right: 8px;" /> MARKET
	</div>

	<div class="rightcell" style="display:none;">
		<!-- <?= number_format($project['price'],0,'',',') ?>  -->
		$<?= number_format($project['avg_proposal_amount'],0,'',',') ?> 
		&nbsp;<span style="color:#bbb; font-size:15px; font-weight:500;">ave. offer</span>
	</div>

<!--	<div class="leftcell" style="">
		<img src="/static/client/full_budget_icon.png" alt="$" align="left"
		style="height:20px; float: left; margin-top: 5px;
		margin-right: 8px;" /> RECOMM.
	</div>

	<div class="rightcell" style="">
		<?php if($project['budgetcf'] > 0) { ?>
			$<?= number_format($project['budgetcf'],0,'',',') ?> &nbsp;<span style="color:#bbb; 
			font-size:15px; font-weight:500;">by DevShares</span>
		<?php } else { ?>
			TBD &nbsp;<span style="color:#bbb; 
			font-size:15px; font-weight:500;">by DevShares</span>
		<?php } ?>
	</div>-->

	<div class="leftcell" style="">
		<img src="/static/images/client/host_icon.png" alt="H" align="left"
		style="height:20px; float: left; margin-top: 5px; 
		margin-right: 8px;" /> CREATOR
	</div>

	<div class="rightcell" style="">
		<?= $project['host'] ?>
	</div>

	<div class="leftcell" style="">
		<img src="/static/images/client/clock_icon_cool.png" alt="i" align="left"
		style="height:20px; float: left; margin-top: 5px; margin-right: 8px;" /> POSTED
	</div>

	<div class="rightcell" style="">
		<?= date('g:i a \o\n M d, Y',strtotime($project['timestamp_posted'])); ?>
	</div>
	
	<div class="leftcell" style="">
		<img src="/static/images/google_maps_icon/google_maps_marker.png" alt="M"
		style="height:20px; float: left; margin: 5px 8px 0 0;" align="left" />

		<!--<img src="/static/images/google_maps_icon/office-marker.png" alt="i" align="left" style="height:20px; float: left; margin-top: 5px; margin-right: 8px;" />--> LOCATION
	</div>

	<?php

	$maps_link_pl =  str_replace(array(',', ' ','&','&amp;'), array('%2C','+','and','and'), $project['location']);
	$maps_link_dl =  str_replace(array(',', ' ','&','&amp;'), array('%2C','+','and','and'), $project['location2']);
	//str_replace(array(',', '%20'), array('','-'), $link);
	?>

	<div class="rightcell" style="">
		<?php if ($project['location']=='FlipMob.com') { ?>
			FlipMob.com
		<?php } else { ?>		
			<a href="https://google.com/maps/search/?api=1&query=<?= $maps_link_pl ?>"
	        target="_blank" class="be-fc-orange"
	        title="Pickup Location"><?= $project['location'] ?> <i class="fa fa-external-link"></i></a>		
		<?php } ?>
	</div>
	<div class="clear"></div>
	<br />
	
	<div class="newblue" style="font-weight:500; width:100%; background:none; 
	font-size:15px; line-height:24px; font-weight:300; margin:0px 0 0px; color:#000;">
		tags:
		<!--
		https://devshares.com/listings?term=xyz&search_location=&search_location_lat=&search_location_lng=&search_distance=&search_category=&filter=1
		-->
		<?php
	$tags = explode (",", $project['tags']);
	foreach ($tags as $tag) {
		if (!empty($tag)) {
			echo "<a href='/nearby?term=" . trim($tag) . "&search_location=&search_location_lat=&search_location_lng=&search_distance=&search_category=&filter=1'>" . trim($tag) . "</a> &bull; ";
		}
	}
	?>
	</div>
	
	<br />
	<hr style="background:none; border-top:1px solid #ccc; margin-top:5px;
	margin-bottom:0px;" />
	
	<h2 style="line-height:33px;">
		<img src="/static/client/clipboard_modern.png" 
		alt="#" align="left" style="height:40px; margin:-4px 2px 0 0;" /> REQUEST CHANGES, ETC.
	</h2>
	
	<!-- sort, amount, quantity_desired, reward, eta, days -->
	<?php
	foreach ($project['backing'] as $req) {
		//echo "<pre>";
		//print_r($req);
		if ($req['cf_id'] > 0) {
			if ($req['sort']==99) {
				$req_status = "(Pending)";
				$pendingcolor = "color:#aaa;";				
			} else {
				$req_status = "(Accepted <img src='/static/client/green_checkmark_mini.png'
				alt='Accepted!' style='height:20px; margin-top:-3px;' align='middle'>)";
				$pendingcolor = "color:#00b550;";				
			}

		}
		if (!empty($req['cf_id'])) {
			$thumb = "<div style='border-radius:50px; overflow:hidden; height:25px; width:25px; display:inline'><a 
			href='/profile/" . $req['user']['user_slug'] . "'><img src='/static/images/users/agency/" . $req['user']['image'] . "' style='border-radius:50px; height:25px; object-fit:cover;' /></a></div>";
			
		} else {
			$thumb = "";
		}
		echo '<div style="display:block; background:none; margin-bottom:5px; min-height:25px; line-height:25px; width:100%">
		<div style="width:7%; display:inline-block; text-align:right; padding-right:1%; vertical-align: top;">' . $req['sort'] . '.</div>
				<div style="width:90%; display:inline-block; 
				text-align:left;' . $pendingcolor . '">' . $req['reward'] . ' ' . $req_status . ' ' . $thumb . '</div>
			</div>
			<div class="clear"></div>';
	}
	?>
	
	<div style="margin-top:15px; font-size:15px; color:#a6a6a6; font-weight:400;"> 
		Want to be part of this Flip Mob, but want to request a change or addition? Let the creator know...
		
		<?php if ($_SESSION['loggedin']) { ?>
			<a class="btn big btn-black req" href="#req"
				style="margin-bottom:10px !important; margin:10px auto 0; font-size:14px;">Add Request &raquo;</a>
	    <?php } else { ?>
			<a class="btn big btn-black" id="pleaselogin" href="javascript:;"
				style="margin-bottom:10px !important; margin:10px auto 0; font-size:14px;">Add Request &raquo;</a>
		<?php } ?>
	</div>

<!--<div class="leftcell" style="">
		<img src="/static/images/google_maps_icon/google_maps_marker.png" alt="M"
		style="height:20px; float: left; margin: 5px 8px 0 0;" align="left" /> DELIV.
	</div>

	<div class="rightcell" style="">
		<a href="https://google.com/maps/search/?api=1&query=<?= $maps_link_dl ?>"
        target="_blank" class="be-fc-orange"
        title="Delivery Location"><?= $project['location2'] ?>
			<i class="fa fa-external-link"></i></a>
	</div>-->

<!--									<div class="leftcell" style="">
		<img src="/static/images/google_maps_icon/office-marker.png"
		alt="i" align="left"
		style="height:20px; float: left; margin-top: 5px;
		margin-right: 8px;" /> DISTANCE
	</div>

	<div class="rightcell" style="">
		<div id="distance"></div>
	</div>-->

	<!--<img src="/static/images/google_maps_icon/office-marker.png"
	alt="i" style="height:15px;"> <b>Location:</b> <?= $project['location'] ?><br />
	<input type='hidden' name='location_lat' value="<?= $project['location_lat']; ?>"/>
	<input type='hidden' name='location_lng' value="<?= $project['location_lng']; ?>" />-->



	<!--<p class="rs post-by">&nbsp;Posted by
	<a href="/profile/<?= $project['user']['user_slug'] ?>"
	class="fc-n fc-gray be-fc-orange"><?= $project['user']['name'] ?></a> at
	<span class="fw-n fc-gray"><?= $project['user']['location'] ?></span><br />
	Price/Ticket: <?= $project['specific_fee'] ?>
	</p>-->
	<br />
	<hr style="background:none; border-top:1px solid #ccc; margin-top:5px; margin-bottom:0px;" />
	<br />

<!--									<div style="font-size:17px; line-height:27px;">
		<span style="font-weight:700; font-size:11px;">MORE ABOUT</span><br />
		<?= $project['description'] ?>
	</div>
	<br />-->
	<div style="font-size:14px; line-height:22px;">
		<span style="font-weight:700; font-size:11px;">TERMS</span><br />
		<?= $project['terms'] !='' ? $project['terms'] : "TBD" ?>
	</div>

	<!--<br /><br />-->

	<div style="display:none; float:left; inline-block; margin:5px; 
	background:none; text-align:center;">
		<div style="height:15px; text-transform:uppercase; 
		font-size:11px; font-weight:600;">Click to visit or 
		call (on mobile)</div>
		<div class="clear"></div>
		<a href="//<?= $project['website']; ?>">
			<div class="circle">
				<i class="fa fa-desktop"></i> Website</div></a>
		<a href="tel:<?= $project['phone']; ?>">
			<div class="circle">
				<i class="fa fa-phone"></i> <?= $project['phone']; ?></div></a>
	</div>

	<div class="clear"></div>

	<?php
	$maps_link = "https://maps.google.com/maps?q=" . $project['location_lat'] . "," . $project['location_lng'];
	$biz_name = str_replace(array(',', ' ','&','&amp;'), array('%2C','+','and','and'), $project['title']);
	$maps_link2 =  str_replace(array(',', ' ','&','&amp;'), array('%2C','+','and','and'), $project['location']);
	$maps_link3 =  str_replace(array(',', ' ','&','&amp;'), array('%2C','+','and','and'), $project['location2']);
	//str_replace(array(',', '%20'), array('','-'), $link);
	?>

	<!--									<img src="/static/images/google_maps_icon/google_maps_marker.png" alt="Map"
	style="height:20px;"> <b>Pickup Location:</b>
	<a href="https://google.com/maps/search/?api=1&query=<?= $maps_link2 ?>"
        target="_blank" class="be-fc-orange"><?= $project['location'] ?>
		<i class="fa fa-external-link"></i></a><br />
		
	<br />
	
	<img src="/static/images/google_maps_icon/google_maps_marker.png" alt="Map"
	style="height:20px;"> <b>Delivery Location:</b>
	<a href="https://google.com/maps/search/?api=1&query=<?= $maps_link3 ?>"
        target="_blank" class="be-fc-orange"><?= $project['location2'] ?>
		<i class="fa fa-external-link"></i></a><br />-->

	<br />
	<?php if ($_SESSION['loggedin']) { ?>
    <div class="project-btn-action" style="text-align: center; padding:10px 0 0;">

        <!--<a class="btn big btn-black proposal" href="#proposal" 
			style="margin-bottom:10px !important; margin:0 auto; 
			font-size:14px;">Submit Offer</a>
		&nbsp;&nbsp;&nbsp;-->
        <a class="btn big btn-black review" href="#review" 
			style="margin-bottom:10px !important; margin:0 auto; 
			font-size:14px;">Leave Comment</a>
        
        <!--<a class="btn big btn-black" href="#" 
        style="margin-bottom:10px; margin:0 auto;">Report this Job</a>-->
    </div>
	<?php } else { ?>
	    <div class="project-btn-action" style="text-align: center; padding:10px 0 0;">

	        <!--<a id="pleaselogin" class="btn big btn-black proposal" href="javascript:;" 
				style="margin-bottom:10px !important; margin:0 auto; 
				font-size:14px;">Submit Offer</a>
			&nbsp;&nbsp;&nbsp;-->
			<a  id="pleaselogin2" class="btn big btn-black review" href="javascript:;" 
				style="margin-bottom:10px !important; margin:0 auto; 
				font-size:14px;">Leave Comment</a>
	        
	        <!--<a class="btn big btn-black" href="#" 
	        style="margin-bottom:10px; margin:0 auto;">Report this Job</a>-->
	    </div>                            
	<?php } ?>
	
	<br />
	
	<span style="font-weight:600">SHARE THIS</span> WITH OTHERS TO EARN A PERCENTAGE ($)
	<br />
	<textarea style="width:90%; height:44px; margin-top:10px; margin-bottom:3px; font-size:17px;
            text-align:left; padding:10px 8px 8px; border:1px solid #ccc; font-weight:300;
            -moz-border-radius: 5px; border-radius: 5px; -webkit-border-radius: 5px; background:#fff;
			color:#333;" rows="3" 
			onclick="this.focus();this.select()">https://flipmob.com/listing/<?= $project['id'] ?></textarea>
	<br />
	<div style="display:none; font-weight:300; font-size:11px; line-height:17px;">
		Note: r = referral + your ID &amp; s = solution + the Listing ID
	</div>
	
	<br />
				
	<div style="display:nonex; font-weight:300; height:auto; text-align:center;">
		<img src="/3rdparty/phpqrcode/listings/listing_<?= $project['id'] ?>.png"
		style="height:150px; margin-top:0px; border:0px solid #ddd;
		box-shadow: 0 3px 10px rgb(0 0 0 / 20%);">
	</div>
	
	<br /><br />
	<!-- PAGEVIEWS -->
	<div class="" style="text-align:center; padding:0 0 20px 0; font-weight:300; font-size:14px;">

		<div style="float:left; width:50%; background:none; text-align:right;">
			<div style="padding:0px">
				<img src="/static/images/client/counter_icon.png" alt="i" align="absmiddle"
				style="height:20px; margin-bottom: 2px; margin-right: 2px;">
				<span class="val"><span class="fw-b"><?= number_format($pageviews,0,'',','); ?></span>
				Pageviews</span>
			</div>
		</div>
		<div style="float:left; width:50%; background:none; text-align:left;">
			<div style="padding:0px">
				<img src="/static/images/client/counter_icon.png" alt="i" align="absmiddle"
				style="height:20px; margin-bottom: 2px; margin-left:11px; margin-right: 2px;">
				<span class="val"><span class="fw-b"><?= number_format($uniqueviews,0,'',','); ?></span>
				Uniques</span>
			</div>
		</div>
		<div class="clear"></div>
	</div> 