| Path : /var/www/html/moneyexchange/storage/framework/views/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/moneyexchange/storage/framework/views/5e848cb0568ecc7175fea5f3d9cc7a070ce42f95.php |
<?php $__env->startSection('content'); ?>
<div class="page-wrapper">
<div class="page-breadcrumb">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h4 class="page-title"><?php echo e(__('message.user')); ?></h4>
<div class="ms-auto text-end">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="<?php echo e(route('users.create')); ?>" class="btn btn-primary btn-sm">
<i class="fa fa-plus"></i>
<?php echo e(__('message.add new')); ?>
</a>
</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<div class="container-fluid" style="padding-top: 0px;">
<div class="card">
<div class="card-body form wizard-content">
<?php if(empty($user)): ?>
<form method="POST" action="<?php echo e(route('users.store')); ?>" class="mt-5">
<?php echo e(csrf_field()); ?>
<section class="col-sm-6">
<div class="mb-3 mt-3">
<label for="email"><?php echo e(__('message.name')); ?></label>
<input type="text" class="form-control" placeholder="<?php echo e(__('message.name')); ?>" name="name" required>
</div>
<div class="mb-3">
<label><?php echo e(__('message.phone')); ?></label>
<input type="text" class="form-control" placeholder="<?php echo e(__('message.phone')); ?>" name="phone" required>
</div>
<div class="mb-3">
<label><?php echo e(__('message.password')); ?></label>
<input type="password" class="form-control" placeholder="<?php echo e(__('message.password')); ?>" name="password" required>
</div>
<div class="mb-3">
<label><?php echo e(__('message.role')); ?></label>
<select class="form-select" name="role_id">
<?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($role->id); ?>">
<?php echo e($role->name); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="mb-3">
<label><?php echo e(__('message.allow to change exchange rate')); ?></label>
<input class="form-check-input" type="checkbox" value="1">
</div>
<div class="text-center">
<button class="btn btn-danger btn-sm" type="button" onclick="window.history.back();">
<?php echo e(__('message.cancel')); ?>
</button>
<button type="submit" class="btn btn-primary btn-sm">
<i class="fa fa-save"></i>
<?php echo e(__('message.save')); ?>
</button>
</div>
</section>
</form>
<?php else: ?>
<form method="POST" action="<?php echo e(route('users.update', $user)); ?>" class="mt-5">
<input name="_method" type="hidden" value="PUT">
<?php echo e(csrf_field()); ?>
<section class="col-sm-6">
<div class="mb-3 mt-3">
<label for="email"><?php echo e(__('message.name')); ?></label>
<input type="text" class="form-control" placeholder="<?php echo e(__('message.name')); ?>" name="name" value="<?php echo e($user->name); ?>" required>
</div>
<div class="mb-3">
<label><?php echo e(__('message.phone')); ?></label>
<input type="text" class="form-control" placeholder="<?php echo e(__('message.phone')); ?>" name="phone" value="<?php echo e($user->phone); ?>" required>
</div>
<div class="mb-3">
<label>
<?php echo e(__('message.password')); ?>
<span style="color:#da542e;font-size: 13px;">
(<?php echo e(__("message.keep it blank if you don't want to change password")); ?>)
</span>
</label>
<input type="password" class="form-control" placeholder="<?php echo e(__('message.password')); ?>" name="password">
</div>
<?php if($user->id!=Auth::id()): ?>
<div class="mb-3">
<label><?php echo e(__('message.role')); ?></label>
<select class="form-select" name="role_id">
<?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($role->id); ?>" <?php if($role->id==$user->role_id): ?> selected <?php endif; ?>>
<?php echo e($role->name); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="mb-3">
<label><?php echo e(__('message.status')); ?></label>
<select class="form-select" name="is_active">
<option value="1" <?php if($user->is_active): ?> selected <?php endif; ?>><?php echo e(__('message.enable')); ?></option>
<option value="0" <?php if(!$user->is_active): ?> selected <?php endif; ?>><?php echo e(__('message.disable')); ?></option>
</select>
</div>
<div class="mb-3">
<label><?php echo e(__('message.allow to change exchange rate')); ?></label>
<select class="form-select" name="allow_to_change_exchange_rate">
<option value="1" <?php if($user->allow_to_change_exchange_rate==1): ?> selected <?php endif; ?>>
<?php echo e(__('message.yes')); ?>
</option>
<option value="0" <?php if($user->allow_to_change_exchange_rate==0): ?> selected <?php endif; ?>>
<?php echo e(__('message.no')); ?>
</option>
</select>
</div>
<?php endif; ?>
<div class="text-center">
<button class="btn btn-danger btn-sm" type="button" onclick="window.history.back();">
<?php echo e(__('message.cancel')); ?>
</button>
<button type="submit" class="btn btn-primary btn-sm">
<i class="fa fa-save"></i>
<?php echo e(__('message.save')); ?>
</button>
</div>
</section>
</form>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<title><?php echo e(__('message.user')); ?></title>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/moneyexchange/resources/views/user/userForm.blade.php ENDPATH**/ ?>