@if (isset($item))
    <div class="col-sm-6 col-md-4 col-lg-3 mt-4">
        <div class="fine card" data-item-id="{{ $item->id }}">
            <img class="card-img-top" src="{{ route('images',$item->picture[0]->path ?? "items/default") }}">
            <div class="card-block">
                <figure class="profile">
                    <a href="{{ route('user.profile',$item->user) }}">
                        <img class="profile-avatar" title="{{ $item->user->nickname }}"
                             src="{{ route('images', 'avatar') }}">
                    </a>
                </figure>
                <h5 class="card-title mt-3">{{ $item->caption }}</h5>
                <div class="meta">
                    <a href="{{ app_path('category/'.$item->category->id) }}">{{ $item->category->title }}</a>
                </div>
                <div class="card-text">
                    {{ $item->description }}
                </div>
                <a class="btn btn-outline-primary float-right btn-sm" role="button"
                   href="{{ route('item.info',$item->id) }}">детальнее</a>
            </div>

            <div class="card-footer">
                <small>@monthDate($item->updated_at)</small>
                @if (!isset($offered))
                    <a href="{{ route('item.info',$item->id) }}">
                        <i class="glyphicon glyphicon-transfer" onclick="createOffer(this)"></i>
                    </a>
                @endif
            </div>
        </div>
    </div>
@endif