@php $ad_cat = $item->ads_category()->first(); $mainImage = $item->images()->orderBy('is_main', 'DESC')->first(); @endphp @extends('salvosites.templates.main-template') @section('page_title') @stop @section('breadcrumb') {{ $item->name}} @stop @section('title-increment') {{ $item->name}} - @stop @section('head') description ), $limit = 250, $end = '...') }}"> description )) }}"> @stop @section('content') @if(auth()->id() == $item->user_id) @endif
@if ($mainImage) {!! Html::image(imagePath('items/' . $item->id . '/' . urlencode($mainImage->name)), ($mainImage->description ? e($mainImage->description) : $item->name), ['class' => 'u-max-full-width']) !!} @foreach ($item->images()->orderBy('is_main', 'DESC')->where('id', '!=', $mainImage->id)->get()->chunk(4) as $chunk) @endforeach @endif
@if($adsItems->item_name)

{{ $item->name}}

@endif @if($item->description)

{{ $item->description }}

@endif @if($adsItems->price && $item->price)

{{$item->price}}

@endif @if($item->quantity_in_stock)

Quantity in stock: {{$item->quantity_in_stock}}

@endif @if($adsItems->item_id)

ID: {{ $item->id }}

@endif