 <div class="modal-header">
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
     <h4 class="modal-title"><?= lang('confirm_order'); ?></h4>
 </div>
 <div class="modal-body min-vh-80">
     <div class="orderType">
         <?php $jsonTypes = !empty($orderJson->order_types) ? json_decode($orderJson->order_types, true) : ''; ?>
         <?php if (empty($jsonTypes)): ?>
             <?php if (is_access('pos-settings') == 1) : ?>
                 <div class="card empty_msg">
                     <div class="card-body d-flex align-center flex-column">
                         <div class="d-flex align-items-center">
                             <i class="fas fa-cogs fa-lg text-warning me-3"></i>
                             <div>
                                 <strong>Action Required:</strong> Please configure your POS by setting up order types and other settings in <strong>POS &gt; Settings</strong>.
                             </div>
                         </div>
                         <a href="<?= base_url(isset($this->link['pos_settings_link']) ? $this->link['pos_settings_link'] : ''); ?>" class="btn btn-sm btn-secondary mt-10">
                             <i class="fas fa-wrench me-1"></i> Configure Now
                         </a>
                     </div>
                 </div>
             <?php endif; ?>
         <?php else: ?>
             <?php $orderType = !empty($jsonTypes) ? array_keys($jsonTypes) : '' ?>
             <select name="order_type" id="order_type" class="form-control order_type" data-id="<?= $shopId; ?>"
                 onfocus="this.removeAttribute('readonly');">
                 <option value=""><?= lang('select'); ?></option>
                 <?php foreach ($order_types as $key => $order_type): ?>
                     <?php if (in_array($order_type['slug'], $orderType)): ?>
                         <option value="<?= $order_type['type_id']; ?>" data-slug="<?= $order_type['slug']; ?>">
                             <?= $order_type['type_name']; ?></option>
                     <?php endif; ?>
                 <?php endforeach; ?>
             </select>
         <?php endif; ?>

     </div>
     <div class="showOrderdetails">
         <!-- order type details -->
     </div>

     <div class="orderDetailsModal custom-fields">
         <!-- show order details modal -->
     </div>
 </div>
 <div class="modal-footer dis_none payModalBtn">

     <button type="submit" form="addOrderForm" class="btn btn-primary"><?= lang('process_to_complete'); ?></button>
 </div>