@extends('layouts.default', [ 'title' => $item->name, 'image' => $item->thumbnail() ]) @section('meta') isTimed()) data-onsale-until="{{ $item->onsale_until->format('Y-m-d H:i') }}" @endif > @endsection @section('css') @endsection @section('js') @if ($item->isTimed()) @endif @endsection @section('content') @if (!$item->public_view)
This item is not public.
@endif
@if (Auth::check() && Auth::user()->ownsItem($item->id))
@endif @if (Auth::check() && ($item->creator_type == 'group' || ($item->creator_type == 'user' && $item->creator->id != Auth::user()->id && !$item->creator->isStaff()))) @endif

{{ $item->name }}

Created by {{ $item->creatorName() }} @if ($item->creator_type == 'user' && $item->creator->is_verified) @endif
{!! (!empty($item->description)) ? nl2br(e($item->description)) : '
This item does not have a description.
' !!}
{{ $item->creatorName() }} @if ($item->creator_type == 'user' && $item->creator->is_verified) @endif
@if ($item->isTimed())
@endif @if ($item->limited)
{{ ($item->stock > 0) ? "{$item->stock} LEFT" : 'SOLD OUT' }}
@endif @auth @if (site_setting('catalog_purchases_enabled') && $item->status == 'approved' && $item->onsale()) @if (!Auth::user()->ownsItem($item->id)) @else @endif @endif @if (Auth::user()->canEditItem($item->id)) Edit @endif @if (Auth::user()->isStaff() && Auth::user()->staff('can_view_item_info')) View in Panel @endif @if (Auth::user()->isStaff() && Auth::user()->staff('can_edit_item_info') && !in_array($item->type, ['tshirt', 'shirt', 'pants'])) Edit in Panel @endif @endauth

Suggested Items

@forelse ($suggestions as $suggestion)
@if ($suggestion->limited)
C
@endif
{{ $suggestion->name }}
@if ($suggestion->onsale() && $suggestion->price == 0) Free @elseif (!$suggestion->onsale()) Off Sale @else {{ number_format($suggestion->price) }} @endif @if ($suggestion->limited)
{{ ($suggestion->stock > 0) ? "{$suggestion->stock} LEFT" : 'SOLD OUT' }}
@endif
@empty
No items found.
@endforelse
@if ($item->limited && $item->stock <= 0)

Resellers

@if (Auth::check() && Auth::user()->ownsItem($item->id) && !empty(Auth::user()->resellableCopiesOfItem($item->id)))
@endif
@forelse ($item->resellers() as $listing)

{{ $listing->seller->username }} @if ($listing->seller->is_verified) @endif

@if (!Auth::check() || Auth::user()->id != $listing->seller->id) @else
@csrf
@endif
@empty

No one is currently reselling this item.

@endforelse
{{ $item->resellers()->onEachSide(1) }} @endif @if (Auth::check()) @if ($item->onsale() && $item->status == 'approved' && (!Auth::user()->ownsItem($item->id))) @endif @if ($item->limited && $item->stock <= 0) @if (Auth::user()->ownsItem($item->id) && !empty(Auth::user()->resellableCopiesOfItem($item->id))) @endif @foreach ($item->resellers() as $listing) @endforeach @endif @endif @endsection