67 lines
3.3 KiB
PHP
67 lines
3.3 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', __('assetexchange::lang.new_deal'))
|
|
|
|
@section('content')
|
|
@include('assetexchange::layouts.nav')
|
|
|
|
<section class="content no-print mt-page">
|
|
<div class="mt-page-header">
|
|
<h1><i class="fas fa-handshake" style="color:#3b82f6;margin-left:8px;"></i> @lang('assetexchange::lang.new_deal')</h1>
|
|
<a href="{{ action([\Modules\AssetExchange\Http\Controllers\DealController::class, 'index']) }}" class="btn btn-default">
|
|
<i class="fa fa-arrow-right"></i> @lang('assetexchange::lang.back')
|
|
</a>
|
|
</div>
|
|
|
|
<div class="mt-card">
|
|
<div class="mt-card-body">
|
|
{!! Form::open(['url' => action([\Modules\AssetExchange\Http\Controllers\DealController::class, 'store']), 'method' => 'post']) !!}
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
{!! Form::label('listing_id', __('assetexchange::lang.listings') . ':') !!}
|
|
{!! Form::select('listing_id', $listings, $listing?->id, ['class' => 'form-control select2', 'required', 'style' => 'width:100%']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
{!! Form::label('deal_type', __('assetexchange::lang.deal_type') . ':') !!}
|
|
{!! Form::select('deal_type', $deal_types, 'company_purchase', ['class' => 'form-control select2', 'style' => 'width:100%']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
{!! Form::label('buyer_contact_id', __('assetexchange::lang.buyer') . ':') !!}
|
|
{!! Form::select('buyer_contact_id', $contacts, null, ['class' => 'form-control select2', 'placeholder' => __('assetexchange::lang.select'), 'style' => 'width:100%']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
{!! Form::label('agreed_price', __('assetexchange::lang.agreed_price') . ':') !!}
|
|
{!! Form::text('agreed_price', $listing?->asking_price, ['class' => 'form-control input_number']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
{!! Form::label('commission_percent', __('assetexchange::lang.commission_percent') . ':') !!}
|
|
{!! Form::text('commission_percent', null, ['class' => 'form-control input_number']) !!}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
{!! Form::label('notes', __('assetexchange::lang.notes') . ':') !!}
|
|
{!! Form::textarea('notes', null, ['class' => 'form-control', 'rows' => 3]) !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> @lang('assetexchange::lang.save')</button>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endsection
|
|
|
|
@section('javascript')
|
|
<script>$(function(){ $('.select2').select2(); });</script>
|
|
@endsection
|