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/10cdbb538459aa6a4d705c929382a3e0ddce21d9.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.profit report')); ?></h4> </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"> <div class="col-sm-12 col-xs-12 row"> <div class="col-md-2 col-xs-6"> <input type="text" id="datepicker_start" class="form-control hasDatepicker" name="start_date" title="<?php echo e(__('message.start date')); ?>" value="<?php echo e($start_date); ?>" placeholder="<?php echo e(__('message.start date')); ?>" readonly=""> </div> <div class="col-md-2 col-xs-6"> <input type="text" id="datepicker_end" class="form-control hasDatepicker" name="end_date" title="<?php echo e(__('message.end date')); ?>" value="<?php echo e($end_date); ?>" placeholder="<?php echo e(__('message.end date')); ?>" readonly=""> </div> <div class="col-md-2 col-xs-6"> <select name="is_bank" id="pet-select" class="form-control"> <option value=""><?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> <?php if(Auth::user()->role_id==2): ?> <div class="col-md-2 col-xs-6"> <select name="user_id" id="pet-select" class="form-control"> <option value=""><?php echo e(__('message.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==$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-2 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('profit-report')); ?>" 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> <div class="col-sm-12 col-xs-12"> <?php echo $__env->make('app.search-button', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </form> </div> <div class="table-responsive"> <table id="zero_config" class="table table-striped table-bordered"> <thead> <tr> <th rowspan="2">#</th> <th rowspan="2"><?php echo e(__('message.currency')); ?></th> <th rowspan="2"><?php echo e(__('message.start balance')); ?></th> <th colspan="2" style="text-align: center"><?php echo e(__('message.cash in')); ?></th> <th colspan="2" style="text-align: center"><?php echo e(__('message.cash out')); ?></th> <th rowspan="2"><?php echo e(__('message.fee')); ?></th> <th rowspan="2"><?php echo e(__('message.remain balance')); ?></th> </tr> <tr> <th><?php echo e(__('message.cash in')); ?></th> <th><?php echo e(__('message.internal cash in')); ?></th> <th><?php echo e(__('message.cash out')); ?></th> <th><?php echo e(__('message.internal cash out')); ?></th> </tr> </thead> <tbody> <?php $totalMainStartBalance=0; $totalMainBalance=0; $totalMainCashIn =0; $totalMainCashOut =0; $totalMainCashInInternal =0; $totalMainCashOutInternal =0; $totalMainFee=0; ?> <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($index+1); ?></td> <td style="font-weight: bold"> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php $startBalance = $currency->startBalance($start_date." 00:00:00", $is_bank, $user_id,null); $totalMainStartBalance =$totalMainStartBalance+ $currency->toMainCurrency($startBalance); ?> <?php echo e(number_format($startBalance,$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php $totalCashIn = $currency->totalCashIn($start_date." 00:00:00",$end_date." 23:59:59", $is_bank, $user_id,null, false); $totalMainCashIn= $totalMainCashIn+$currency->toMainCurrency($totalCashIn); ?> <?php echo e(number_format($totalCashIn,$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php $totalCashInInternal = $currency->totalCashIn($start_date." 00:00:00",$end_date." 23:59:59", $is_bank, $user_id,null, true); $totalMainCashInInternal= $totalMainCashInInternal+$currency->toMainCurrency($totalCashInInternal); ?> <?php echo e(number_format($totalCashInInternal,$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php $totalCashOut = $currency->totalCashOut($start_date." 00:00:00",$end_date." 23:59:59", $is_bank, $user_id,null); $totalMainCashOut= $totalMainCashOut+$currency->toMainCurrency($totalCashOut); ?> <?php echo e(number_format($totalCashOut,$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php $totalCashOutInternal = $currency->totalCashOut($start_date." 00:00:00",$end_date." 23:59:59", $is_bank, $user_id,null,true); $totalMainCashOutInternal= $totalMainCashOutInternal+$currency->toMainCurrency($totalCashOutInternal); ?> <?php echo e(number_format($totalCashOutInternal,$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php $fee = $currency->totalFee($start_date." 00:00:00",$end_date." 23:59:59", $is_bank, $user_id,null); $totalMainFee= $totalMainFee+$currency->toMainCurrency($fee); ?> <?php echo e(number_format($fee,$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> </td> <td class="credit"> <?php echo e(number_format(($startBalance+$totalCashIn+$totalCashInInternal-$totalCashOut-$totalCashOutInternal),$currency->decimal_precision)); ?> <?php echo e($currency->currency_code); ?> <?php $totalMainBalance = $totalMainBalance + $currency->toMainCurrency(($startBalance+$totalCashIn+$totalCashInInternal-$totalCashOut-$totalCashOutInternal)); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <thead> <tr> <th colspan="2" rowspan="2" style="text-align: center;"> <?php echo e(__('message.total')); ?> </th> <th colspan="1"> <?php echo e(number_format($totalMainStartBalance,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th> <?php echo e(number_format($totalMainCashIn,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th> <?php echo e(number_format($totalMainCashInInternal,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th> <?php echo e(number_format($totalMainCashOut,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th> <?php echo e(number_format($totalMainCashOutInternal,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th> <?php echo e(number_format($totalMainFee,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th> <?php echo e(number_format($totalMainBalance,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> </tr> <tr> <th colspan="1"> </th> <th colspan="2" style="text-align: center;"> <?php echo e(number_format($totalMainCashInInternal+$totalMainCashIn,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th colspan="2" style="text-align: center;"> <?php echo e(number_format($totalMainCashOutInternal+$totalMainCashOut,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> <th colspan="2"> </th> </tr> </thead> <tr style="background-color: #B8860B;color:white"> <th colspan="8" style="text-align: center;"> <?php echo e(__('message.total profit')); ?> </th> <th style="font-weight: bold;"> <?php echo e(number_format($totalMainBalance-$totalMainStartBalance-$totalMainCashInInternal+$totalMainCashOutInternal,$mainCurrency->decimal_precision)); ?> <?php echo e($mainCurrency->currency_code); ?> </th> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection("scripts"); ?> <script> jQuery("#datepicker_start").datepicker({ format: 'yyyy-mm-d', autoclose: true, todayHighlight: true }); jQuery("#datepicker_end").datepicker({ format: 'yyyy-mm-d', autoclose: true, todayHighlight: true }); </script> <?php $__env->stopSection(); ?> <?php $__env->startSection('meta'); ?> <title><?php echo e(__('message.profit report')); ?></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/moneyExchange/profitReport.blade.php ENDPATH**/ ?>