@if (isset($qtemplate)) {!! Form::model($qtemplate, ['url' => $type . '/' . $qtemplate->id, 'id' => 'qtemplate', 'method' => 'put', 'files'=> true]) !!} @else {!! Form::open(['url' => $type, 'method' => 'post', 'files'=> true, 'id'=>'qtemplate']) !!} @endif
{!! Form::label('quotation_template', trans('qtemplate.quotation_template'), ['class' => 'control-label required']) !!}
{!! Form::text('quotation_template', null, ['class' => 'form-control']) !!} {{ $errors->first('quotation_template', ':message') }}
{!! Form::label('quotation_duration', trans('qtemplate.quotation_duration'), ['class' => 'control-label']) !!}
{!! Form::input('number','quotation_duration', null, ['class' => 'form-control']) !!} {{ $errors->first('quotation_duration', ':message') }}
{{ $errors->first('product_id', ':message') }}
@if(isset($qtemplate)&& $qtemplate->qTemplateProducts->count()>0) @foreach($qtemplate->qTemplateProducts as $index => $variants) @endforeach @endif
{{trans('qtemplate.product')}} {{trans('qtemplate.description')}} {{trans('qtemplate.quantity')}} {{trans('qtemplate.unit_price')}} {{trans('qtemplate.subtotal')}}
 
{!! Form::label('total', trans('qtemplate.total'), ['class' => 'control-label']) !!}
{!! Form::text('total', null, ['class' => 'form-control','readonly']) !!} {{ $errors->first('total', ':message') }}
{!! Form::label('tax_amount', trans('qtemplate.tax_amount').' ('.floatval(Settings::get('sales_tax')).'%)', ['class' => 'control-label']) !!}
{!! Form::text('tax_amount', null, ['class' => 'form-control','readonly']) !!} {{ $errors->first('tax_amount', ':message') }}
{!! Form::label('grand_total', trans('qtemplate.grand_total'), ['class' => 'control-label']) !!}
{!! Form::text('grand_total', null, ['class' => 'form-control','readonly']) !!} {{ $errors->first('grand_total', ':message') }}
{!! Form::label('quotation_duration', trans('qtemplate.terms_and_conditions'), ['class' => 'control-label']) !!}
{!! Form::textarea('terms_and_conditions', null, ['class' => 'form-control resize_vertical']) !!} {{ $errors->first('terms_and_conditions', ':message') }}
{{trans('table.back')}}
{!! Form::close() !!}
@section('scripts') @endsection