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

Edit Recurring Profile

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

{{Form::select('AccountID',$accounts,$RecurringInvoice->AccountID,array("class"=>"select2" ,"disabled"=>"disabled"))}} {{Form::hidden('AccountID',$RecurringInvoice->AccountID)}}
{{Form::textarea('Address',$RecurringInvoice->Address,array( "ID"=>"Account_Address", "rows"=>4, "class"=>"form-control"))}}
{{Form::text('Title',$RecurringInvoice->Title,array("Placeholder"=>"", "class"=>"form-control"))}}
{{Form::select('BillingClassID', $BillingClass, $RecurringInvoice->BillingClassID ,array("class"=>"select2 small form-control1 small"));}}
{{Form::select('BillingCycleType', SortBillingType(), $BillingCycleType ,array("class"=>'form-control select2 '))}}
{{Form::select('BillingCycleValue',$Days, ($BillingCycleType =='weekly'?$BillingCycleValue:'') ,array("class"=>"form-control select2"))}}
{{Form::text('NextInvoiceDate',date('Y-m-d',strtotime($RecurringInvoice->NextInvoiceDate)),array("class"=>" form-control datepicker" , "data-startdate"=>date('Y-m-d'), "data-date-format"=>"yyyy-mm-dd", "data-end-date"=>"" ,"data-start-view"=>"2"))}}
{{Form::text('PONumber',$RecurringInvoice->PONumber,array("class"=>" form-control" ))}}
{{Form::text('Occurrence',$RecurringInvoice->Occurrence,array("class"=>" form-control" ))}}
@if(count($RecurringInvoiceDetail)>0) @foreach($RecurringInvoiceDetail as $ProductRow) @endforeach @endif
Item Description Unit Price Quantity Discount Tax 1 Tax 2 Line Total
{{Form::select('RecurringInvoiceDetail[ProductID][]',$products,$ProductRow->ProductID,array("class"=>"select2 product_dropdown"))}} {{Form::textarea('RecurringInvoiceDetail[Description][]',$ProductRow->Description,array("class"=>"form-control autogrow descriptions invoice_recurringinvoice_textarea","rows"=>1))}} {{Form::text('RecurringInvoiceDetail[Price][]', number_format($ProductRow->Price,$RoundChargesAmount),array("class"=>"form-control Price","data-mask"=>"fdecimal"))}} {{Form::text('RecurringInvoiceDetail[Qty][]',$ProductRow->Qty,array("class"=>"form-control Qty","data-min"=>"1", "data-mask"=>"decimal"))}} {{Form::text('RecurringInvoiceDetail[DiscountAmount][]', number_format($ProductRow->DiscountAmount,$RoundChargesAmount),array("class"=>"form-control DiscountAmount","data-min"=>"1", "data-mask"=>"fdecimal"))}} {{Form::Select("RecurringInvoiceDetail[DiscountType][]",array("Percentage"=>"%","Flat"=>"Flat"),$ProductRow->DiscountType,array("class"=>"select2 small DiscountType"))}} {{Form::SelectExt( [ "name"=>"RecurringInvoiceDetail[TaxRateID][]", "data"=>$taxes, "selected"=>$ProductRow->TaxRateID, "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"=>"RecurringInvoiceDetail[TaxRateID2][]", "data"=>$taxes, "selected"=>$ProductRow->TaxRateID2, "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('RecurringInvoiceDetail[LineTotal][]',number_format($ProductRow->LineTotal,$RoundChargesAmount),array("class"=>"form-control LineTotal","data-min"=>"1", "data-mask"=>"fdecimal","readonly"=>"readonly"))}} {{Form::hidden('RecurringInvoiceDetail[RecurringInvoiceDetailID][]',$ProductRow->RecurringInvoiceDetailID,array("class"=>"RecurringInvoiceDetailID"))}} {{Form::hidden('RecurringInvoiceDetail[ProductType][]',$ProductRow->ProductType,array("class"=>"ProductType"))}}
{{Form::textarea('Terms',$RecurringInvoice->Terms,array("class"=>" form-control" ,"rows"=>5))}}
{{Form::textarea('FooterTerm',$RecurringInvoice->FooterTerm,array("class"=>" form-control" ,"rows"=>5))}}
{{Form::textarea('Note',$RecurringInvoice->Note,array("class"=>" form-control" ,"rows"=>5))}}
@if(count($RecurringInvoiceAllTax)>0) @foreach($RecurringInvoiceAllTax as $key => $RecurringInvoiceAllTaxData) @if($key==0) @else @endif @endforeach @else @endif
Sub Total {{Form::text('SubTotal',number_format($RecurringInvoice->SubTotal,$RoundChargesAmount),array("class"=>"form-control SubTotal text-right","readonly"=>"readonly"))}}
VAT {{Form::text('TotalTax',number_format($RecurringInvoice->TotalTax,$RoundChargesAmount),array("class"=>"form-control TotalTax text-right","readonly"=>"readonly"))}}
Invoice Total {{Form::text('GrandTotal',number_format($RecurringInvoice->GrandTotal,$RoundChargesAmount),array("class"=>"form-control GrandTotal text-right","readonly"=>"readonly"))}}
  Tax
{{Form::SelectExt( [ "name"=>"RecurringInvoiceTaxes[field][]", "data"=>$taxes, "selected"=>$RecurringInvoiceAllTaxData->TaxRateID, "value_key"=>"TaxRateID", "title_key"=>"Title", "data-title1"=>"data-amount", "data-value1"=>"Amount", "data-title2"=>"data-flatstatus", "data-value2"=>"FlatStatus", "class" =>"select2 small Taxentity RecurringInvoiceTaxesFld RecurringInvoiceTaxesFldFirst", ] )}}
{{Form::text('RecurringInvoiceTaxes[value][]',$RecurringInvoiceAllTaxData->TaxAmount,array("class"=>"form-control RecurringInvoiceTaxesValue","readonly"=>"readonly"))}}
  Tax
{{Form::SelectExt( [ "name"=>"RecurringInvoiceTaxes[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 RecurringInvoiceTaxesFld RecurringInvoiceTaxesFldFirst", ] )}}
{{Form::text('RecurringInvoiceTaxes[value][]','',array("class"=>"form-control RecurringInvoiceTaxesValue","readonly"=>"readonly"))}}
Grand Total {{Form::text('GrandTotalRecurringInvoice','',array("class"=>"form-control GrandTotalRecurringInvoice text-right","readonly"=>"readonly"))}}
@include('recurringinvoices.script_recurringinvoice_add_edit') @include('includes.ajax_submit_script', array('formID'=>'recurringinvoice-from' , 'url' => 'recurringprofiles/'.$id.'/update' )) @stop @section('footer_ext') @parent @stop