@extends('layouts.app') @section('title', __('assetexchange::lang.new_listing')) @section('content') @include('assetexchange::layouts.nav')

@lang('assetexchange::lang.new_listing')

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