@extends('home.layout') @section('home-title') Wishlists: {{ $wishlist ? $wishlist->name : 'Default' }} @endsection @section('home-content') {!! breadcrumbs(['Wishlists' => 'wishlists', $wishlist ? $wishlist->name : 'Default' => 'wishlists/' . ($wishlist ? $wishlist->id : 'default')]) !!}

Wishlist: {{ $wishlist ? $wishlist->name : 'Default' }} @if ($wishlist)
Edit Wishlist Delete Wishlist
@endif

{!! Form::open(['method' => 'GET', 'class' => '']) !!}
{!! Form::text('name', Request::get('name'), ['class' => 'form-control', 'placeholder' => 'Name']) !!}
{!! Form::select( 'sort', [ 'alpha' => 'Sort Alphabetically (A-Z)', 'alpha-reverse' => 'Sort Alphabetically (Z-A)', 'newest' => 'Newest First', 'oldest' => 'Oldest First', ], Request::get('sort') ?: 'category', ['class' => 'form-control'], ) !!}
{!! Form::submit('Search', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@if (!count($items))

No items found.

@else {!! $items->render() !!}
Name
Category
Count {!! add_help('Set to 0 to remove an item from this wishlist.') !!}
@foreach ($items as $item)
@if (isset($item->item->imageUrl)) {{ $item->item->name }} @endif{!! $item->item->displayName !!}
{{ $item->item->category ? $item->item->category->name : '' }}
{!! Form::open(['url' => $wishlist ? 'wishlists/' . $wishlist->id . '/update/' . $item->item->id : 'wishlists/default/update/' . $item->item->id]) !!}
{!! Form::number('count', $item->count, ['class' => 'form-control', 'aria-describedby' => 'editButton-' . $item->id]) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary', 'id' => 'editButton-' . $item->id]) !!}
{!! Form::close() !!}
@endforeach
{!! $items->render() !!} @endif @endsection @section('scripts') @if ($wishlist) @endif @endsection