<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <?php $__env->startSection('title'); ?>
        Pages Management
    <?php $__env->stopSection(); ?>
    <!-- Page Heading -->
    <h1 class="h3 mb-2 text-gray-800">

    </h1>
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">
                Categories
            </h6>
        </div>
        <div class="card-body">
            <form action="<?php echo e(route('admin.pricing.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Title</label>
                            <input type="text" name="title" placeholder="Title" class="form-control" required>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Description</label>
                            <textarea name="description" class="summernote">
                            </textarea>
                            <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?> </span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>

                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Includes</label>
                            <div class="d-flex">
                                <input type="text" name="include[]" class="form-control">
                                <button type="button" class="btn btn-primary" id="addmore">Add more</button>
                            </div>
                            <div id="includesContainer">
                            </div>
                        </div>
                    </div>


                    <div class="col-6">
                        <div class="mt-3">
                            <label for="">One time price</label>
                            <input type="number" name="one_time_price" class="form-control">
                        </div>
                    </div>

                    <div class="col-6">
                        <div class="mt-3">
                            <label for="">One time discount (%) </label>
                            <input type="number" name="one_time_discount" class="form-control">
                        </div>
                    </div>

                    <div class="col-6">
                        <div class="mt-3">
                            <label for="">Monthly price</label>
                            <input type="number" name="monthly_price" class="form-control">
                        </div>
                    </div>

                    <div class="col-6">
                        <div class="mt-3">
                            <label for="">Monthly discount (%) </label>
                            <input type="number" name="monthly_discount" class="form-control">
                        </div>
                    </div>

                    <div class="col-6">
                        <div class="mt-3">
                            <label for="">Yearly price</label>
                            <input type="number" name="yearly" class="form-control">
                        </div>
                    </div>

                    <div class="col-6">
                        <div class="mt-3">
                            <label for="">Yearly discount (%) </label>
                            <input type="number" name="yearly_discount" class="form-control">
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="mt-3">
                            <button type="submit" class="btn btn-primary">Submit</button>
                        </div>
                    </div>

                </div>
            </form>
        </div>
    </div>
    <script>
        $(document).ready(function(){
            $('#addmore').click(function(){
                var newIncludeInput = '<div class="d-flex mb-2"><input type="text" name="include[]" class="form-control"><button class="btn btn-danger ms-2 deleteInclude">Delete</button></div>';
                $('#includesContainer').append(newIncludeInput);
            });

            // Event delegation to handle dynamically added delete buttons
            $('#includesContainer').on('click', '.deleteInclude', function(){
                $(this).parent().remove();
            });
        });
        </script>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?>
<?php /**PATH /home/raj/Documents/teamprojects/kik/resources/views/admin/plan/create.blade.php ENDPATH**/ ?>