<div class="content os">
	<h1>Apólices</h1>
    <md-toolbar class="min"></md-toolbar>
    <md-list>
		<md-list-item class="md-2-line" ng-repeat="apolice in listaApolices | filter:procuraGeral">
			<div class="md-list-item-text" layout-gt-sm="row" layout-align="space-between">
			<h3>
				<span>Nº da Apólice: </span>{{ apolice.codCotacao }}
			</h3>
			<h3>
				<span>Emissão: </span>{{ apolice.dataCriacao }}
			</h3>
			<h3>
				<span>Cancelamento: </span>{{ apolice.dataCancelamento ? apolice.dataCancelamento : '' }}
			</h3>
			<h3>
				<span>Valor: </span>{{ apolice.valorApolice | currency:"R$ ":2}}
			</h3>
			<h3>
				<span>Status: </span>{{ apolice.statusApolice ? 'Ativo':'Cancelada' }}
			</h3>
			<md-button class="md-secondary buttonPrinter" ng-click="visualizaApolice(apolice.codCotacao)">
				<md-tooltip md-direction="top">
				Download
				</md-tooltip>
				<md-icon md-font-icon="flaticon-file"></md-icon>
			</md-button>
			</div>
		</md-list-item>
    </md-list>
  </div>