<?php $__env->startSection('content'); ?>
    <form action="<?php echo e(route('packages.store')); ?>" method="POST">

        <?php echo csrf_field(); ?>

        <div class="card">
            <div class="card-body">
                <div class="row">
                    <div class="form-group col-md-6">
                        <label for="package_name" class="block text-sm font-medium text-gray-700">
                            Package Name*
                        </label>
                        <input type="text" name="package_name" id="package_name" value="<?php echo e(old('package_name')); ?>"
                            class="form-control " placeholder="Package Name" autocomplete="off" required>
                        <?php $__errorArgs = ['package_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="alert alert-danger">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                    </div>
                    <div class="form-group col-md-6">
                        <label for="package_rate" class="block text-sm font-medium text-gray-700">
                            Package Rate
                        </label>
                        <input step="0.01" type="number" name="package_rate" id="package_rate"
                            class="focus:ring-indigo-500 focus:border-indigo-500 form-control" placeholder="Package Rate"
                            value="<?php echo e(old('package_rate')); ?>" autocomplete="off" required>
                        <?php $__errorArgs = ['package_rate'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="alert alert-danger">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-md-6">
                        <label for="pool_name" class="block text-sm font-medium text-gray-700">
                            <?php if(checkAPI()): ?>
                                Profile Name
                            <?php else: ?>
                                Pool Name
                            <?php endif; ?>
                        </label>

                        <?php if(checkAPI()): ?>
                            <input type="text" name="profile_name" id="profile_name"
                                class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                                placeholder="Profile Name" value="<?php echo e(old('profile_name')); ?>" autocomplete="off">
                            <?php $__errorArgs = ['profile_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <?php else: ?>
                            <input type="text" name="pool_name" id="pool_name"
                                class="focus:ring-indigo-500 focus:border-indigo-500 form-control" placeholder="Pool Name"
                                value="<?php echo e(old('pool_name')); ?>" autocomplete="off" required>
                            <?php $__errorArgs = ['pool_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <?php endif; ?>
                    </div>
                    <?php if(checkSettings('static_ip_manage') == 'enable'): ?>
                        <div class="form-group col-md-6">
                            <span class="text-green"><strong>Note :</strong> Upload Speed & Download Speed এ যা দিবেন তা ৮ দিয়ে ভাগ হবে EX: (1MB / 8 = 128kb)</span>
                            <div class="row">
                                <div class="col-md-6">
                                    <label for="package_rate" class="block text-sm font-medium text-gray-700">
                                        Package Upload Speed
                                    </label>
                                    <input step="0.01" type="text" name="speed_up" id="speed_up"
                                        class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                                        placeholder="Package Upload Speed" value="<?php echo e(old('speed_up')); ?>" autocomplete="off"
                                        required>
                                    <?php $__errorArgs = ['speed_up'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="alert alert-danger">
                                            <?php echo e($message); ?>

                                        </div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <div class="col-md-6">
                                    <label for="package_rate" class="block text-sm font-medium text-gray-700">
                                        Package Download Speed
                                    </label>
                                    <input step="0.01" type="text" name="speed_down" id="speed_down"
                                        class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                                        placeholder="Package Download Speed" value="<?php echo e(old('speed_down')); ?>"
                                        autocomplete="off" required>
                                    <?php $__errorArgs = ['speed_down'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="alert alert-danger">
                                            <?php echo e($message); ?>

                                        </div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                    <?php if(checkSettings('package_limite_quantity') == 'enable'): ?>
                        <div class="form-group col-md-6">
                            <label for="package_rate" class="block text-sm font-medium text-gray-700">
                                Limite Quanity
                            </label>
                            <input step="0.01" type="number" name="limite_quantity" id="limite_quanity"
                                placeholder="In MB" min="0"
                                class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                                placeholder="Limite Quanity In GB" value="<?php echo e(old('limite_quantity')); ?>" autocomplete="off"
                                required>
                            <?php $__errorArgs = ['limite_quantity'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    <?php endif; ?>

                    <div class="form-group col-md-6">
                        <label for="package_rate" class="block text-sm font-medium text-gray-700">
                            Package Bandwidth for BTRC Report
                        </label>
                        <input type="number" name="package_bandwidth" id="package_bandwidth"
                            class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                            placeholder="Package Bandwidth for BTRC Report" value="<?php echo e(old('package_bandwidth')); ?>"
                            autocomplete="off" required>
                        <?php $__errorArgs = ['package_bandwidth'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="alert alert-danger">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <div class="form-group col-md-6">
                        <label for="package_rate" class="block text-sm font-medium text-gray-700">
                            Package Price for BTRC Report
                        </label>
                        <input type="number" name="btrc_package_price" id="btrc_package_price" step=".01"
                            class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                            placeholder="Package Price for BTRC Report" value="<?php echo e(old('btrc_package_price')); ?>"
                            autocomplete="off">
                        <?php $__errorArgs = ['btrc_package_price'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="alert alert-danger">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>


                    <?php if(checkSettings('package-commission') == 'enable'): ?>
                        <div class="form-group col-md-6">
                            <label for="pool_name" class="block text-sm font-medium text-gray-700">
                                Commission
                            </label>
                            <input type="number" name="commission" id="commission"
                                class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                                placeholder="Commission" value="<?php echo e(old('commission')); ?>" autocomplete="off">
                            <?php $__errorArgs = ['commission'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    <?php endif; ?>

                    <?php if(globalPermission('ResellerClientOnlineRecharge') && !globalPermission('setClientPaymentAmountToClient')  ): ?>
                        <div class="form-group col-md-6">
                            <label for="pool_name" class="block text-sm font-medium text-gray-700">
                                Client payment amount
                            </label>
                            <input type="number" name="client_payment_amount" id="client_payment_amount"
                                class="focus:ring-indigo-500 focus:border-indigo-500 form-control"
                                placeholder=" Client payment amount" value="<?php echo e(old('client_payment_amount')); ?>" autocomplete="off">
                            <?php $__errorArgs = ['client_payment_amount'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger">
                                    <?php echo e($message); ?>

                                </div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    <?php endif; ?>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary float-right">
                        Save
                    </button>
                </div>
            </div>
        </div>





    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/crp/radius-circle/resources/views/packages/create.blade.php ENDPATH**/ ?>