Русское сообщество разработки на PHP-фреймворке Laravel.
Ты не вошёл. Вход тут.
@section('content')
{{ HTML::style('/css/custom/brand.css') }}
{{ HTML::style('/css/custom/filter.css') }}
{{ HTML::style('/js/fancybox/jquery.fancybox-1.3.4.css') }}
{{ HTML::style('/js/trackbar/trackbar.css') }}
{{ HTML::script('/js/trackbar/jquery.trackbar.js') }}
{{ HTML::script('/js/trackbar/shop-script2.js') }}
<section id="brand" class="content">
<div class="row rows">
@if ($result && !$result->isEmpty())
<div id="title">{{ $result->get(0)->brand->name }}</div>
<hr />
<div id="links" class="col-md-12">
<a href="{{ Request::root() . '/brand/' . $result->get(0)->brand->slag_name . '/male' }}">Мужские</a>
<a href="{{ Request::root() . '/brand/' . $result->get(0)->brand->slag_name . '/female' }}">Женские</a>
</div>
<aside id="products-container" class="col-md-8">
@foreach ($result as $product)
<div class="col-md-4 product">
@if ($product->nalichie == 1)
<h4 id="nalichie">В наличии </h4>
@else
<h4 id="nalichienet">Под заказ </h4>
@endif
<a href="{{ Request::root() }}/details/{{ $product->id }}">
{{ HTML::image('/img/prod_img/' . $product->main_image, '', array('class' => 'main-image')) }}
</a>
@if (!is_null($product->brand->sale))
{{ HTML::image('/img/sales/' . $product->brand->sale . '.png', '', array('class' => 'sale-img')) }}
@endif
<span class="prod-name">{{ $product->brand->name }}
{{ $product->name }}</span>
<h5> Интернет маг.<font style="margin-left: 7px;"><strong><font style="text-decoration:underline; ">{{ $product->price }}</font></strong> руб.</font></h5>
<h5> Розничный маг.<strong>{{ $product->pricemag }}</strong> руб.</h5>
<div class="button-wrapper">
<button class="btn btn-primary buy hidden" data-prod-id="{{ $product->id }}">
Купить
</button>
</div>
</div>
@endforeach
</aside>
<aside id="filters">
{{ Form::open(array('url' => Request::url())) }}
<div id="filters-title">Выбор по параметрам:</div>
<div id="filters-price" class="filters-item">
<label>Розничная цена</label><br />
<input type="text" id="min-price" name="min-price" class="form-control input-sm" />
<div class="spring"></div>
<input type="text" id="max-price" name="max-price" class="form-control input-sm" />
<div id="blocktrackbar">trackbar</div>
</div>
<!--<div class="hidden-filters">-->
<div id="filters-diameter" class="filters-item">
<label>Диаметр</label><br />
<input type="text" name="min-diameter" class="form-control input-sm left" />
<div class="spring"></div>
<input type="text" name="max-diameter" class="form-control input-sm right" />
</div>
<div id="filters-thickness" class="filters-item">
<label>Толщина</label><br />
<input type="text" name="min-thickness" class="form-control input-sm left" />
<div class="spring"></div>
<input type="text" name="max-thickness" class="form-control input-sm right" />
</div>
<!--</div>-->
@foreach ($open_filters as $filter)
<div id="{{ 'filters-' . $filter->ascii_name }}" class="filters-item">
<label class="filter-name">{{ $filter->name }}</label><br />
<div class="checkboxses">
@foreach ($filter->option_values as $value)
<input type="checkbox" name="{{ $filter->ascii_name . '[]' }}" value="{{ $value->ascii_name }}" />
<span>{{ $value->name }}</span><br />
@endforeach
</div>
</div>
@endforeach
<!--<span id="show-flters">Показать больше фильтров</span>-->
<br />
<div class="hidden-filters">
@foreach ($hidden_filters as $filter)
<div id="{{ 'filters-' . $filter->ascii_name }}" class="filters-item">
<label class="filter-name">{{ $filter->name }}</label><br />
<div class="checkboxses">
@foreach ($filter->option_values as $value)
<input type="checkbox" name="{{ $filter->ascii_name . '[]' }}" value="{{ $value->ascii_name }}" />
<span>{{ $value->name }}</span><br />
@endforeach
</div>
</div>
@endforeach
<span id="hide-flters">Скрыть дополнительные фильтры</span>
</div>
<input id="submit" type="submit" value="Показать" />
<input id="reset" type="reset" value="Сбросить" />
{{ Form::close() }}
</aside>
@else
<h1>По Вашему запросу ничего не найдено</h1>
@endif
</div>
@include ('modals.added-to-cart')
{{ HTML::script('/js/custom/brand.js') }}
</section>
@show
ErrorException
in_array() expects parameter 2 to be array, string given
open: /home/user1129781/www/vetervremeni.by/clari-viri/app/controllers/public/BrandController.php
}
}
)
)
->get();
// apply filters
$result = $this->applyFilters($filters, $brand);
$hidden_filters = $this->getHiddenFilters();
$open_filters = $this->getOpenFilters();
ErrorException
in_array() expects parameter 2 to be array, string given
open: /home/user1129781/www/vetervremeni.by/clari-viri/app/controllers/public/BrandController.php
{
foreach ($options as $option) {
foreach ($keys as $key) {
if (in_array($key, $option)) {
foreach ($values as $value) {
if (in_array($option['value_ascii_name'], $value)) {
$result->push($item);
}
ErrorException
in_array() expects parameter 2 to be array, string given
open: /home/user1129781/www/vetervremeni.by/clari-viri/app/controllers/public/BrandController.php
{
foreach ($options as $option) {
foreach ($keys as $key) {
if (in_array($key, $option)) {
foreach ($values as $value) {
if (in_array($option['value_ascii_name'], $value)) {
$result->push($item);
}