<?php $__env->startSection('pageBreadcrumb'); ?> <?php echo $__env->make('layouts.includes.breadcrumb', ['moduleTitle' => (!isset($saasUser) ? __('locale.add') : __('locale.edit')).' '.__('Users') ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-sm-12">
        <div class="card-box">
            <?php echo $__env->make('layouts.modules.header', [ 'title' => (!isset($saasUser) ? __('locale.add') : __('locale.edit')).' '. __('locale.user')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="card-body row">
                <?php if(isset($saasUser)): ?>
                <?php echo Form::model($saasUser, ['route' => [$moduleName.'.update', $saasUser->id] ,'files' => true, "type" => "card" ]); ?>

                <?php else: ?>
                <?php echo Form::open([ 'route' => $moduleName.'.store' ,'files' => true, "type" => "card"]); ?>

                <?php endif; ?>

                <div class="row">
                    <?php echo Form::openGroup('name', __('locale.name'),array("lbl_class" => "required", "class" => "col-lg-6")); ?>

                    <?php echo Form::text('name', $saasUser->name ?? old('name') ); ?>

                    <?php echo Form::closeGroup(); ?>


                    <?php echo Form::openGroup('email', __('locale.email'),array("lbl_class" => "required", "class" => "col-lg-6")); ?>

                    <?php echo Form::text('email', $saasUser->email ?? old('email') ); ?>

                    <?php echo Form::closeGroup(); ?>



                    <?php echo Form::openGroup('password', __('locale.password'),array("lbl_class" => "required", "class" => "col-lg-6")); ?>

                    <?php echo Form::password('password'); ?>

                    <?php echo Form::closeGroup(); ?>


                    <?php echo Form::openGroup('password_confirmation', __('locale.password_confirmation'),array("lbl_class" => "required", "class" => "col-lg-6")); ?>

                    <?php echo Form::password('password_confirmation'); ?>

                    <?php echo Form::closeGroup(); ?>


                    <?php echo Form::openGroup('avatar',  Lang::get('student::locale.avatar')); ?>

                    <?php echo Form::file('avatar'); ?>

                    <?php $__env->startPush("scripts-footer"); ?>
                    <?php
                    $options = [];
                    if (isset($saasUser->avatar)) {
                    $options["initialPreview"][] = $saasUser->avatar;
                    } ?>
                    <?php echo Form::filejs(); ?>

                    <?php $__env->stopPush(); ?>
                    <?php echo Form::closeGroup(); ?>

                </div>

            </div>
        </div>
    </div>
</div>
<div class="row"> <?php echo $__env->make('layouts.forms.actions', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></div>
<?php echo Form::close(); ?>

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


<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/sms/app/Modules/Saasuser/Resources/Views/createOrUpdate.blade.php ENDPATH**/ ?>