@extends('home.user_shops.layout') @section('home.user_shops-title') Shop Index @endsection @section('home.user_shops-content') {!! breadcrumbs(['User Shops' => 'user-shops/shop-index']) !!}

User Shops

These are user-owned shops that sell items. Not to be confused with official, admin-made shops.

Search by Items
@if (Auth::user()->isStaff)
You can see hidden shops and shops from banned users because you are staff.
@endif
{!! Form::open(['method' => 'GET', 'class' => 'form-inline justify-content-end']) !!}
{!! Form::text('name', Request::get('name'), [ 'class' => 'form-control', 'placeholder' => 'Search by Shop Name', ]) !!}
{!! Form::select( 'sort', [ 'alpha' => 'Sort Alphabetically (A-Z)', 'alpha-reverse' => 'Sort Alphabetically (Z-A)', 'newest' => 'Newest First', 'oldest' => 'Oldest First', 'update' => 'Sort Last Updated (New-Old)', 'update-reverse' => 'Sort Last Updated (Old-New)', ], Request::get('sort') ?: 'category', ['class' => 'form-control'], ) !!}
{!! Form::submit('Search', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
{!! $shops->render() !!}
@foreach ($shops as $shop)
@if ($shop->has_image) @endif
{!! $shop->displayName !!}
Owned by {!! $shop->user->displayName !!}
Stock: {{ $shop->visibleStock->count() }}
@endforeach
{!! $shops->render() !!}
{{ $shops->total() }} result{{ $shops->total() == 1 ? '' : 's' }} found.
View purchase logs...
@endsection