@extends('layouts/app') {{--@section('keywords', $keywords)--}} @if($paramsobj->sector) @php $sectorname = $paramsobj->sector->name @endphp @else @php $sectorname = null @endphp @endif @if($category->id) @section('description', 'www.WebMoto.us – Online Motorcycle Trader! List of ads by category: '.$sectorname.' - '.$category->name ) @endif @if($marka) @section('description', 'www.WebMoto.us – Online Motorcycle Trader! List of ads by category: '.$paramsobj->adds->sector->name .'-'. $marka->name ) @endif @if($category->id) @section('og:title', 'www.WebMoto.us – List of ads by category: '.$sectorname.' - '.$category->name ) @endif @if($marka) @section('og:title', 'www.WebMoto.us – ! List of ads by category: '.$paramsobj->adds->sector->name .'-'.$marka->name ) @endif @section('og:url', request()->url()) @section('og:image', 'http://webmoto.niko.com/images/main/logo.png') @if($category->id) @section('og:description', 'www.WebMoto.us – Online Motorcycle Trader! List of ads by category: '.$sectorname.' - '.$category->name ) @endif @if($marka) @section('og:description', 'www.WebMoto.us – Online Motorcycle Trader! List of ads by category: '.$paramsobj->adds->sector->name .'-'.$marka->name ) @endif @if($category->id) @section('title', 'www.WebMoto.us – List of ads by category: '.$sectorname.' - '.$category->name ) @endif @if($marka) @section('title', 'List of ads by category: '.$paramsobj->adds->sector->name .'-'.$marka->name ) @endif @section('content')
{{----}} {{----}}
@php $i = 0; @endphp @foreach($paramsobj->motoadds as $items) @php $i++; @endphp @if($i == 8)
  • @include('layouts.banners', ['banner' => 'emission-bew-adds'])
@endif
  • {{--@include('layouts.banners', ['banner' => 'emission-bew-adds'])--}}
    {{ $items->title }}
    @if (strtotime($items->updated_at) > strtotime(\Carbon\Carbon::now()->subDays(5))) NEW @endif @if ($items->vip == 1) FEATURED @endif
    @if ($items->addgodina) {{ @$items->addgodina }} yr. | @endif @if ($items->addkilometri) {{ @$items->addkilometri }} mi. | @endif @if ($items->addkubatura) {{ @$items->addkubatura }} .cc @endif @if ($items->tirewidth) {{ @head($items->tirewidth)->name }} / @endif @if ($items->tireheight) {{ @head($items->tireheight)->name }} @endif @if ($items->tirediameter) ZR-{{ @head($items->tirediameter)->name }} @endif @if ($items->tireposition) | {{ @head($items->tireposition)->name }} @endif
    @if($items->categoryname) : @if(count($items->categoryname->parents) != '0') @if(count($items->categoryname->parents) == '1') {{ array_first($items->categoryname->parents)->name }} | @else @if($items->categoryname->parents) @foreach(array_sort_recursive($items->categoryname->parents) as $catsitems) {{ $catsitems->name }} | @endforeach @endif @endif @endif {{ $items->categoryname->name }} @endif
    @if ($items->isfavoriadd) @else @endif
    Seen: {{ $items->visit }} | Saved: {{ $items->favcount }} | {{ $items->location }}
    @if ($items->promo_price) {{ $items->price .' '. @head($items->valuta)->value}} @endif @if ($items->promo_price) {{ $items->promo_price.' '. @head($items->valuta)->value }} @else {{ $items->price }} @if (array_has(@head($items->valuta), 'value')) {{ @head($items->valuta)->value }} @else $. @endif @endif
    {{ @$items->imagescount }}{{ @$items->video }}
    @if ($items->vendor_id) @else private seller: @endif

@endforeach
{{ $paramsobj->motoadds->appends(request()->input())->links() }}
@include('layouts.sidebar', ['hotlinks' => true, 'sidemenucats' => false]) @include('layouts.banners', ['banner' => '300x600x1']) @include('layouts.sidebar', ['hotlinks' => false, 'sidemenucats' => true])
@include('layouts.catsbox') @endsection