<?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($member ?? ''  && $member->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>

        
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('username', getCurrentLocale()) ?? __('members.username')); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('username') ? 'is-invalid' : ''); ?>" name="username" placeholder="<?php echo e(meta('username', getCurrentLocale()) ?? __('members.username')); ?>" value='<?php echo e(old("username", $member->username ?? "")); ?>'/>
        </div>
        
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('full_name', getCurrentLocale()) ?? __('members.full_name')); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('full_name') ? 'is-invalid' : ''); ?>" name="full_name" placeholder="<?php echo e(meta('full_name', getCurrentLocale()) ?? __('members.full_name')); ?>" value='<?php echo e(old("full_name", $member->full_name ?? "")); ?>'/>
        </div>
        
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('email', getCurrentLocale()) ?? __('members.email')); ?> </label>
            <input type="email" class="form-control <?php echo e($errors->has('email') ? 'is-invalid' : ''); ?>" name="email" placeholder="<?php echo e(meta('email', getCurrentLocale()) ?? __('members.email')); ?>" value='<?php echo e(old("email", $member->email ?? "")); ?>'/>
        </div>


        

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('password', getCurrentLocale()) ?? __('members.password')); ?> </label>
            <input type="password" class="form-control <?php echo e($errors->has('password') ? 'is-invalid' : ''); ?>" name="password" placeholder="<?php echo e(meta('password', getCurrentLocale()) ?? __('members.password')); ?>" value='<?php echo e(old("password", "")); ?>'/>
        </div>

        

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('phone', getCurrentLocale()) ?? __('members.phone')); ?> </label>
            <input type="number" class="form-control <?php echo e($errors->has('phone') ? 'is-invalid' : ''); ?>" name="phone" placeholder="<?php echo e(meta('phone', getCurrentLocale()) ?? __('members.phone')); ?>" value='<?php echo e(old("phone", $member->phone ?? "")); ?>'/>
        </div>


        

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('gender', getCurrentLocale()) ?? __('members.gender')); ?> </label>
              <select name="gender" class="form-control <?php echo e($errors->has('gender') ? 'is-invalid' : ''); ?>">
                <option <?php if(isset($member)): ?><?php if($member->gender == 'male'): ?> selected <?php endif; ?> <?php endif; ?> value="male"><?php echo e(__('members.male')); ?></option>
                <option <?php if(isset($member)): ?><?php if($member->gender == 'female'): ?> selected <?php endif; ?> <?php endif; ?> value="female"><?php echo e(__('members.female')); ?></option>
            </select>

        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('img', getCurrentLocale()) ?? __('members.img')); ?> </label>
            <input type="file" class="form-control <?php echo e($errors->has('img') ? 'is-invalid' : ''); ?>" name="img"/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('city', getCurrentLocale()) ?? __('members.city')); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('city') ? 'is-invalid' : ''); ?>" name="city" placeholder="<?php echo e(meta('city', getCurrentLocale()) ?? __('members.city')); ?>" value='<?php echo e(old("city", $member->city ?? "")); ?>'/>
        </div>        

      <div class="form-group col-lg-6">
            <label><?php echo e(meta('job', getCurrentLocale()) ?? __('members.job')); ?> </label>
             <input type="text" class="form-control <?php echo e($errors->has('job') ? 'is-invalid' : ''); ?>" name="job" placeholder="<?php echo e(meta('job', getCurrentLocale()) ?? __('members.job')); ?>" value='<?php echo e(old("job", $member->job ?? "")); ?>'/>
            </div>
            <?php if(!isset($member)): ?>
            <div class="form-group col-lg-12">
            <label><?php echo e(meta('package_id', getCurrentLocale()) ?? __('members.package_id')); ?> </label>
              <select name="package_id" class="form-control <?php echo e($errors->has('package_id') ? 'is-invalid' : ''); ?>">
                  <?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($row->id); ?>"><?php echo e(packagename($row->id)); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
</div>
<?php endif; ?>
        



        <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/members/form.blade.php ENDPATH**/ ?>