@if (!$stock)
Invalid item selected.
@else
{{ $stock->item->name }}
{{ $stock->item->name }}
Cost: {!! $stock->currency->display($stock->cost) !!}
Stock: {{ $stock->quantity }}
@if ($stock->item->parsed_description)
Description
{!! $stock->item->parsed_description !!}
@endif @if (Auth::check())
Purchase In Inventory: {{ $userOwned->pluck('count')->sum() }}
{!! Form::open(['url' => 'user-shops/shop/buy']) !!} {!! Form::hidden('user_shop_id', $shop->id) !!} {!! Form::hidden('stock_id', $stock->id) !!} {!! Form::label('quantity', 'Quantity') !!} {!! Form::selectRange('quantity', 1, $stock->quantity, 1, ['class' => 'form-control mb-3']) !!}

This item will be paid for using your user account bank.

{!! Form::hidden('bank', 'user') !!}
{!! Form::submit('Purchase', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @else
You must be logged in to purchase this item.
@endif @endif