<!-- <a href="orders.html?customer_id={{detailCustomerData.id}}&appointment_id={{detailAppointmentData.id}}">
  Estimate/Invoice Mgmt
</a>
<a href="estimate.html?customer_id={{detailCustomerData.id}}&appointment_id={{detailAppointmentData.id}}">
  Create Estimate
</a>
<a href="estimate.html?estimate_id={{detailAppointmentData.order_id}}" ng-if="detailAppointmentData.checktypeorder == 4">
  {{detailAppointmentData.order_name}} - ${{detailAppointmentData.order_balance_due}}
</a>
<a href="invoice.html?invoice_id={{detailAppointmentData.order_id}}" ng-if="detailAppointmentData.checktypeorder == 5">
  {{detailAppointmentData.order_name}} - ${{detailAppointmentData.order_balance_due}}
</a>
<a modal-open="#popupAddEditWorkingInvoice" ng-click="resetworkinginvoice(detailAppointmentData.id,detailAppointmentData.order_id)">
  Add/Edit Working Invoice
</a>
<a modal-open="#popupViewAllOrders" ng-click="ViewAllOrders(detailAppointmentData.id)">
  View All
</a>
-->
<div class="popup-buttons" style="display: block">
    <div class="">
        <button class="button estimate-tool-button" type="button" ng-click="redirectTo('order.html#/board/order/' + detailCustomerData.id + '/' + detailAppointmentData.id + '/order/' + backPage + '/' + detailAppointmentData.id)">
            Estimate/Invoice Mgmt
        </button>
    </div>
    <div class="">
        <button class="button estimate-tool-button" type="button" ng-click="redirectTo('order.html#/board/order/' + detailCustomerData.id + '/' + detailAppointmentData.id + '/new/' + backPage + '/' + detailAppointmentData.id)">
            Create Estimate
        </button>
    </div>
    <div class="" ng-if="detailAppointmentData.checktypeorder == 4">
        <button class="button estimate-tool-button" type="button" ng-click="redirectTo('order.html#/board/order/' + detailCustomerData.id + '/' + detailAppointmentData.order_id + '/estimate/' + backPage + '/' + detailAppointmentData.id)">
            {{detailAppointmentData.order_name}} - ${{detailAppointmentData.order_balance_due}}
        </button>
    </div>
    <div class="" ng-if="detailAppointmentData.checktypeorder == 5">
        <button class="button estimate-tool-button" type="button" ng-click="redirectTo('order.html#/board/order/' + detailCustomerData.id + '/' + detailAppointmentData.order_id + '/invoice/' + backPage + '/' + detailAppointmentData.id)">
            {{detailAppointmentData.order_name}} - ${{detailAppointmentData.order_balance_due}}
        </button>
    </div>
    <div class="">
        <button class="button estimate-tool-button" type="button" ng-click="resetworkinginvoice(detailAppointmentData.id,detailAppointmentData.order_id)">
            Add/Edit Working Invoice
        </button>
    </div>
    <div class="">
        <button class="button estimate-tool-button" type="button" ng-click="ViewAllOrders(detailAppointmentData.id)">
            View All
        </button>
    </div>
</div>
<style media="screen" type="text/css">
    .estimate-tool-button {
        width: 70vw !important;
        margin-bottom: 10px;
    }
</style>