{{--{{ dd($motoadd,$paramsobj) }}--}} @extends('layouts/app') @section('header_styles') @endsection @section('content') Edit Ad - Tires Category: Tires Home {{ csrf_field() }} Description {{--Данни за обявата--}} Category Select @if($motoadd->moto_category_id) @foreach($object->categories as $item) moto_category_id == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach @endif Make Select @if($motoadd->marka) @foreach($object->marka as $item) marka == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach @endif Model model) value="{{ $motoadd->model }}" @endif> Item / Part Number Width Select @foreach($object->tyreswidth as $item) tyredata->where('type', '1')->first()->id == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach Height Select @foreach($object->tyresheight as $item) tyredata->where('type', '2')->first()->id == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach Diameter Select @foreach($object->tyresdiameter as $item) tyredata->where('type', '4')->first()->id == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach Position Select @foreach($object->tyresposition as $item) tyredata->where('type', '5')->first()->id == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach State Select @foreach($object->region as $item) region == $item->id) {{ 'selected' }} @endif>{{ $item->name }} @endforeach City {{ array_first($paramsobj->location)->name }} 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 Description @if($motoadd->description){{ $motoadd->description }} @endif 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 Video (youtube.com) Add a video from youtube.com @if($paramsobj->addvideo)Delete@endif @if (!$motoadd->user) Personal data Name/Last Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif E-Mail @if ($errors->has('email')) {{ $errors->first('email') }} @endif Phone @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif Password @if ($errors->has('password')) {{ $errors->first('password') }} @endif Password confirm @endif @if($motoadd->user && (!$motoadd->user->phone)) Personal data @if(!$motoadd->user->phone) Phone @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif @endif @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