KUJUNTI.ID MINISH3LL
Path : /var/www/html/moneyexchange/storage/framework/views/
(S)h3ll Cr3at0r :
F!le Upl0ad :

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/a8dbc48bb835fa65a73b1279ac9610c4dec71d28.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="row">
      <div class="col-12">        
        <div class="card">
          <div class="card-body">
            <div class="table-responsive">
              <table
                id="zero_config"
                class="table table-striped table-bordered">
                <thead>
                  <tr>
                    <th>#</th>
                    <th><?php echo e(__('message.name')); ?></th>
                    <th><?php echo e(__('message.phone')); ?></th>
                    <th><?php echo e(__('message.role')); ?></th>
                    <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <th>
                        <?php echo e($currency->name); ?> 
                        <img src="<?php echo e(asset($currency->flage)); ?>" style="height:20px;">
                        <img src="<?php echo e(asset($currency->sample_money)); ?>" style="height:20px;">
                      </th>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                    
                    <th><?php echo e(__('message.allow to change exchange rate')); ?></th>
                    <th><?php echo e(__('message.status')); ?></th>
                    <th><?php echo e(__('message.created date')); ?></th>
                    <th><?php echo e(__('message.action')); ?></th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                    $c = [];
                  ?>
                    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class="<?php if(!$user->is_active): ?> disabled-row <?php endif; ?>">
                        <td><?php echo e($index+1); ?></td>
                        <td><?php echo e($user->name); ?></td>
                        <td><?php echo e($user->phone); ?></td>
                        <td><?php echo e($user->role->name); ?></td>
                        <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <td class="credit">
                            <?php
                              $bankAccount = $currency->getCashAmount($user->id);
                              $amount = $bankAccount->credit??0;
                              $c[$currency->currency_code]= ($c[$currency->currency_code]??0)+$amount;
                            ?>
                            <?php echo e(number_format($amount,2)); ?> <?php echo e($currency->currency_code); ?>

                            <br/>
                            <button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#modal<?php echo e($user->id); ?>_<?php echo e($currency->id); ?>" data-transaction='deposit'>
                              <i class="fa fa-plus"></i> 
                              <?php echo e(__('message.deposit')); ?>

                            </button>
                            <button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#modal<?php echo e($user->id); ?>_<?php echo e($currency->id); ?>" data-transaction='withdraw'>
                              <i class="fa fa-arrow-circle-down"></i> 
                              <?php echo e(__('message.withdraw')); ?>

                            </button>
                          </td>

                          <div class="modal fade" id="modal<?php echo e($user->id); ?>_<?php echo e($currency->id); ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
                            <div class="modal-dialog">
                              <div class="modal-content">
                                <div class="modal-header" style="background-color:#081C30; color:white;">
                                  <h1 class="modal-title fs-5" id="exampleModalLabel"><?php echo e(__('message.deposit')); ?>/<?php echo e(__('message.withdraw')); ?></h1>
                                  <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                                </div>
                                <div class="modal-body">
                                  <?php if($bankAccount): ?>
                                  <form  method="POST" action="<?php echo e(route('bank-accounts.deposit-withdraw.store',$bankAccount)); ?>" class="mt-5" enctype="multipart/form-data">
                                    <?php echo e(csrf_field()); ?>

                                      <section class="col-sm-12">              
                                        <div class="mb-3 mt-3">                
                                          <label><?php echo e(__('message.amount')); ?> (<?php echo e($bankAccount->currency->name); ?>)</label>
                                          <input type="number" class="form-control" placeholder="<?php echo e(__('message.amount')); ?>" name="amount" required step="0.01">                
                                          <input type="hidden" name="type" value="xxx">
                                        </div>
                                        <div class="mb-3">
                                            <label><?php echo e(__('message.bank account transaction type')); ?></label>
                                            <select name="bank_account_transaction_type_id" id="pet-select" class="form-control" required="">
                                              <option value=""><?php echo e(__('message.bank account transaction type')); ?></option>
                                              <?php $__currentLoopData = $bankAccountTransactionTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$bankAccountTransactionType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($bankAccountTransactionType->id); ?>">
                                                  <?php echo e($bankAccountTransactionType->name); ?>

                                                </option>
                                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                              </select>
                                        </div>  
                                        <div class="mb-3 mt-3">                
                                          <label><?php echo e(__('message.note')); ?></label>
                                          <input type="text" class="form-control" placeholder="<?php echo e(__('message.note')); ?>" name="note">
                                        </div>
                                        <div class="text-center">

                                          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</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: ?>
                                  Please input bank account for this user
                                  <?php endif; ?>
                                </div>
                              </div>
                            </div>
                          </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                        
                        <td>
                          <input class="form-check-input" type="checkbox" <?php if($user->allow_to_change_exchange_rate||$user->role->name=='admin'): ?> checked <?php endif; ?>>
                        </td>
                        <td title="<?php echo e($user->is_active?'Yes':'No'); ?>">
                          <input class="form-check-input" type="checkbox" <?php if($user->is_active): ?> checked <?php endif; ?>>
                        </td>
                        <td title="<?php echo e($user->created_at); ?>" class="credit">
                          <?php echo e($user->created_at->format('d/m/Y H:i')); ?>

                        </td>   
                        <td>
                          <a href="<?php echo e(route('transactions')); ?>?user_id=<?php echo e($user->id); ?>" class="btn btn-primary btn-sm"><i class="fa fa-eye"></i><?php echo e(__('message.report')); ?></a>
                          <a href="<?php echo e(route('users.edit',$user)); ?>" class="btn btn-primary btn-sm"><i class="fa fa-eye"></i></a>
                          <form method="POST" action="<?php echo e(route('users.destroy', $user)); ?>" style="display:inline">
                           <input name="_method" type="hidden" value="DELETE">
                           <?php echo e(csrf_field()); ?>

                            <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('<?php echo e(__('message.do you want to delete')); ?>?')">
                             <i class="fas fa-trash" style="color: #FFF;"></i>
                            </button>
                          </form>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <thead>
                      <tr style="">
                        <th colspan="4" style="text-align:right;"> <?php echo e(__('message.total')); ?></th>
                        <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <th><?php echo e(number_format($c[$currency->currency_code],2)); ?> <?php echo e($currency->currency_code); ?></th>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <th colspan="4">
                          <?php echo e(__('message.date')); ?>: <?php echo e(date("Y/m/d h:i:sa")); ?>

                        </th>
                      </tr>
                    </thead>
                </tbody>
              </table>
              <div class="rows">
                <?php echo e($users->appends($_GET)->links()); ?>

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

<?php $__env->startSection('scripts'); ?>
<script type="text/javascript">
  $('.modal').on('show.bs.modal', function(e) {
    //get data-id attribute of the clicked element
    var t = $(e.relatedTarget).data('transaction');
    //populate the textbox
    $(e.currentTarget).find('input[name="type"]').val(t);
});
</script>
<?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/userList.blade.php ENDPATH**/ ?>

© KUJUNTI.ID