Example #1
0
@foreach($staffers as $staffer)
	<?php 
$imgUrl = \App\Library\Vxy::img($staffer->avatar_host, $staffer->avatar_cuts, $staffer->avatar_path);
$x1 = $user->getXy($addressLast)->x;
$y1 = $user->getXy($addressLast)->y;
$x2 = $staffer->shop->address_loc->x;
$y2 = $staffer->shop->address_loc->y;
$distance = \App\Library\Vxy::distance($x1, $y1, $x2, $y2);
?>
	
	<div class="clearfix radius4px bg-white mb10px p10px staffer_block">
		<div class="clearfix">
			<div class="media">
			  	<div class="media-left">
			  		<a href="/staffer/show/{{$staffer->id}}">
			      		<img class="media-object img-circle" height="90" width="90" src="{{$imgUrl}}" alt="{{$staffer->title}}">
			  		</a>
			  	</div>
			  	<div class="media-body">
			  		<div class="clearfix mb10px">
						<button type="button" class="close pull-right btn_favorite_cancel" aria-label="Close" rel="{{$staffer->id}}"><span aria-hidden="true">&times;</span></button>
			  			<a href="/staffer/show/{{$staffer->id}}">
			  				<h4 class="c-red m0">{{$staffer->title}}</h4>
			  			</a>
			  		</div>

			  		<div class="clearfix c-gray">
			  			<a href="/staffer/show/{{$staffer->id}}">
			  				<p><i class="fa fa-circle-o c-green"></i> {{$staffer->tact}}年</p>
			  				<p><i class="fa fa-circle-o c-orange"></i> {{$staffer->stats->sms}}单</p>
			  				<p><i class="fa fa-circle-o c-purple"></i> {{$distance}} km</p>
Example #2
0
						<div class="col-xs-6" style="padding:5px 5px 5px 0;">
							<a class="display-block c-gray align-center p10px bd bd-gray bd-1px bd-bottom bd-right" href="#photo" aria-controls="photo" role="tab" data-toggle="tab">相册</a>
						</div>
					</div>

					<div class="tab-content">
					    <div role="tabpanel" class="tab-pane fade in active" id="tote">
					    	<div class="clearfix">
					    		<div class="row">
						    		@if(count($staffer->shop->totes)>0)

						    			@foreach($staffer->shop->totes as $key => $tote)

											<?php 
if (isset($tote->avatar_host)) {
    $imgUrl = \App\Library\Vxy::img($tote->avatar_host, $tote->avatar_cuts, $tote->avatar_path);
} else {
    $imgUrl = '';
}
?>

											<div class="col-xs-6 px5px mb5px">
												<a class="tote" href="javascript:" data-price="{{$tote->price}}" data-duration="{{$tote->duration}}" data-toteid="{{$tote->id}}" data-rise="{{$tote->rise}}" data-roof="{{$tote->roof}}">
													<div class="clearfix bg-white bd bd-gray bd-solid bd-1px">
														<div class="clearfix">
															<img class="img-res" src="{{$imgUrl or ''}}" alt="{{$tote->name}}">
														</div>
														<div class="clearfix p5px">
															<p class="c-red"><small class="c-iron">{{$tote->name}}</small> ¥{{$tote->price}}</p>
															<p class="c-gray"><small>
																<i class="fa fa-clock-o c-kiwi"></i> {{$tote->duration}}