<div class="modal fade" id="packageModal" tabindex="-1" aria-labelledby="packageModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <form id="packageForm" action="<?php echo e(route('admin.packages.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="modal-header">
                    <h5 class="modal-title" id="packageModalLabel">Create Package</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <div class="row gx-3 gy-3">
                        <div class="col-md-6">
                            <label class="form-label">Name</label>
                            <input type="text" name="name" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">MikroTik Server</label>
                            <select name="mikrotik_server_id" id="packageMikrotikServerId" class="form-select">
                                <option value="">Software only</option>
                                <?php $__currentLoopData = $mikrotiks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mikrotik): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($mikrotik->id); ?>" <?php if(!$mikrotik->connected): echo 'disabled'; endif; ?>><?php echo e($mikrotik->name); ?> — <?php echo e($mikrotik->ip_address); ?>:<?php echo e($mikrotik->api_port); ?> <?php echo e($mikrotik->connected ? '(Connected)' : '(Disconnected)'); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">MikroTik Package Profile</label>
                            <select name="mikrotik_profile_name" class="form-select" disabled>
                                <option value="">Select MikroTik first</option>
                            </select>
                            <div class="form-text text-muted" id="mikrotik-profile-help">Profiles will load when a connected MikroTik is selected.</div>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Speed</label>
                            <input type="text" name="net_speed" class="form-control" placeholder="e.g. 100Mbps">
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Price</label>
                            <input type="number" step="0.01" name="price" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Status</label>
                            <select name="status" class="form-select" required>
                                <option value="1" selected>Active</option>
                                <option value="0">Inactive</option>
                            </select>
                        </div>
                        <div class="col-12">
                            <label class="form-label">Description</label>
                            <textarea name="description" class="form-control" rows="3"></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
                    <button type="submit" class="btn btn-primary">Save Package</button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php /**PATH D:\herd\billing\laravel-app\resources\views\admin\packages\partials\modal.blade.php ENDPATH**/ ?>