@extends('layouts.app') @section('style') @stop @section('content') @include("layouts.Cmodal")
  @lang('layout.CreateNewContract')
{{Form::open(['route' => 'contract.store','method' => 'POST','class' => 'form-horizontal','id'=>'contract-form'])}} {{ csrf_field() }}
{{Form::text('name',null,['class' => 'form-control','placeholder' => __('layout.ContractName'),'v-validate'=>'"required"','data-vv-as'=>__('layout.ContractName')])}} @{{ errors.first('name') }}
{{Form::text('contract_no',$contract_no,['class' => 'form-control'])}}
@{{ errors.first('member_id') }}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@if(auth()->user()->company()->first()->tag != 1)
@{{ errors.first('currency_rate') }}
@endif
{{Form::number('amount',null,['class' => 'form-control','v-validate'=>"''",'data-vv-as'=>__('layout.Amount')])}} @{{ errors.first('amount') }}
{{Form::number('pos_neg_amount',null,['class' => 'form-control','v-validate'=>"''",'data-vv-as'=>__('layout.Amount')])}}  
{!! Form::textarea('description', null, array('placeholder' => __('layout.Description'),'class' => 'form-control','rows' => 1, 'cols' => 30)) !!}
{{--
--}}
@if(getmine() == 'true') {{--
{!! Form::number('all_percentage', null, array('placeholder' => __('layout.Percentage'),'class' => 'form-control')) !!}
{!! Form::number('per_percent_price', null, array('placeholder' => __('layout.PerPercentPrice'),'class' => 'form-control')) !!}
--}} @endif
@if(getmine() == 'true') @endif @if(getmine() == 'true') @endif
# @lang('layout.Category') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Description') @lang('layout.ExpireDate') @lang('layout.Quantity') @lang('layout.OMeasureValue') @lang('layout.Measure') @lang('layout.NewCost') @lang('layout.SalePrice') @lang('layout.Discount') @lang('layout.Total')
@{{index+1}} @{{ errors.first('inventory_id['+index+']') }} @{{ errors.first('quantity['+index+']') }}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}} %
@{{ (item.item==null)?null:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate, null, null, selected_currency.static_rate).result }} @{{selected_currency.symbol}}

# @lang('layout.Shareholder') @lang('layout.Percentage')
@{{index+1}}
@if(getContractLoadingDate()=="true")
@lang('layout.LoadingDate')
# @lang('layout.Number') @lang('layout.LoadingDate') @lang('layout.Description')
@{{index+1}} {{Form::textarea('loading_date_description[]',null,['class' => 'form-control','rows' => '1','@click'=>"addNew('loading_date',index)",'@keyup'=>"addNew('loading_date',index)"])}}
@endif
@lang('layout.Cancel')
{!! Form::close() !!}
@endsection @push('scripts') @endpush