[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ecf8d39dacdc43f6ddf5d02399976062.php
<?php $__env->startSection('title', 'Medicines'); ?> <?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' => 'Medicines','buttonTitle' => 'Add New','buttonRoute' => ''.e(route('medicines.create')).'']] + (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' => 'Medicines','buttonTitle' => 'Add New','buttonRoute' => ''.e(route('medicines.create')).'']); ?> <form method="get" action="" class="row mb-1"> <div class="col-lg-3"> <select name="supplier_id" id="" class="form-select"> <option value="" selected=""><?php echo e(translate('common.Supplier')); ?></option> <?php $__currentLoopData = $suppliers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supplier): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(request('supplier_id') == $supplier->id ? 'selected' : ''); ?> value="<?php echo e($supplier->id); ?>"><?php echo e($supplier->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-lg-6"> <input type="text" value="<?php echo e(request('keyword')); ?>" class="form-control" name="keyword" placeholder="Search with QR code, name, generic"> </div> <div class="col-lg-2"> <?php if(request()->query()): ?> <a href="<?php echo e(url()->current()); ?>" class="btn btn-danger"><i class="fa fa-times"></i></a> <?php endif; ?> <button type="submit" class="btn btn-dark"><i class="fa fa-search"></i></button> </div> </form> <div class="table-responsive pt-0"> <table class="table"> <thead> <tr> <th><?php echo e(translate('common.sn')); ?></th> <th><?php echo e(translate('common.qr_code')); ?></th> <th><?php echo e(translate('common.medicine_name')); ?></th> <th><?php echo e(translate('common.generic_name')); ?></th> <th><?php echo e(translate('common.category')); ?></th> <th><?php echo e(translate('common.supplier')); ?></th> <th><?php echo e(translate('common.price')); ?></th> <th><?php echo e(translate('common.buy_price')); ?></th> <th><?php echo e(translate('common.option')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $collection; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($loop->iteration); ?></td> <td><?php echo e($row->qr_code); ?></td> <td> <div class="d-flex align-items-center gap-1"> <img height="30" width="30" src="<?php echo e(globalAsset($row->image)); ?>" alt="<?php echo e($row->name); ?>"> <span><?php echo e($row->name); ?></span> </div> </td> <td><?php echo e($row->generic_name); ?></td> <td> <?php $__currentLoopData = $row->category_names; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categoryName): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span class="badge bg-dark"><?php echo e($categoryName); ?></span> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </td> <td><?php echo e(@$row->supplier->name); ?></td> <td><?php echo e(priceFormat(@$row->price)); ?></td> <td><?php echo e(priceFormat(@$row->buy_price)); ?></td> <td class="d-flex gap-1"> <?php if (isset($component)) { $__componentOriginalccee3f0bc58db90f213d68f18f5edcc8 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalccee3f0bc58db90f213d68f18f5edcc8 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.action.edit','data' => ['route' => ''.e(route('medicines.edit', $row->id)).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('action.edit'); ?> <?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(['route' => ''.e(route('medicines.edit', $row->id)).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalccee3f0bc58db90f213d68f18f5edcc8)): ?> <?php $attributes = $__attributesOriginalccee3f0bc58db90f213d68f18f5edcc8; ?> <?php unset($__attributesOriginalccee3f0bc58db90f213d68f18f5edcc8); ?> <?php endif; ?> <?php if (isset($__componentOriginalccee3f0bc58db90f213d68f18f5edcc8)): ?> <?php $component = $__componentOriginalccee3f0bc58db90f213d68f18f5edcc8; ?> <?php unset($__componentOriginalccee3f0bc58db90f213d68f18f5edcc8); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal2c61e54573e9b9526a74a34c1a381796 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2c61e54573e9b9526a74a34c1a381796 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.action.delete','data' => ['route' => ''.e(route('medicines.delete', $row->id)).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('action.delete'); ?> <?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(['route' => ''.e(route('medicines.delete', $row->id)).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2c61e54573e9b9526a74a34c1a381796)): ?> <?php $attributes = $__attributesOriginal2c61e54573e9b9526a74a34c1a381796; ?> <?php unset($__attributesOriginal2c61e54573e9b9526a74a34c1a381796); ?> <?php endif; ?> <?php if (isset($__componentOriginal2c61e54573e9b9526a74a34c1a381796)): ?> <?php $component = $__componentOriginal2c61e54573e9b9526a74a34c1a381796; ?> <?php unset($__componentOriginal2c61e54573e9b9526a74a34c1a381796); ?> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <?php echo $collection->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 echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eliosofonline/pham.eliosof.com/resources/views/medicine/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.7 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