[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: c6679058e8adcc5c101f674b26bdd147.php
<?php $__env->startSection('title', 'Purchase List'); ?> <?php $__env->startSection('content'); ?> <?php if (isset($component)) { $__componentOriginala766c2d312d6f7864fe218e2500d2bba = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala766c2d312d6f7864fe218e2500d2bba = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.container','data' => ['title' => 'Purchase List','buttonRoute' => ''.e(route('purchase.create')).'','buttonTitle' => 'New Purchase']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('container'); ?> <?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(['title' => 'Purchase List','buttonRoute' => ''.e(route('purchase.create')).'','buttonTitle' => 'New Purchase']); ?> <div class="row justify-content-between mb-1"> <div class="col-lg-2"> <select name="paginate" onchange="changePagination(this.value)" id="" class="form-select"> <option value="10" selected><?php echo e(translate('common.Show')); ?></option> <option value="10" <?php if(request('paginate') == 10): ?> selected <?php endif; ?>> <?php echo e(translate('common.10')); ?></option> <option value="20" <?php if(request('paginate') == 20): ?> selected <?php endif; ?>> <?php echo e(translate('common.20')); ?></option> <option value="50" <?php if(request('paginate') == 50): ?> selected <?php endif; ?>> <?php echo e(translate('common.50')); ?></option> <option value="100" <?php if(request('paginate') == 100): ?> selected <?php endif; ?>> <?php echo e(translate('common.100')); ?></option> <option value="200" <?php if(request('paginate') == 200): ?> selected <?php endif; ?>> <?php echo e(translate('common.200')); ?></option> </select> </div> <div class="col-lg-6"> <form action="" class="row"> <div class="col-lg-5"> <input type="date" value="<?php echo e(request('from_date')); ?>" class="form-control" name="from_date"> </div> <div class="col-lg-5"> <input type="date" value="<?php echo e(request('to_date')); ?>" class="form-control" name="to_date"> </div> <div class="col-lg-2"> <button type="submit" class="btn btn-primary"> Filter </button> </div> </form> </div> <div class="col-lg-4"> <form onsubmit="searchKeyword(e)"> <input type="text" id="search-keyword" name="keywords" value="<?php echo e(request('keywords') ?? ''); ?>" placeholder="<?php echo e(translate('common.Search by invoice')); ?>" class="form-control"> </form> </div> </div> <div class="table-responsive"> <table class="table table-bordered"> <tr> <th scope="col">#</th> <th scope="col"><?php echo e(translate('common.invoice_id')); ?></th> <th scope="col"><?php echo e(translate('common.Manufacture')); ?></th> <th scope="col"><?php echo e(translate('common.Date')); ?></th> <th scope="col"><?php echo e(translate('common.Quantity')); ?></th> <th scope="col"><?php echo e(translate('common.Subtotal')); ?></th> <th scope="col"><?php echo e(translate('common.Discount')); ?></th> <th scope="col"><?php echo e(translate('common.Total')); ?></th> <th scope="col"><?php echo e(translate('common.Paid')); ?></th> <th scope="col"><?php echo e(translate('common.Payable')); ?></th> <th scope="col"><?php echo e(translate('common.Return')); ?></th> <th scope="col"><?php echo e(translate('common.Action')); ?></th> </tr> <tbody> <?php $__empty_1 = true; $__currentLoopData = $purchases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $purchase): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td><?php echo e($loop->iteration); ?></td> <td><?php echo e($purchase->inv_id); ?></td> <td><?php echo e($purchase->supplier ? $purchase->supplier->name : '-'); ?></td> <td><?php echo e($purchase->date); ?></td> <td class="text-center"><?php echo e($purchase->qty); ?></td> <td class="text-center"><?php echo e(priceFormat($purchase->subtotal)); ?></td> <td class="text-center"><?php echo e(priceFormat($purchase->discount)); ?></td> <td class="text-center"><?php echo e(priceFormat($purchase->total_price)); ?></td> <td><?php echo e(priceFormat($purchase->paid_amount)); ?></td> <td class="text-center"><?php echo e(priceFormat($purchase->due_price)); ?></td> <td class="text-center"><?php echo e(priceFormat($purchase->change_amount)); ?></td> <td> <a href="<?php echo e(route('purchase.show', $purchase->id)); ?>" class="btn btn-success btn-sm mb-1"><i class="fa fa-eye"></i></a> <a href="<?php echo e(route('purchase.return.form', $purchase->id)); ?>" class="btn btn-warning btn-sm mb-1"><i class="fa fa-undo"></i></a> <a onclick="return confirm('<?php echo e(translate('common.Are you sure to delete')); ?>')" href="<?php echo e(route('purchase.destroy', $purchase->id)); ?>" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="10" class="text-center"> <h4 class="py-4"><?php echo e(translate('common.No date found')); ?>!</h4> </td> </tr> <?php endif; ?> </tbody> </table> </div> <div class="pagination mt-2"> <?php echo $purchases->links(); ?> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginala766c2d312d6f7864fe218e2500d2bba)): ?> <?php $attributes = $__attributesOriginala766c2d312d6f7864fe218e2500d2bba; ?> <?php unset($__attributesOriginala766c2d312d6f7864fe218e2500d2bba); ?> <?php endif; ?> <?php if (isset($__componentOriginala766c2d312d6f7864fe218e2500d2bba)): ?> <?php $component = $__componentOriginala766c2d312d6f7864fe218e2500d2bba; ?> <?php unset($__componentOriginala766c2d312d6f7864fe218e2500d2bba); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('custom-js'); ?> <script> function changePagination(paginate) { var nurl = new URL('<?php echo e(route('purchase.index')); ?>'); nurl.searchParams.set('paginate', paginate); location.href = nurl; } function searchKeyword(e) { e.preventDefault(); let keyword = $('#search-keyword') var nurl = new URL('<?php echo e(route('purchase.index')); ?>'); nurl.searchParams.set('keywords', keyword); location.href = nurl; } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eliosofonline/pham.eliosof.com/resources/views/npurchase/index.blade.php ENDPATH**/ ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002