@extends('layouts/app') @section('header_styles') @endsection @section('content') Edit ads - Motorcycles Category: Motorcycles {{ csrf_field() }} Description {{-- {!! Form::open(array('url' => '#', 'method' => 'post')) !!}--}} {{----}} Make Select @if($motoadd->marka) @foreach($object->marka as $item) marka == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach @endif Model Category Select @if($motoadd->moto_category_id) @foreach($object->categories as $item) moto_category_id == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach @endif Condition Select @if($motoadd->condition) @foreach($object->condition as $item) condition == $item->id) {{ 'selected' }} @endif>{{ $item->value }} @endforeach @endif Year Select @foreach($object->godina as $item) moto_godina == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach Mileage VIN Engine Type Select @foreach($object->dvigatel as $item) dvigatel && array_first($paramsobj->dvigatel)->id == $item->id) {{ 'selected' }} @endif>{{ $item->value }} @endforeach Engine Size Horsepower Gear Shifting Select @foreach($object->skorosti as $item) skorosti && array_first($paramsobj->skorosti)->id == $item->id) {{ 'selected' }} @endif>{{ $item->value }} @endforeach State Select @if ($motoadd->region) @foreach($object->region as $item) region == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach @endif City {{ array_first($paramsobj->location)->name }} Description {{ $motoadd->description }} Hint: 300 words max 0/300 Words Price @foreach($object->cenatip as $item) pricetype && array_first($paramsobj->pricetype)->id == $item->id) {{ 'selected' }} @endif>{{ $item->value }} @endforeach Promo price @foreach($object->valuta as $item) valuta&& array_first($paramsobj->valuta)->id == $item->id) {{ 'selected' }} @endif>{{ $item->value }} @endforeach Additional parameters @foreach($specialslistall as $specitems) addspecials && in_array($specitems->id, array_pluck($paramsobj->addspecials, 'id'))) {{ 'checked' }} @endif > {{ $specitems->name }} @endforeach Video Video (youtube.com) Add a video from youtube.com @if($paramsobj->addvideo)Delete@endif UPDATE DESCRIPTION[Next step: Images] @include('layouts.errors') @include('layouts.banners', ['banner' => '600x300x1']) @include('layouts.sidebar', ['hotlinks' => true, 'sidemenucats' => false]) @include('layouts.catsbox') @endsection @section('footer_scripts') {{-- --}} {{----}} {{----}} {{----}} {{-- --}} @endsection