@if (isset($CompanyGateway) && count($CompanyGateway) > 0)
@if (isset($commandname) && $commandname=='importpbxaccounts')
Gateway
{{Form::select('Setting[CompanyGatewayID][]', $CompanyGateway, (isset($commandconfigval->CompanyGatewayID)?$commandconfigval->CompanyGatewayID:'') ,array("id"=>"CompanyGateways" ,"class"=>"select2",'multiple',"data-placeholder"=>"Select Gateways"))}}
@else
Gateway
{{Form::select('CompanyGatewayID', $CompanyGateway, (isset($commandconfigval->CompanyGatewayID)?$commandconfigval->CompanyGatewayID:'') ,array("id"=>"drp_rateGenerators" ,"class"=>"select2 small form-control"))}}
@endif
@endif
@if (isset($emailTemplates) && count($emailTemplates) > 0 && isset($accounts) && count($accounts) > 0)
Email Template
{{Form::SelectControl('email_template',1,(isset($commandconfigval->TemplateID)?$commandconfigval->TemplateID:''))}}
Account
{{Form::select('AccountID', $accounts, (isset($commandconfigval->AccountID)?$commandconfigval->AccountID:'') ,array("class"=>"select2 small form-control"))}}
@elseif(isset($emailTemplates) && count($emailTemplates) > 0)
Email Template
{{Form::SelectControl('email_template',1,(isset($commandconfigval->TemplateID)?$commandconfigval->TemplateID:''))}}
@endif
@if(isset($rateTableList) && count($rateTableList) > 0)
Rate Table
{{Form::select('rateTables', $rateTableList,(isset($commandconfigval)? @$commandconfigval->rateTables:'') ,array("id"=>"drp_rateGenerators" ,"class"=>"select2 small form-control"))}}
@endif
@if (isset($rateGenerators) && count($rateGenerators) > 0 && isset($rateTables) && count($rateTables) > 0 )
Rate Generator
{{Form::select('rateGenerators', $rateGenerators, (isset($commandconfigval)?$commandconfigval->rateGeneratorID:'') ,array("id"=>"drp_rateGenerators" ,"class"=>"select2 small form-control"))}}
Rate Table
{{Form::select('rateTables', $rateTables,(isset($commandconfigval)?$commandconfigval->rateTableID:'') ,array("id"=>"drp_rateGenerators" ,"class"=>"select2 small form-control"))}}
Effective Rate
{{Form::select('EffectiveRate', array('now'=>'Current','effective'=>'Effective on selected effective date','future'=>'Future'),(isset($commandconfigval->EffectiveRate)?$commandconfigval->EffectiveRate:'now') ,array("id"=>"" ,"class"=>"select2 small form-control"))}}
@endif
@if (isset($customers) && count($customers) > 0)
Customers
{{Form::select('Setting[customers][]', $customers, (isset($commandconfigval->customers)?$commandconfigval->customers:'') ,array("id"=>"customers" ,"class"=>"select2",'multiple',"data-placeholder"=>"Select Customers"))}}
@endif
@if (isset($vendors) && count($vendors) > 0)
Vendors
{{Form::select('Setting[vendors][]', $vendors, (isset($commandconfigval->vendors)?$commandconfigval->vendors:'') ,array("id"=>"vendors" ,"class"=>"select2",'multiple',"data-placeholder"=>"Select Vendors"))}}
@endif
@if (isset($vendorList) && count($vendorList) > 0)
Vendor
{{Form::select('vendors', $vendorList, (isset($commandconfigval->vendors)?$commandconfigval->vendors:'') ,array("id"=>"vendors" ,"class"=>"select2","data-placeholder"=>"Select Vendor"))}}
@endif
@if (isset($gateway) && count($gateway) > 0)
Gateway
{{Form::select('Setting[gateway]', $gateway, (isset($commandconfigval->gateway)?$commandconfigval->gateway:'') ,array("id"=>"gateway" ,"class"=>"select2"))}}
@endif
@if (isset($ServiceID) && count($ServiceID) > 0)
Extension Service
{{Form::select('Setting[ServiceID]', $ServiceID, (isset($commandconfigval->ServiceID)?$commandconfigval->ServiceID:'') ,array("id"=>"ServiceID" ,"class"=>"select2"))}}
@endif
@if (isset($ExtensionSubscriptionID) && count($ExtensionSubscriptionID) > 0)
Extension Subscription
{{Form::select('Setting[ExtensionSubscriptionID]', $ExtensionSubscriptionID, (isset($commandconfigval->ExtensionSubscriptionID)?$commandconfigval->ExtensionSubscriptionID:'') ,array("id"=>"ExtensionSubscriptionID" ,"class"=>"select2"))}}
@endif
@if (isset($DIDServiceID) && count($DIDServiceID) > 0)
DID Service
{{Form::select('Setting[DIDServiceID]', $DIDServiceID, (isset($commandconfigval->DIDServiceID)?$commandconfigval->DIDServiceID:'') ,array("id"=>"DIDServiceID" ,"class"=>"select2"))}}
@endif
@if (isset($DIDSubscriptionID) && count($DIDSubscriptionID) > 0)
DID Subscription
{{Form::select('Setting[DIDSubscriptionID]', $DIDSubscriptionID, (isset($commandconfigval->DIDSubscriptionID)?$commandconfigval->DIDSubscriptionID:'') ,array("id"=>"DIDSubscriptionID" ,"class"=>"select2"))}}
@endif
@foreach((array)$commandconfig as $config)
@foreach((array)$config as $configtitle)
@if($count%2 == 0)
@endif
@endforeach
@endforeach
@if($commandname == 'leadsImportbyemail')