$user_details = Agriya\Webshoppack\CUtil::getUserDetails($p_details['product_user_id']); ?> <div class="mb20"> {{-- Price details start --}} @if($p_details['is_free_product'] == 'No') <?php $product_price = Agriya\Webshoppack\CUtil::getCurrencyBasedAmount($p_details['product_price'], $p_details['product_price_usd'], $p_details['product_price_currency']); $product_price_arr = Agriya\Webshoppack\CUtil::getCurrencyBasedAmount($p_details['product_price'], $p_details['product_price_usd'], $p_details['product_price_currency'], true); $discount_price = 0; if ($p_details['product_discount_todate'] != '0000-00-00' || $p_details['product_discount_fromdate'] != '0000-00-00') { $discount_from_date = strtotime($p_details['product_discount_fromdate']); $discount_end_date = strtotime($p_details['product_discount_todate']); $curr_date = strtotime(date('Y-m-d')); if ($discount_end_date >= $curr_date && $discount_from_date <= $curr_date) { $discount_price = Agriya\Webshoppack\CUtil::getCurrencyBasedAmount($p_details['product_discount_price'], $p_details['product_discount_price_usd'], $p_details['product_price_currency']); $discount_price_arr = Agriya\Webshoppack\CUtil::getCurrencyBasedAmount($p_details['product_discount_price'], $p_details['product_discount_price_usd'], $p_details['product_price_currency'], true); } } ?> @endif <?php $enable_serivices = true; ?> @include('webshoppack::admin.displayProductPrice') {{-- Price details end --}} </div>
<td> <p>{{ HTML::link($product_view_url, $prd->product_name, array('target' => '_blank')) }}</p> <p class="text-muted"> {{{ implode(' / ', $category_arr) }}} </p> </td> <td>{{ $user_details['display_name'] }}</td> <td> @if($prd->is_free_product == 'Yes') <span class="text-success">{{ trans('webshoppack::admin/productList.product_free') }}</span> @else <?php $product_price = Agriya\Webshoppack\CUtil::getBaseAmountToDisplay($prd->product_price, $prd->product_price_currency); $discount_price = 0; if ($prd->product_discount_todate != '0000-00-00' || $prd->product_discount_fromdate != '0000-00-00') { $discount_from_date = date('M j, Y', strtotime($prd->product_discount_fromdate)); $discount_end_date = date('M j, Y', strtotime($prd->product_discount_todate)); $discount_price = Agriya\Webshoppack\CUtil::getBaseAmountToDisplay($prd->product_discount_price, $prd->product_price_currency); } ?> <p> <span class="pull-left">»</span> <span class="block ml15"> <span class="text-muted">{{ trans('webshoppack::admin/productList.product_product_price') }}:</span> {{ $product_price }} @if($prd->product_price_currency != 'USD') ($ {{ $prd->product_price_usd }} ) @endif </span> </p> @if(!empty($discount_price)) <div> <p>
<section class="col-lg-9"> {{-- Listing block start --}} <div class="well"> {{ Form::open(array('id'=>'shopsListfrm', 'method'=>'get','class' => 'form-horizontal form-request' )) }} @if(count($shops_list)) <ul class="list-unstyled shop-list"> <?php //$service_obj = new ProductService; ?> @foreach($shops_list as $shop) <?php $shop_user_details = array("first_name" => $shop->first_name, "last_name" => $shop->last_name, "user_code" => $shop->user_code); $shop_details['url_slug'] = $shop->url_slug; $shop_items = $service_obj->fetchShopItems($shop->user_id, 0, 3); $shop_url = $service_obj->getProductShopURL($shop->id, $shop_details); $user_details = Agriya\Webshoppack\CUtil::getUserDetails($shop->user_id); //, 'all', $shop_user_details ?> <li class="pro-lists store-lists clearfix"> <div class="pull-left"> <div class="pro-listsdetail"> <p><a href="{{ URL::to(Config::get('webshoppack::shop_uri').'/'.$shop->url_slug) }}" title="{{{ $shop->shop_name }}}" class="light-link font-s18"><strong>{{{ $shop->shop_name }}}</strong></a></p> @if($shop->shop_city != '' && $shop->shop_state != '' && $shop->shop_country != '') <p>{{{ $shop->shop_city }}}, {{{ $shop->shop_state }}}, {{{ $country_arr[$shop->shop_country] }}}</p> @elseif($shop->shop_state != '' && $shop->shop_country != '') <p>{{{ $shop->shop_state }}}, {{{ $shop->shop_country }}}</p> @elseif($shop->shop_country != '') <p>{{{ $country_arr[$shop->shop_country] }}}</p> @endif <p>{{ trans('webshoppack::shop.listShops.shop_owner') }}: <a href="{{$user_details['profile_url']}}" title="{{ $user_details['display_name'] }}" class="btn-link">{{ $user_details['display_name'] }}</a></p> </div>
</div> <ul class="list-unstyled no-mar clearfix"> <li><i class="fa fa-angle-right"></i><span><a href="{{$default_section_details['section_view_url']}}" title="{{$default_section_details['section_name']}}">{{$default_section_details['section_name']}} ({{ $default_section_details['section_count'] }})</a></span></li> @foreach($section_details AS $section) <?php $section_view_url = $shop_view_url . "?section_id=" . $section['id']; ?> <li><i class="fa fa-angle-right"></i><span><a href="{{$section_view_url}}" title="{{{ $section['section_name'] }}}">{{{ $section['section_name'] }}} ({{ $section['section_count'] }})</a></span></li> @endforeach </ul> </div> @endif <div class="aside-bar"> <div class="title-block"> <h3>{{ trans("webshoppack::shop.shop_owner") }}</h3> </div> <?php $user_details = Agriya\Webshoppack\CUtil::getUserDetails($shop_details['user_id']); ?> <a href='{{$user_details['profile_url']}}' class="light-link">{{ $user_details['display_name'] }}</a> <ul class="list-unstyled no-mar clearfix"> <li><i class="fa fa-angle-right"></i><span><a href="{{$user_details['profile_url']}}" title="">{{ trans("webshoppack::shop.profile_label") }}</a></span></li> @if(Config::get("webshoppack::is_logged_in")) @if(!$viewShopServiceObj->current_user) <li><i class="fa fa-angle-right"></i><span><a href="{{ Url::to(Config::get('webshoppack::shop_uri').'/user/message/add/'.$user_details['user_code']) }}" class="fn_signuppop">{{ trans("webshoppack::shop.contact_label") }}</a></span></li> @endif @endif </ul> </div> </aside>