@extends('layout.main') @section('content')

Create Estimate

@include('includes.errors') @include('includes.success')

Close

{{Form::select('AccountID',$accounts,$AccountID,array("class"=>"select2"))}}
{{Form::select('BillingClassID', $BillingClass, '' ,array("class"=>"select2 small form-control1 small","id"=>"AccountBillingClassID"));}}
{{Form::textarea('Address','',array( "ID"=>"Account_Address", "rows"=>4, "class"=>"form-control"))}}
{{Form::text('EstimateNumber','',array("Placeholder"=>"AUTO", "class"=>"form-control"))}}


{{Form::text('IssueDate',date('Y-m-d'),array("class"=>" form-control datepicker" , "data-startdate"=>date('Y-m-d',strtotime("-2 month")), "data-date-format"=>"yyyy-mm-dd", "data-end-date"=>"+1w" ,"data-start-view"=>"2"))}}


{{Form::text('PONumber','',array("class"=>" form-control" ))}}
Item/Subscription Description Unit Price Quantity Discount Tax 1 Tax 2 Line Total
{{Form::SelectControl('item_and_Subscription',0,'',0,'EstimateDetail[ProductID][]')}} {{Form::textarea('EstimateDetail[Description][]','',array("class"=>"form-control autogrow descriptions invoice_estimate_textarea","rows"=>1))}} {{Form::text('EstimateDetail[Price][]','',array("class"=>"form-control Price","data-mask"=>"fdecimal"))}} {{Form::text('EstimateDetail[Qty][]',1,array("class"=>"form-control Qty","data-min"=>"1", "data-mask"=>"decimal"))}} {{Form::text('EstimateDetail[DiscountAmount][]',0,array("class"=>"form-control DiscountAmount","data-min"=>"1", "data-mask"=>"fdecimal"))}} {{Form::Select("EstimateDetail[DiscountType][]",array("Percentage"=>"%","Flat"=>"Flat"),'%',array("class"=>"select2 small DiscountType"))}} {{Form::SelectExt( [ "name"=>"EstimateDetail[TaxRateID][]", "data"=>$taxes, "selected"=>'', "value_key"=>"TaxRateID", "title_key"=>"Title", "data-title1"=>"data-amount", "data-value1"=>"Amount", "data-title2"=>"data-flatstatus", "data-value2"=>"FlatStatus", "class" =>"select2 small Taxentity TaxRateID", ] )}} {{Form::SelectExt( [ "name"=>"EstimateDetail[TaxRateID2][]", "data"=>$taxes, "selected"=>'', "value_key"=>"TaxRateID", "title_key"=>"Title", "data-title1"=>"data-amount", "data-value1"=>"Amount", "data-title2"=>"data-flatstatus", "data-value2"=>"FlatStatus", "class" =>"select2 small Taxentity TaxRateID2", ] )}} {{Form::text('EstimateDetail[LineTotal][]',0,array("class"=>"form-control LineTotal","data-min"=>"1", "data-mask"=>"fdecimal","readonly"=>"readonly"))}} {{Form::hidden('EstimateDetail[ProductType][]',Product::ITEM,array("class"=>"ProductType"))}}
{{Form::textarea('Terms','',array("class"=>" form-control" ,"rows"=>5))}}
{{Form::textarea('FooterTerm','',array("class"=>" form-control" ,"rows"=>5))}}
{{Form::textarea('Note','',array("class"=>" form-control" ,"rows"=>5))}}
Estimate Total {{Form::text('GrandTotal','',array("class"=>"form-control GrandTotal text-right","readonly"=>"readonly"))}}
  Tax
{{Form::SelectExt( [ "name"=>"EstimateTaxes[field][]", "data"=>$taxes, "selected"=>'', "value_key"=>"TaxRateID", "title_key"=>"Title", "data-title1"=>"data-amount", "data-value1"=>"Amount", "data-title2"=>"data-flatstatus", "data-value2"=>"FlatStatus", "class" =>"select2 small Taxentity EstimateTaxesFld EstimateTaxesFldFirst", ] )}}
{{Form::text('EstimateTaxes[value][]','',array("class"=>"form-control EstimateTaxesValue","readonly"=>"readonly"))}}
Grand Total {{Form::text('GrandTotalEstimate','',array("class"=>"form-control GrandTotalEstimate text-right","readonly"=>"readonly"))}}
@include('estimates.script_estimate_add_edit') @include('composetmodels.productsubscriptionmodal') @include('includes.ajax_submit_script', array('formID'=>'estimate-from' , 'url' => 'estimate/store','update_url'=>'estimate/{id}/update' )) @stop @section('footer_ext') @parent @stop