<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel"><?php echo e($title); ?></h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
                    <svg> ... </svg>
                </button>
            </div>
            <div class="modal-body">
                <div id="error_message"></div>

                <div class="row mb-3">
                    <label for="service_category_id" class="col-sm-4 col-form-label">Service Category</label>
                    <div class="col">
                        <select id="service_category_id" class="form-select">
                            <option selected disabled>Choose...</option>

                            <?php if($action == 'create'): ?>
                                <?php $__currentLoopData = $serviceCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->service_category_name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <?php $__currentLoopData = $serviceCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($item->id); ?>"
                                        <?php echo e($servicePackage->scat_id == $item->id ? 'selected' : ''); ?>>
                                        <?php echo e($item->service_category_name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </select>
                    </div>
                </div>
                <div class="row mb-3">
                <label for="type" class="col-sm-4 col-form-label">Type</label>
                    <div class="col">
                        <select id="type" class="form-select">
                            <option selected disabled>Choose...</option>

                            <?php if($action == 'create'): ?>
                                <option value="monthly">Monthly</option>
                                <option value="yearly">Yearly</option>
                            <?php else: ?>
                                <option value="monthly" <?php echo e($servicePackage->type == 'monthly' ? 'selected' : ''); ?>>
                                    Monthly
                                </option>
                                <option value="yearly" <?php echo e($servicePackage->type == 'yearly' ? 'selected' : ''); ?>>
                                    Yearly
                                </option>
                            <?php endif; ?>
                        </select>
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="package_name" class="col-sm-4 col-form-label">Package Name</label>
                    <div class="col">
                        <input type="text" class="form-control" id="package_name"
                            value="<?php echo e($servicePackage ? $servicePackage->package_name : ''); ?>">
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="qty" class="col-sm-4 col-form-label">Quantity</label>
                    <div class="col">
                        <input type="number" class="form-control" id="qty"
                            value="<?php echo e($servicePackage ? $servicePackage->qty : ''); ?>">
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="monthly_price" class="col-sm-4 col-form-label">Price</label>
                    <div class="col">
                        <input type="number" class="form-control" id="price" step="0.01"
                            value="<?php echo e($servicePackage ? $servicePackage->price : ''); ?>">
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="monthly_discount" class="col-sm-4 col-form-label">Discount</label>
                    <div class="col">
                        <input type="number" class="form-control" id="discount" step="0.01"
                            value="<?php echo e($servicePackage ? $servicePackage->discount : ''); ?>">
                    </div>
                </div>
                <div class="row mb-3">
                    <label for="yearly_discount" class="col-sm-4 col-form-label">Features</label>
                    <div class="col">
                        

                            <textarea class="form-control" id="features" rows="5"><?php echo e($servicePackage ? $servicePackage->features : ''); ?></textarea>
                    </div>
                </div>

            </div>
            <div class="modal-footer">
                <button class="btn btn btn-light-dark" data-bs-dismiss="modal"><i class="flaticon-cancel-12"></i>
                    Discard</button>
                <?php if($action == 'create'): ?>
                    <button type="button" class="btn btn-primary" id="create">Create</button>
                <?php elseif($action == 'update'): ?>
                    <input type="hidden" id="service_package_id" value="<?php echo e($servicePackage->id); ?>">
                    <button type="button" class="btn btn-primary" id="update">Update</button>
                <?php endif; ?>
            </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /home/ferdous-ahmed-khan/Project/rent-a-mailbox/resources/views/app/service-packages/modal.blade.php ENDPATH**/ ?>