<?php $__env->startSection('title','Package - Edit'); ?>
<?php $__env->startSection('header_extra'); ?>
<link href="<?php echo e(asset('assets/plugins/summernote/summernote.css')); ?>" rel="stylesheet" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>


<div class="row">
    <div class="col-12">
        <div class="card-box">
            <h4 class="m-t-0 header-title"><b>Package Edit</b></h4>
            <p class="text-muted m-b-30 font-14">
                Required Fields (<code>*</code>)
            </p>

            <div class="row">
                <div class="col-12">
                    <div class="p-20">
                        <?php echo $__env->make('widget/notifications', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php if($errors->any()): ?>
                            <div class="alert alert-danger">
                                <ul>
                                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li><?php echo e($error); ?></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </div>
                        <?php endif; ?>
                        
                        <form class="form-horizontal validate" action="<?php echo e(route('admin.package.edit_update',$r->id)); ?>" method="post" role="form" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <input type="hidden" id="rid" value="<?php echo e(Auth::id()); ?>">
                            
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Package Stripe ID <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <input type="text" name="stripe_id" class="form-control" required value="<?php echo e($r->stripe_id); ?>">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Name <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <input type="text" name="name" class="form-control" required value="<?php echo e($r->name); ?>">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Duration <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <input type="text" name="duration" class="form-control" required=""  value="<?php echo e($r->duration); ?>">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-2 col-form-label">Price <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <input type="number" step="any" name="price" required="" class="form-control" value="<?php echo e($r->price); ?>">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Tax <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <input type="number" step="any" name="tax" required="" class="form-control" value="<?php echo e($r->tax); ?>">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Grand Amount <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <input type="number" step="any" name="grand" required="" class="form-control" value="<?php echo e($r->grand); ?>">
                                </div>
                            </div>
                            
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Description <span class="text-danger">*</span></label>
                                <div class="col-8">
                                    <textarea class="summernote" name="description"><?php echo e($r->description); ?></textarea>
                                </div>
                            </div>
                            
                            
                            <div class="form-group row">
                                <div class="col-8 offset-4">
                                    <button type="submit" class="btn btn-primary waves-effect waves-light">
                                        Submit
                                    </button>
                                    
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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

<?php $__env->startSection('footer_scripts'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/plugins/parsleyjs/parsley.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/summernote/summernote.min.js')); ?>"></script>
<script type="text/javascript">
    $('.validate').parsley();
    $(function(){
        $(this).active_menu("subscription");
        
        
    });
    $('.summernote').summernote({
        height: 350,                 // set editor height
        minHeight: null,             // set minimum height of editor
        maxHeight: null,             // set maximum height of editor
        focus: false                 // set focus to editable area after initializing summernote
    });
    
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/myocanadapanel/public_html/portal/project/resources/views/admin/package/edit.blade.php ENDPATH**/ ?>