<div>
    <div class="card">
        <div class="card-body">
            <form wire:submit="<?php echo e(!empty($update) ? 'update': 'register'); ?>">
                <div class="mb-3 row">
                    <label for="name" class="col-md-5 col-form-label text-start fw-bold">Name</label>
                    <div class="col-md-7">
                        <input type="text" class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="name" wire:model="name">
                        <!--[if BLOCK]><![endif]--><?php if($errors->has('name')): ?>
                            <span class="text-danger"><?php echo e($errors->first('name')); ?></span>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
                <div class="mb-3 row">
                    <label for="name" class="col-md-5 col-form-label text-start fw-bold">Role</label>
                    <div class="col-md-7">
                        <select class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="role" wire:model="role">
                            <option value="">--select--</option>
                            <option value="User">User</option>
                            <option value="Admin">Admin</option>
                            <option value="Super Admin">Super Admin</option>
                        </select>
                        <!--[if BLOCK]><![endif]--><?php if($errors->has('role')): ?>
                            <span class="text-danger"><?php echo e($errors->first('role')); ?></span>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
                <div class="mb-3 row">
                    <label for="nid" class="col-md-5 col-form-label text-start fw-bold">NID</label>
                    <div class="col-md-7">
                        <input type="number" min="0" class="form-control <?php $__errorArgs = ['nid'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="nid" wire:model="nid">
                        <!--[if BLOCK]><![endif]--><?php if($errors->has('nid')): ?>
                            <span class="text-danger"><?php echo e($errors->first('nid')); ?></span>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
                <div class="mb-3 row">
                    <label for="nid" class="col-md-5 col-form-label text-start fw-bold">Phone</label>
                    <div class="col-md-7">
                        <input type="tel" min="0" class="form-control <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="phone" wire:model="phone">
                        <!--[if BLOCK]><![endif]--><?php if($errors->has('phone')): ?>
                            <span class="text-danger"><?php echo e($errors->first('phone')); ?></span>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
                <div class="mb-3 row">
                    <label for="email" class="col-md-5 col-form-label text-start fw-bold">Email (Login ID)</label>
                    <div class="col-md-7">
                        <input type="email" class="form-control <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="email" wire:model="email">
                        <!--[if BLOCK]><![endif]--><?php if($errors->has('email')): ?>
                            <span class="text-danger"><?php echo e($errors->first('email')); ?></span>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
                <!--[if BLOCK]><![endif]--><?php if(empty($update)): ?>
                <div class="mb-3 row">
                    <label for="password" class="col-md-5 col-form-label text-start fw-bold">Password</label>
                    <div class="col-md-7">
                        <input type="password" class="form-control <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="password" wire:model="password">
                        <!--[if BLOCK]><![endif]--><?php if($errors->has('password')): ?>
                            <span class="text-danger"><?php echo e($errors->first('password')); ?></span>
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>   
 
                <div class="mb-3 row">
                    <label for="password_confirmation" class="col-md-5 col-form-label text-start fw-bold">Confirm Password</label>
                    <div class="col-md-7">
                        <input type="password" class="form-control" id="password_confirmation" wire:model="password_confirmation">
                    </div>
                </div>
                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                <div class="mb-3 row">
                    <label for="photo" class="col-md-5 col-form-label text-start fw-bold">Photo</label>
                    <div class="col-md-7">
                        <input type="file" class="form-control" id="photo" wire:model="photo">
                        <!--[if BLOCK]><![endif]--><?php if($photo): ?> 
                            <img src="<?php echo e($photo->temporaryUrl()); ?>" style="width:200px;height:200px">
                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                        <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
                <div class="mb-3 row">
                    <button type="submit" class="col-md-3 offset-md-5 btn btn-primary">
                        <?php echo e(!empty($update) ? 'Update': 'Register'); ?>

                    </button>
                </div>
            </form>
            <div class="mb-3 row"> 
                <span wire:loading class="col-md-3 offset-md-5 text-primary">Processing...</span>
            </div>
        </div>
    </div>
</div>    <?php /**PATH C:\laragon\www\marketing_data_analysis\resources\views/livewire/register.blade.php ENDPATH**/ ?>