<div class="stag-popup stag-popup-sm mcp-theme-1" stag-popup-key="logistics-popup">
    <form method="POST" action="" class="overflow-visible min-height-300px">
        <h3 class="stag-popup-title mb-2">
            <span v-if="currentPrescription && currentPrescription.erx_category === 'DRUG'">Pharmacy</span>
            <span v-else-if="currentPrescription && currentPrescription.erx_category === 'LAB'">Lab</span>
            <span v-else-if="currentPrescription && currentPrescription.erx_category === 'IMAGING'">Lab</span>
            <span v-else>Logistics</span>
            <a href="#" class="ml-auto text-secondary"
               onclick="return closeStagPopup()"><i class="fa fa-times-circle"></i></a>
        </h3>
        <div class="mb-2">
            <label class="text-sm text-secondary mb-1">Business Name</label>
            <input type="text" class="form-control form-control-sm min-width-unset facility-search"
                   stag-suggest
                   stag-suggest-ep="/search-facility/json"
                   autocomplete="donotdoit"
                   v-model="currentPrescriptionLogistics.logisticsDetailJson.facilityName">
        </div>
        <div class="row">
            <div class="col-4 pr-0">
                <div class="mb-2">
                    <label class="text-sm text-secondary mb-1">City</label>
                    <input type="text" class="form-control form-control-sm min-width-unset"
                           v-model="currentPrescriptionLogistics.logisticsDetailJson.facilityCity">
                </div>
            </div>
            <div class="col-4 pr-0">
                <div class="mb-2">
                    <label class="text-sm text-secondary mb-1">State</label>
                    <input type="text" class="form-control form-control-sm min-width-unset"
                           v-model="currentPrescriptionLogistics.logisticsDetailJson.facilityState">
                </div>
            </div>
            <div class="col-4">
                <div class="mb-2">
                    <label class="text-sm text-secondary mb-1">ZIP</label>
                    <input type="text" class="form-control form-control-sm min-width-unset"
                           v-model="currentPrescriptionLogistics.logisticsDetailJson.facilityZip">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-6 pr-0">
                <div class="mb-2">
                    <label class="text-sm text-secondary mb-1">Phone</label>
                    <input type="text" class="form-control form-control-sm min-width-unset"
                           v-model="currentPrescriptionLogistics.logisticsDetailJson.facilityPhone">
                </div>
            </div>
            <div class="col-6">
                <div class="mb-2">
                    <label class="text-sm text-secondary mb-1">Fax</label>
                    <input type="text" class="form-control form-control-sm min-width-unset"
                           v-model="currentPrescriptionLogistics.logisticsDetailJson.facilityFax">
                </div>
            </div>
        </div>
        <div class="d-flex align-items-center justify-content-center mt-3">
            <button type="button" class="btn btn-sm btn-primary mr-2" v-on:click.prevent="saveLogistics()">Submit
            </button>
            <button type="button" class="btn btn-sm btn-default border" onclick="return closeStagPopup()">Cancel
            </button>
        </div>
    </form>
</div>
