<ion-view class="myschedule" view-title="My Schedule" hide-nav-bar="true">
    <ion-content scroll="false" id="schedule_page">
        <div class="app-main" id="main-content">
            <div compile-html="dataMyAppHtml.menuHeader" class="app-header"></div>
            <div compile-html="dataMyAppHtml.appQueryTime" class="box-setting-4 no-saperator bg-header-1 app-query-time"></div>
            <div class="app-content">
                <div class="app-content-inner content-pd" compile-html="dataMyAppHtml.myscheduleContent"></div>
            </div>
        </div>
        <div class="app-content-popup-area">
            <div ng-controller="notetasksController">
                <div compile-html="dataMyAppHtml.editTaskNote" class="app-content-popup" id="popupEditScheduleNote"></div>
            </div>
            <div ng-controller="scheduleCtrl">
                <div compile-html="dataAppHtml.scheduleDetailEdit" id="scheduleDetailEdit" class="schedule-detail-popup app-content-popup {{appIsCancel != 0 ? 'cancel':''}}"></div>
                <div compile-html="dataAppHtml.optionScheduleDetail" id="optionScheduleDetail" class="app-confirm-popup"></div>
                <div compile-html="dataAppHtml.optionScheduleDetailFileManagement" id="optionScheduleDetailFileManagement" class="app-confirm-popup"></div>
                <div compile-html="dataAppHtml.popupScheduleDetailFileManagementDetail" id="popupScheduleDetailFileManagementDetail" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupAddScheduleDetailFileManagementDetail" id="popupAddScheduleDetailFileManagementDetail" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupScheduleDetailJobStatus" id="popupScheduleDetailJobStatus" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupScheduleDetailJobSites" id="popupScheduleDetailJobSites" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupScheduleDetailHistories" id="popupScheduleDetailHistories" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.customerDetailPopupAppointmentHistoryViewLog" id="customerDetailPopupAppointmentHistoryViewLog" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupScheduleDetailFileManagement" id="popupScheduleDetailFileManagement" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.scheduleEditModal" id="scheduleEditModal" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.schedulesPopupViewMessLogmodal" id="schedulesPopupViewMessLogmodal" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.schedulesPopupConfirmChangeFielworker" id="schedulesPopupConfirmChangeFielworker" class="app-confirm-popup"></div>
                <div id="optionScheduleEstimateInvoiceManagerment" class="app-confirm-popup" compile-html="dataAppHtml.optionScheduleEstimateInvoiceManagerment"></div>
                <div id="optionScheduleDetailCustomerInfor" class="app-confirm-popup">
                    <div class="overlay-area" ng-click="closeTarget('#optionScheduleDetailCustomerInfor')"></div>
                    <div class="content-area popup-2">
                        <div class="title">
                            <div class="icon">
                                <svg class="h20px" viewBox="0 0 60 60"> <path d="M14,36C8.486,36,4,40.486,4,46s4.486,10,10,10s10-4.486,10-10S19.514,36,14,36z M14,54c-4.411,0-8-3.589-8-8s3.589-8,8-8   s8,3.589,8,8S18.411,54,14,54z" /> <path d="M46,32H14C6.28,32,0,38.28,0,46s6.28,14,14,14h32c7.72,0,14-6.28,14-14S53.72,32,46,32z M46,58H14C7.383,58,2,52.617,2,46   s5.383-12,12-12h32c6.617,0,12,5.383,12,12S52.617,58,46,58z" /> <path d="M14,28h32c7.72,0,14-6.28,14-14S53.72,0,46,0H14C6.28,0,0,6.28,0,14S6.28,28,14,28z M46,4c5.514,0,10,4.486,10,10   s-4.486,10-10,10s-10-4.486-10-10S40.486,4,46,4z" /> </svg>
                            </div>
                            Client options
                        </div>
                        <div class="content row-fixed-15 pdB0-i">
                            <ul class="list-item-03" ng-click="redirectTo('customers.html#/board/customers/' + detailCustomerData.id + '.appointment_' + detailAppointmentData.id)">
                                <li>
                                    <div class="layout-fixed">
                                        <div class="icon-area">
                                            <svg class="h15px" viewBox="0 0 55 55"> <path d="M55,27.5C55,12.337,42.663,0,27.5,0S0,12.337,0,27.5c0,8.009,3.444,15.228,8.926,20.258l-0.026,0.023l0.892,0.752  c0.058,0.049,0.121,0.089,0.179,0.137c0.474,0.393,0.965,0.766,1.465,1.127c0.162,0.117,0.324,0.234,0.489,0.348  c0.534,0.368,1.082,0.717,1.642,1.048c0.122,0.072,0.245,0.142,0.368,0.212c0.613,0.349,1.239,0.678,1.88,0.98  c0.047,0.022,0.095,0.042,0.142,0.064c2.089,0.971,4.319,1.684,6.651,2.105c0.061,0.011,0.122,0.022,0.184,0.033  c0.724,0.125,1.456,0.225,2.197,0.292c0.09,0.008,0.18,0.013,0.271,0.021C25.998,54.961,26.744,55,27.5,55  c0.749,0,1.488-0.039,2.222-0.098c0.093-0.008,0.186-0.013,0.279-0.021c0.735-0.067,1.461-0.164,2.178-0.287  c0.062-0.011,0.125-0.022,0.187-0.034c2.297-0.412,4.495-1.109,6.557-2.055c0.076-0.035,0.153-0.068,0.229-0.104  c0.617-0.29,1.22-0.603,1.811-0.936c0.147-0.083,0.293-0.167,0.439-0.253c0.538-0.317,1.067-0.648,1.581-1  c0.185-0.126,0.366-0.259,0.549-0.391c0.439-0.316,0.87-0.642,1.289-0.983c0.093-0.075,0.193-0.14,0.284-0.217l0.915-0.764  l-0.027-0.023C51.523,42.802,55,35.55,55,27.5z M2,27.5C2,13.439,13.439,2,27.5,2S53,13.439,53,27.5  c0,7.577-3.325,14.389-8.589,19.063c-0.294-0.203-0.59-0.385-0.893-0.537l-8.467-4.233c-0.76-0.38-1.232-1.144-1.232-1.993v-2.957  c0.196-0.242,0.403-0.516,0.617-0.817c1.096-1.548,1.975-3.27,2.616-5.123c1.267-0.602,2.085-1.864,2.085-3.289v-3.545  c0-0.867-0.318-1.708-0.887-2.369v-4.667c0.052-0.52,0.236-3.448-1.883-5.864C34.524,9.065,31.541,8,27.5,8  s-7.024,1.065-8.867,3.168c-2.119,2.416-1.935,5.346-1.883,5.864v4.667c-0.568,0.661-0.887,1.502-0.887,2.369v3.545  c0,1.101,0.494,2.128,1.34,2.821c0.81,3.173,2.477,5.575,3.093,6.389v2.894c0,0.816-0.445,1.566-1.162,1.958l-7.907,4.313  c-0.252,0.137-0.502,0.297-0.752,0.476C5.276,41.792,2,35.022,2,27.5z" /> </svg>
                                        </div>
                                        <div class="name-area text-link-1">
                                            About Vanness Loy
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div id="optionScheduleDetailAppointmentInfor" class="app-confirm-popup">
                    <div class="overlay-area" ng-click="closeTarget('#optionScheduleDetailAppointmentInfor')"></div>
                    <div class="content-area popup-2">
                        <div class="title">
                            <div class="icon">
                                <svg class="h20px" viewBox="0 0 60 60"> <path d="M14,36C8.486,36,4,40.486,4,46s4.486,10,10,10s10-4.486,10-10S19.514,36,14,36z M14,54c-4.411,0-8-3.589-8-8s3.589-8,8-8   s8,3.589,8,8S18.411,54,14,54z" /> <path d="M46,32H14C6.28,32,0,38.28,0,46s6.28,14,14,14h32c7.72,0,14-6.28,14-14S53.72,32,46,32z M46,58H14C7.383,58,2,52.617,2,46   s5.383-12,12-12h32c6.617,0,12,5.383,12,12S52.617,58,46,58z" /> <path d="M14,28h32c7.72,0,14-6.28,14-14S53.72,0,46,0H14C6.28,0,0,6.28,0,14S6.28,28,14,28z M46,4c5.514,0,10,4.486,10,10   s-4.486,10-10,10s-10-4.486-10-10S40.486,4,46,4z" /> </svg>
                            </div>
                            Appointment options
                        </div>
                        <div class="content row-fixed-15 pdB0-i">
                            <ul class="list-item-03" ng-click="viewAppnote(detailAppointmentData.logOffice, detailAppointmentData.logFieldworker)" ng-if="tier.t3">
                                <li>
                                    <div class="layout-fixed">
                                        <div class="icon-area">
                                            <svg class="h15px" viewBox="0 0 458.721 458.721"> <path d="M407.377,38.065h-20.934v30.737h20.934c0.868,0,1.575,0.706,1.575,1.575v76.208H49.769V70.377     c0-0.868,0.706-1.575,1.575-1.575h20.933V38.065H51.344c-17.817,0-32.312,14.495-32.312,32.312v356.032     c0,17.817,14.495,32.312,32.312,32.312h356.033c17.817,0,32.312-14.495,32.312-32.312V70.377     C439.689,52.56,425.194,38.065,407.377,38.065z M101.79,222.345h156.127c8.488,0,15.369,6.881,15.369,15.369     c0,8.488-6.881,15.368-15.369,15.368H101.79c-8.488,0-15.368-6.881-15.368-15.368S93.302,222.345,101.79,222.345z      M349.425,328.574H101.79c-8.488,0-15.368-6.881-15.368-15.368s6.88-15.368,15.368-15.368h247.635     c8.488,0,15.369,6.881,15.369,15.368S357.913,328.574,349.425,328.574z" /> <rect x="270.343" y="38.065" width="34.135" height="30.737" /> <rect x="154.243" y="38.065" width="34.134" height="30.737" /> <path d="M113.26,101.972c8.488,0,15.368-6.881,15.368-15.368V15.368C128.629,6.881,121.748,0,113.26,0     S97.892,6.881,97.892,15.368v71.235C97.892,95.091,104.772,101.972,113.26,101.972z" /> <path d="M229.36,101.972c8.488,0,15.368-6.881,15.368-15.368V15.368C244.729,6.881,237.848,0,229.36,0     c-8.488,0-15.369,6.881-15.369,15.368v71.235C213.992,95.091,220.872,101.972,229.36,101.972z" /> <path d="M345.461,101.972c8.488,0,15.369-6.881,15.369-15.368V15.368C360.829,6.881,353.948,0,345.461,0     s-15.368,6.881-15.368,15.368v71.235C330.092,95.091,336.973,101.972,345.461,101.972z" /> </svg>
                                        </div>
                                        <div class="name-area text-link-1">
                                            Appointment logs
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div compile-html="dataAppHtml.popupPendingToEnroutemodal" id="popupPendingToEnroutemodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupEnrouteToArivemodal" id="popupEnrouteToArivemodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAriveToWorkingmodal" id="popupAriveToWorkingmodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupRemindersmodal" id="popupRemindersmodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupWorkingToFinishmodal" id="popupWorkingToFinishmodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupPendingToEnrouteCAmodal" id="popupPendingToEnrouteCAmodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupRetrySentMessegemodal" id="popupRetrySentMessegemodal" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailCustomerFlagNote" id="popupAppointmentDetailCustomerFlagNote" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailCustomerAddFlagNote" id="popupAppointmentDetailCustomerAddFlagNote" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailAddress" id="popupAppointmentDetailAddress" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailOrderOption" id="popupAppointmentDetailOrderOption" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailOrderHistory" id="popupAppointmentDetailOrderHistory" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailPhone" id="popupAppointmentDetailPhone" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailEmail" id="popupAppointmentDetailEmail" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailZillow" id="popupAppointmentDetailZillow" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailReplaceAddressConfirm" id="popupAppointmentDetailReplaceAddressConfirm" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailRevertAppointmentConfirm" id="popupAppointmentDetailRevertAppointmentConfirm" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailJobStatusChat" id="popupAppointmentDetailJobStatusChat" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.photoViewer" id="photoViewer" class="app-content-popup files-viewer-popup"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailTakePictureOption" id="popupAppointmentDetailTakePictureOption" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.pdfViewer" id="pdfViewer" class="app-content-popup files-viewer-popup"></div>
                <div compile-html="dataAppHtml.popupAppointmentDetailAddEditWorkingInvoice" id="popupAppointmentDetailAddEditWorkingInvoice" class="app-content-popup"></div>
                <div compile-html="dataAppHtml.schedulesPopupConfirmDeleteFlagNote" id="schedulesPopupConfirmDeleteFlagNote" class="app-content-popup popup-center"></div>
                <div compile-html="dataAppHtml.popupConfirmAddWorkingInvoice" id="popupConfirmAddWorkingInvoice" class="app-content-popup popup-center"></div>
                <div ng-controller="checklistCtrl">
                    <div compile-html="dataAppHtml.checklistPopup" class="app-content-popup" id="checklistPopup"></div>
                    <div compile-html="dataAppHtml.checklistPopupConfirm" class="app-confirm-popup" id="checklistPopupConfirm"></div>
                    <div compile-html="dataAppHtml.selectInvoice" class="app-content-popup" id="selectInvoice"></div>
                    <form ng-submit="Add_Payment()" compile-html="dataAppHtml.addpayment" class="app-content-popup" id="addpayment" novalidate="" name="formPaymentAdd"></form>
                    <div id="checklistPopupSubmitConfirm" class="app-confirm-popup" ng-include="'templates/dashboard/checklist/submit.tpl'"></div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>
