Path : /var/www/html/thb_loan_system/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/thb_loan_system/storage/framework/views/70ebb35f7f8d3ddfe710c0bc1329238bb681360d.php |
<?php $__env->startSection('title'); ?> <?php echo e(translate('ledger')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="panel panel-white"> <div class="panel-heading"> <h6 class="panel-title"> <?php echo e(translate('ledger')); ?> <?php if(!empty($start_date)): ?> for period: <b><?php echo e($start_date); ?> to <?php echo e($end_date); ?></b> <?php endif; ?> </h6> <div class="heading-elements"> <button class="btn btn-sm btn-info hidden-print" onclick="window.print()">Print</button> </div> </div> <div class="panel-body hidden-print"> <?php echo Form::open(array('url' => Request::url(), 'method' => 'post','class'=>'form-horizontal', 'name' => 'form')); ?> <div class="row"> <div class="col-xs-5"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.date-range-picker','data' => ['name' => 'date_range','startDate' => $start_date,'endDate' => $end_date]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.date-range-picker'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'date_range','start-date' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($start_date),'end-date' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($end_date)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> <div class="panel-body"> <div class="row"> <div class="col-xs-2"> <span class="input-group-btn"> <button type="submit" class="btn btn-info"><?php echo e(translate('search')); ?>! </button> </span> <span class="input-group-btn"> <a href="<?php echo e(Request::url()); ?>" class="btn bg-purple btn-flat pull-right"><?php echo e(translate('reset')); ?>!</a> </span> </div> </div> </div> <?php echo Form::close(); ?> </div> <!-- /.panel-body --> </div> <!-- /.box --> <?php if(!empty($start_date)): ?> <div class="panel panel-white"> <div class="panel-body table-responsive no-padding"> <table class="table table-bordered table-condensed table-hover"> <thead> <tr style="background-color: #D1F9FF"> <th>#</th> <th><?php echo e(translate('gl_code')); ?></th> <th><?php echo e(translate('account')); ?></th> <th><?php echo e(translate('debit')); ?></th> <th><?php echo e(translate('credit')); ?></th> <th><?php echo e(translate('balance')); ?></th> </tr> </thead> <tbody> <?php $credit_total = 0; $debit_total = 0; ?> <?php $__currentLoopData = \App\Models\ChartOfAccount::orderBy('gl_code','asc')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=> $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $cr = 0; $dr = 0; $cr = \App\Models\JournalEntry::where('account_id', $key->id)->whereBetween('date', [$start_date, $end_date])->sum('credit'); $dr = \App\Models\JournalEntry::where('account_id', $key->id)->whereBetween('date', [$start_date, $end_date])->sum('debit'); $credit_total = $credit_total + $cr; $debit_total = $debit_total + $dr; ?> <tr> <td><?php echo e($index+1); ?></td> <td><?php echo e($key->gl_code); ?></td> <td> <?php echo e($key->name); ?> </td> <td class="credit"><?php echo e(currency_converter($dr)); ?></td> <td class="credit"><?php echo e(currency_converter($cr)); ?></td> <td class="credit"> <?php if($dr>$cr): ?> <?php echo e(currency_converter($dr-$cr)); ?> Dr <?php elseif($cr>$dr): ?> <?php echo e(currency_converter($cr-$dr)); ?> Cr <?php else: ?> 0 <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> <tfoot> <tr> <td colspan="3" style="text-align:center;"><b><?php echo e(translate('total')); ?></b></td> <td class="credit"><?php echo e(currency_converter($debit_total)); ?></td> <td class="credit"><?php echo e(currency_converter($credit_total)); ?></td> <td></td> </tr> </tfoot> </table> </div> </div> <?php else: ?> <div class="panel panel-white"> <div class="panel-body table-responsive no-padding"> <table class="table table-bordered table-condensed table-hover"> <thead> <tr style="background-color: #D1F9FF"> <th><?php echo e(translate('gl_code')); ?></th> <th><?php echo e(translate('account')); ?></th> <th><?php echo e(translate('debit')); ?></th> <th><?php echo e(translate('credit')); ?></th> <th><?php echo e(translate('balance')); ?></th> </tr> </thead> <tbody> <?php $credit_total = 0; $debit_total = 0; ?> <?php $__currentLoopData = \App\Models\ChartOfAccount::orderBy('gl_code','asc')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $cr = 0; $dr = 0; $cr = \App\Models\JournalEntry::where('account_id', $key->id)->sum('credit'); $dr = \App\Models\JournalEntry::where('account_id', $key->id)->sum('debit'); $credit_total = $credit_total + $cr; $debit_total = $debit_total + $dr; ?> <tr> <td><?php echo e($key->gl_code); ?></td> <td> <?php echo e($key->name); ?> </td> <td><?php echo e(currency_converter($dr)); ?></td> <td><?php echo e(currency_converter($cr)); ?></td> <td> <?php if($dr>$cr): ?> <?php echo e(currency_converter($dr-$cr)); ?> Dr <?php elseif($cr>$dr): ?> <?php echo e(currency_converter($cr-$dr)); ?> Cr <?php else: ?> 0 <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> <tfoot> <tr> <td colspan="2"><b><?php echo e(translate('total')); ?></b></td> <td><?php echo e(currency_converter($debit_total)); ?></td> <td><?php echo e(currency_converter($credit_total)); ?></td> <td></td> </tr> </tfoot> </table> </div> </div> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('footer-scripts'); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/thb_loan_system/resources/views/accounting/ledger.blade.php ENDPATH**/ ?>