@extends('app') @section('content')
{!! Html::lines_menu([], $line->id) !!}
@foreach(explode(' ', trim($collection->name)) as $item) @if(strlen($item) < 3 and $carry = (@$carry ? $carry.' ' : '').$item) @elseif(!@$carry and $carry = '') @else {{ ($carry ? ($carry.' ' ) : '').$item.($carry = '') }}
@endif @endforeach @if(isset($carry) and strlen($carry)) {{ $carry }} @endif
@foreach($sets as $set)
@if($photo = $set->photos->pop()) @if($second = $set->photos->pop())
{!!Html::image($second->photo->url('medium')) !!} {!!Html::image($photo->photo->url('medium')) !!}
@else {!!Html::image($photo->photo->url('medium')) !!} @endif @endif

{!! str_replace('-', '
', $set->name) !!}

$ {{number_format($set->combinations->sum('price'), 2)}}

@if($set->combinations->filter(function($item){ return $item->stock->count() > 0; })->count() > 0) @else

AGOTADO

@endif
@endforeach

Producto


Producto agotado

{{$line->name}}

0

N/A

N/A

$ 0.00


@endsection @section('footer')
{!! $sets->appends(['search' => Input::get('search')])->render() !!}
{!! Form::open([ 'method' => 'GET', 'id' => 'search-form' ]) !!}
{!! Form::text('search', Input::get('search'), ['class' => 'form-control']) !!}
{!! Form::close() !!}
@endsection @section('style') {!! Html::style('css/store.css') !!} @endsection @section('script') {!! Html::script('js/laroute.js') !!} {!! Html::script('js/numeral/numeral.js') !!} {!! Html::script('js/collection.show.js')!!} {!! Html::script('js/store.js')!!} @stop