| 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/a70ad986685e0a418e3dbe8be6b98f4f81b6426a.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.bank account')); ?></h4>
<div class="ms-auto text-end">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="<?php echo e(route('bank-accounts.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="row">
<form method="get" id="search-form">
<input type="text" value="25" name="perpage" style="display: none;">
<div class="col-sm-12 col-xs-12 row">
<div class="col-md-2 col-xs-6">
<select name="is_bank" id="pet-select" class="form-control">
<option value='' <?php if($is_bank==null): ?> selected <?php endif; ?>><?php echo e(__('message.select type')); ?></option>
<option value="1" <?php if($is_bank==1): ?> selected <?php endif; ?>>
<?php echo e(__('message.bank')); ?>
</option>
<option value="0" <?php if($is_bank==0): ?> selected <?php endif; ?>>
<?php echo e(__('message.cash')); ?>
</option>
</select>
</div>
<div class="col-md-2 col-xs-6">
<select name="currency_id" id="pet-select" class="form-control">
<option value=""><?php echo e(__('message.currency')); ?></option>
<?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($currency->id); ?>" <?php if($currency->id==$currency_id): ?> selected <?php endif; ?>>
<?php echo e($currency->name); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<?php if(Auth::user()->role_id==2): ?>
<div class="col-md-2 col-xs-6">
<select name="responsible_by_user_id" id="pet-select" class="form-control">
<option value=""><?php echo e(__('message.all staff')); ?></option>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=>$user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($user->id); ?>" <?php if($user->id==$responsible_by_user_id): ?> selected <?php endif; ?>>
<?php echo e($user->name); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<?php endif; ?>
<div class="col-md-3 col-xs-6" style="padding-bottom:10px;">
<button type="submit" class="btn btn-primary btn-sm">
<i class="fa fa-search"></i>
<?php echo e(__('message.search')); ?>
</button>
<a href="<?php echo e(route('bank-accounts.index')); ?>" type="reset" class="btn btn-sm">
<i class="fa fa-refresh"></i>
<span class="hidden-xs"><?php echo e(__('message.refresh')); ?></span>
</a>
</div>
</div>
</form>
</div>
<div class="table-responsive">
<table
id="zero_config"
class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th><?php echo e(__('message.bank name')); ?></th>
<th><?php echo e(__('message.account')); ?></th>
<th><?php echo e(__('message.credit')); ?></th>
<th><?php echo e(__('message.responsible user')); ?></th>
<th><?php echo e(__('message.status')); ?></th>
<th><?php echo e(__('message.created by')); ?></th>
<th><?php echo e(__('message.action')); ?></th>
</tr>
</thead>
<tbody>
<?php
$total=0;
?>
<?php $__currentLoopData = $bankAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $bankAccount): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$total = $total+ $bankAccount->credit;
?>
<tr class="<?php if(!$bankAccount->is_active): ?> disabled-row <?php endif; ?>">
<td><?php echo e($index+1); ?></td>
<td><?php echo e($bankAccount->bank->name??''); ?></td>
<td>
<?php echo e($bankAccount->bank_username); ?>
<?php if($bankAccount->bank_number): ?>
/<?php echo e($bankAccount->bank_number); ?>
<?php endif; ?>
</td>
<td class="credit">
<?php echo e($bankAccount->currency->name??''); ?>
<?php echo e(number_format($bankAccount->credit,$bankAccount->currency->decimal_precision)); ?>
</td>
<td><?php echo e($bankAccount->responsibleByUser->name??''); ?></td>
<td title="<?php echo e($bankAccount->is_active?'Yes':'No'); ?>">
<input class="form-check-input" type="checkbox" <?php if($bankAccount->is_active): ?> checked <?php endif; ?>>
<?php if($bankAccount->is_active): ?>
<span style="color:#0a6778;font-weight: bold"><?php echo e(__('message.active')); ?></span>
<?php else: ?>
<span style="color:#da542e;font-weight: bold"><?php echo e(__('message.inactive')); ?></span>
<?php endif; ?>
</td>
<td><?php echo e($bankAccount->user->name??''); ?></td>
<td>
<a href="<?php echo e(route('bank-accounts.edit',$bankAccount)); ?>" class="btn btn-primary btn-sm"><i class="fa fa-eye"></i></a>
<form method="POST" action="<?php echo e(route('bank-accounts.destroy', $bankAccount)); ?>" 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>
<a href="<?php echo e(route('bank-account-transactions.index')); ?>?bank_account_id=<?php echo e($bankAccount->id); ?>" class="btn btn-primary btn-sm">
<i class="fas fa-book"></i>
<?php echo e(__('message.transaction')); ?>
</a>
<?php if($bankAccount->is_active): ?>
<a href="<?php echo e(route('bank-accounts.deposit-withdraw.create',$bankAccount)); ?>?type=deposit" class="btn btn-primary btn-sm">
<i class="fa fa-plus"></i>
<?php echo e(__('message.deposit')); ?>
</a>
<a href="<?php echo e(route('bank-accounts.deposit-withdraw.create',$bankAccount)); ?>?type=withdraw" class="btn btn-primary btn-sm">
<i class="fa fa-arrow-circle-down"></i>
<?php echo e(__('message.withdraw')); ?>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if($currency_id): ?>
<thead>
<tr>
<th colspan="3" style="text-align: center;">
<?php echo e(__('message.total')); ?>
</th>
<th colspan="5">
<?php echo e($bankAccount->currency->name??''); ?>
<?php echo e(number_format($total,2)); ?>
</th>
</tr>
</thead>
<?php endif; ?>
</tbody>
</table>
<div class="rows">
<?php echo e($bankAccounts->appends($_GET)->links()); ?>
<?php if($bankAccounts->hasPages()): ?>
<select name="perpage" style="display: inline;border:1px solid #CCC;" onchange="loadPerPage();">
<option value="25" <?php if(isset($perpage) & $perpage==25): ?> selected <?php endif; ?>>25</option>
<option value="50" <?php if(isset($perpage) & $perpage==50): ?> selected <?php endif; ?>>50</option>
<option value="100" <?php if(isset($perpage) & $perpage==100): ?> selected <?php endif; ?>>100</option>
<option value="150" <?php if(isset($perpage) & $perpage==150): ?> selected <?php endif; ?>>150</option>
<option value="200" <?php if(isset($perpage) & $perpage==200): ?> selected <?php endif; ?>>200</option>
<option value="250" <?php if(isset($perpage) & $perpage==250): ?> selected <?php endif; ?>>250</option>
<option value="300" <?php if(isset($perpage) & $perpage==300): ?> selected <?php endif; ?>>300</option>
<option value="350" <?php if(isset($perpage) & $perpage==350): ?> selected <?php endif; ?>>350</option>
<option value="400" <?php if(isset($perpage) & $perpage==400): ?> selected <?php endif; ?>>400</option>
<option value="1000" <?php if(isset($perpage) & $perpage==1000): ?> selected <?php endif; ?>>1000</option>
<option value="1500" <?php if(isset($perpage) & $perpage==1500): ?> selected <?php endif; ?>>1500</option>
</select>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<title><?php echo e(__('message.bank account')); ?></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/bankAccount/bankAccountList.blade.php ENDPATH**/ ?>