@extends('layouts.app') @section('title', __('assetexchange::lang.edit') . ' — ' . $listing->title) @section('content') @include('assetexchange::layouts.nav')

@lang('assetexchange::lang.edit') — {{ $listing->title }}

@lang('assetexchange::lang.back')
{!! Form::open(['url' => action([\Modules\AssetExchange\Http\Controllers\ListingController::class, 'update'], [$listing->id]), 'method' => 'PUT']) !!}
{!! Form::label('title', __('assetexchange::lang.listing_title') . ':') !!} {!! Form::text('title', $listing->title, ['class' => 'form-control', 'required']) !!}
{!! Form::label('listing_type', __('assetexchange::lang.listing_type') . ':') !!} {!! Form::select('listing_type', $listing_types, $listing->listing_type, ['class' => 'form-control select2', 'style' => 'width:100%']) !!}
{!! Form::label('seller_contact_id', __('assetexchange::lang.seller') . ':') !!} {!! Form::select('seller_contact_id', $contacts, $listing->seller_contact_id, ['class' => 'form-control select2', 'placeholder' => __('assetexchange::lang.select'), 'style' => 'width:100%']) !!}
{!! Form::label('asking_price', __('assetexchange::lang.asking_price') . ':') !!} {!! Form::text('asking_price', $listing->asking_price, ['class' => 'form-control input_number']) !!}
{!! Form::label('year_manufactured', __('assetexchange::lang.year_manufactured') . ':') !!} {!! Form::number('year_manufactured', $listing->year_manufactured, ['class' => 'form-control']) !!}
{!! Form::label('description', __('assetexchange::lang.description') . ':') !!} {!! Form::textarea('description', $listing->description, ['class' => 'form-control', 'rows' => 4]) !!}
{!! Form::close() !!}
@endsection @section('javascript') @endsection