<div class="app-header bg-header-1">
    <div class="layout-fixed full-h text-center">
        <div class="full-h v-bottom-i pdB15">
            <div class="app-content-header bg-header-1">
                <div class="text-name-header-1 nowrap">Fail</div>
                <div class="text-title-header-1 nowrap pdLR40 mgT10">{{failCurrentLocation}}</div>
            </div>
        </div>
    </div>
    <button type="button" class="popup-back-button bg-transparent pd0-i biger-3-time" ng-click="closeTarget('#opportunityFailContents')"></button>
</div>
<div class="app-content">
    <div class="app-content-inner content-pd">
        <ion-scroll class="scroll-area" direction="y" has-bouncing="false" overflow-scroll="false" delegate-handle="scrollFail" on-scroll="scrollContent('scrollFail')">
            <ion-refresher pulling-text="Refreshing data" on-refresh="subtabFailContent(currentFailtabId,indexFailSubTab,failCurrentLocation,failfocus)"></ion-refresher>
            <ul class="lst-opportunity-fail stripe-1">
                <li class="box-setting-4 overhidden" ng-repeat="row in dataFailSubtabContent">
                    <div class="content content-in">
                        <div class="itm row-one-content" ng-class="{bgred:(row.oppId==failfocus)}" >
                            <div class="layout-fixed">
                                <div class="v-top-i">
                                    <div class="name clr-black capitalize" ng-if="!row.company_name">{{row.name}}</div>
                                    <div class="name clr-black capitalize" ng-if="row.company_name">({{row.company_name}}) {{row.name}}</div>
                                </div>
                                <div class="w40px clear v-top-i relative">
                                    <button class="bg-transparent right biger-3-time" onclick="openQuickOption(this)">
                                        <svg class="h16px clr-symbol-clickable" viewBox="0 0 512 512"> <circle fill="#1075BB" cx="61.793" cy="256" r="61.793" /> <circle fill="#1075BB" cx="450.207" cy="256" r="61.793" /> <circle fill="#1075BB" cx="256" cy="256" r="61.793" /> </svg>
                                    </button>
                                    <div class="quick-popup box-popup-1 display-top-right mgT20" onclick="closeQuickOption(this)">
                                        <div class="popup-content w140px">
                                            <ul class="list-item-03">
                                                <li ng-click="viewFailNote(row)">
                                                    <div class="layout-fixed">
                                                        <div class="icon-area">
                                                            <svg class="h15px" viewBox="0 0 378.896 378.896"> <rect x="98.945" style="fill:#010002;" width="2" height="81.543" /> <path style="fill:#010002;" d="M284.918,34.805V0h-11.934v34.805h-47.735V0h-11.934v34.805h-47.735V0h-11.934v34.805H45.384   v344.091h288.128V34.805H284.918z M280.938,254.875H100.804v-11.934h180.134V254.875z M280.938,225.041H100.804v-11.934h180.134   V225.041z M280.938,195.206H100.804v-11.934h180.134V195.206z M280.938,165.372H100.804v-11.934h180.134V165.372z" /> </svg>
                                                        </div>
                                                        <div class="name-area text-link-1">
                                                            View note
                                                        </div>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="popup-overlay"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="layout-fixed mgT5">
                                <div class="v-top-i pdR10">
                                    <div class="layout-fixed">
                                        <div class="v-top-i">
                                            <div class="text-title-4">Rep <span class="text">{{row.representative}}</span></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="v-top-i" ng-click="callNumber(row.phone)">
                                    <div class="layout-fixed">
                                        <div class="v-top-i">
                                            <div class="text-title-4">Phone # <span class="text" ng-bind-html="row.phone.replace('(','<span class=\'ft-symbol\'>(</span>').replace(')','<span class=\'ft-symbol\'>)</span>')"></span></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layout-fixed mgT10">
                                <div class="v-top-i">
                                    <div class="layout-fixed">
                                        <div class="v-top-i">
                                            <div class="text-title-4">Lead source</div>
                                            <div class="text">{{row.lead_source}}</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layout-fixed mgT10">
                                <div class="v-bottom-i">
                                    <div class="layout-fixed w-auto-i left baseline">
                                        <div class="text-title-4">Start date</div>
                                        <div class="text-date-1 lowercase pdL3">{{row.start_time | date:'MM/dd/yyyy hh:mm a'}}</div>
                                    </div>
                                </div>
                                <div class="v-bottom-i">
                                    <div class="layout-fixed w-auto-i left baseline">
                                        <div class="text-title-4">Duration</div>
                                        <div class="text-date-1 pdL3">{{row.durations}}</div>
                                    </div>
                                </div>
                                <div class="w0px clear v-bottom-i clear" ng-if="row.recordingfile">
                                    <button class="bg-transparent pd0-i biger-3-time right" type="button" ng-click="initPlayAudio(row)">
                                        <svg class="block h20px clr-symbol-clickable" viewBox="0 0 491.4 491.4"> <path d="M491.4,0.7H2.9v354.7h488.4V0.7H491.4z M247.2,262.8c-46.7,0-84.8-37.7-84.8-84.8c0-46.7,37.7-84.8,84.8-84.8    c46.7,0,84.8,37.7,84.8,84.8C331.5,224.7,293.8,262.8,247.2,262.8z" /> <circle cx="87.5" cy="451.4" r="39.3" /> <g> <path d="M475,440.1H139.2c1.4,7.5,1.4,15.1,0,22.6H475c6.2,0,11.3-5.1,11.3-11.3C486.3,445.2,481.2,440.1,475,440.1z" /> <path d="M26.7,440.1H11.3c-6.2,0-11.3,5.1-11.3,11.3c0,6.2,5.1,11.3,11.3,11.3h15.4C25.4,455.2,25.4,447.6,26.7,440.1z" /> </g> <polygon points="214.9,228.6 279.4,178 214.9,127.5   " /> </svg>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
                <ion-infinite-scroll on-infinite="LoadMoreOppotunities('fail')" ng-if="checkLoadMoreFail" distance="1%"> </ion-infinite-scroll>
            </ul>
        </ion-scroll>
    </div>
</div>
