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

<div class="side-title">
    <h3><?php echo e($head ?? ''); ?></h3>
</div>

<div class="border-item">
    <form class="form-row" method="post" action="<?php echo e($action); ?>" enctype="multipart/form-data">
        <?php if($package ?? ''  && $package->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

 <?php $__currentLoopData = $language; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-group col-lg-6">
            <label>The Name <?php echo e($lang->local); ?> </label>
            <?php 
            $error_name ='package.'.$lang->local.'.name';
            $error_description ='package.'.$lang->local.'.description';
              ?>
            <input type="text" class="form-control <?php echo e($errors->has($error_name) ? 'is-invalid' : ''); ?>" name="package[<?php echo e($lang->local); ?>][name]"placeholder="<?php echo e(meta('name', getCurrentLocale()) ??__('packages.name')); ?>"<?php if($package ?? '' && $package->id): ?> value="<?php echo e(packagelangname($package->id ,$lang->id)); ?>" <?php else: ?> value='<?php echo e(old("$error_name")); ?>' <?php endif; ?>/>
            <input type="hidden" name="package[<?php echo e($lang->local); ?>][language_id]" value="<?php echo e($lang->id); ?>">
        </div>

        <div class="form-group col-lg-6">
            <label>The Description <?php echo e($lang->local); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has($error_description) ? 'is-invalid' : ''); ?>" name="package[<?php echo e($lang->local); ?>][description]" placeholder="<?php echo e(meta('description', getCurrentLocale()) ??__('packages.description')); ?>" <?php if($package ?? ''  && $package->id): ?> value="<?php echo e(packagelangdescription($package->id ,$lang->id)); ?>" <?php else: ?> value='<?php echo e(old("$error_name")); ?>' <?php endif; ?> />
        </div>


    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


          <div class="form-group col-lg-6">
            <label><?php echo e(meta('cost', getCurrentLocale()) ?? __('packages.cost')); ?> </label>
            <input type="number" min="0" class="form-control  <?php echo e($errors->has('cost') ? 'is-invalid' : ''); ?>" name="cost" placeholder="<?php echo e(meta('cost', getCurrentLocale()) ??__('packages.cost')); ?>" value='<?php echo e(old("cost", $package->cost ?? "")); ?>'/>
            
        </div>
          <div class="form-group col-lg-6">
            <label><?php echo e(meta('img', getCurrentLocale()) ?? __('packages.img')); ?> </label>
            <input type="file" class="form-control  <?php echo e($errors->has('img') ? 'is-invalid' : ''); ?>" name="img" id="img" placeholder="<?php echo e(meta('img', getCurrentLocale()) ??__('packages.img')); ?>" value='<?php echo e(old("img")); ?>'/>
            
        </div>

        <div class="text-center mt-5 col-12">
            <button class="butn"><span><?php echo e(__('site.save')); ?></span></button>
        </div>
    </form>
</div>

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

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->

            <script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
    <script>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            imagePath = "<?php echo e(asset('')); ?>";
    </script>
    <script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/lamis/resources/views/admin/packages/form.blade.php ENDPATH**/ ?>