{literal} {/literal} {strip}
{if $item.tribeId} {else} {/if}

License #{$item.id}

Status:{$item.tribeStatusTitle|htmlspecialchars}Status:{$item.statusTitle|htmlspecialchars}Submitted: {$item.added|date_format:'%m/%d/%Y'} Expires On: {$item.expiredOn|date_format:'%m/%d/%Y'}
{if !$item.tribeId}

Tribes

{math assign=rowsInCol equation="x/2" x=$item.tribes|@count} {assign var=rowsInCol value=$rowsInCol|ceil} {foreach from=$item.tribes item=tribe name=tribes} {$tribe.tribeTitle|htmlspecialchars}: {$tribe.statusTitle|htmlspecialchars}
{if $smarty.foreach.tribes.iteration == $rowsInCol}
{/if} {/foreach}
{/if}

Business Information

DBA Name: {$item.vendor.dbaName|htmlspecialchars}
Full Legal Name of Business: {$item.vendor.businessName|htmlspecialchars}
Federal ID/SSN: {$item.vendor.federalId|htmlspecialchars}
Type of Organization: {$item.vendor.organizationTypeTitle|htmlspecialchars}
Preferred Vendor: {$item.vendor.preferredVendorTitle|htmlspecialchars}
{if $item.vendor.preferredVendor == 'y'} Preferred Vendor Code: {$item.vendor.preferredVendorCode|htmlspecialchars}
{/if} First Name: {$item.vendor.soleProprietorFirstName|htmlspecialchars}
Last Name: {$item.vendor.soleProprietorLastName|htmlspecialchars}
Driver's License Number: {$item.vendor.soleProprietorDlNumber|htmlspecialchars}
Driver's License Issuance State: {$item.vendor.soleProprietorDlStateTitle|htmlspecialchars}
Email: {$item.vendor.email|htmlspecialchars}
Phone: {$item.vendor.phone|htmlspecialchars}
{if $item.vendor.alternativePhone}Alternative Phone: {$item.vendor.alternativePhone|htmlspecialchars}
{/if} {if $item.vendor.websiteUrl}Website: {$item.vendor.websiteUrl|htmlspecialchars}
{/if} {if $item.vendor.applicationFile}Application File: download{/if}

Billing Address

{include file = 'License/view-address.tpl' address = $item.vendor.billingAddress}

Mailing Address

{include file = 'License/view-address.tpl' address = $item.vendor.mailingAddress}

Payment Information

Payment Method: {$item.paymentMethodTitle|htmlspecialchars|default:'-'}
{if $item.paymentMethod == constant('App\License\Entity::PAYMENT_METHOD_CC')} Transaction Number: {$item.transactionId|htmlspecialchars}
Credit Card Number: {$item.ccNumber|htmlspecialchars}
{/if} {if $item.paymentMethod == constant('App\License\Entity::PAYMENT_METHOD_CHECK')} Item #: {$item.transactionId|htmlspecialchars}
Account Type: {$item.checkTypeTitle|htmlspecialchars}
{*Name on Account: {$item.accountName|htmlspecialchars}
*} Routing Number: {$item.routingNumber|htmlspecialchars}
Bank: {$item.bank|htmlspecialchars}
Account Number: {$item.accountNumber|htmlspecialchars} {/if}
{if $item.vendor.partners}

Partners, Sole Proprietor, and/or Officers

{foreach from = $item.vendor.partners item = partner} {/foreach}
Name Title Ownership % Business Phone Alternate Phone
{$partner.name|htmlspecialchars} {$partner.title|htmlspecialchars} {$partner.ownershipPercent|htmlspecialchars} {$partner.businessPhone|htmlspecialchars} {$partner.homePhone|htmlspecialchars}
{/if} {if $item.vendor.questionnaire}

Background Questionnaire

{assign var = 'number' value = 'A'} {foreach from = $item.vendor.questionnaire item = question key = 'index'} {php}$this->_tpl_vars['number']++;{/php} {/foreach}
# Question / Explanation Answer
{$number} {$question.question|htmlspecialchars} {if $question.explanation}
Explanation: {$question.explanation|htmlspecialchars|nl2br}
{/if}
{$question.answerTitle|htmlspecialchars}
{/if}

Chosen Vendor Classifications

{foreach from = $item.naicsCodes item = code name = codes} {/foreach}
{$smarty.foreach.codes.iteration} {$view->naicsTitle($code)}
{* *}
Red Rock Innovations / MAICC Registration Access Fee: {$item.total|currency:'$'}
Subtotal: {$item.subtotal|currency:'$'}
Admin Fee: {$item.adminFee|currency:'$'}
Total: {$item.total|currency:'$'}
{/strip}