| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/crmapp/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<div class="container-fluid p-0">
<h1 class="h3 mb-3">Products</h1>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-sm-3">
<a href="<?php echo e(route('inventory.products.create')); ?>" class="btn btn-primary mb-2">Add Product</a>
</div>
<div class="col-sm-4">
</div>
</div>
<table class="table table-bordered">
<tr>
<th>Name</th><th>SKU</th><th>Model</th><th>Warranty Period</th><th>Unit</th><th>Cost Price</th><th>Sale Price</th><th>Actions</th>
</tr>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($product->name); ?></td>
<td><?php echo e($product->sku); ?></td>
<td><?php echo e($product->model_number); ?></td>
<td><?php echo e($product->warranty_period); ?></td>
<td><?php echo e($product->unit); ?></td>
<td><?php echo e($product->cost_price); ?></td>
<td><?php echo e($product->sale_price); ?></td>
<td>
<a href="<?php echo e(route('inventory.products.show',$product->id)); ?>" class="btn btn-info btn-sm">View</a>
<a href="<?php echo e(route('inventory.products.edit',$product->id)); ?>" class="btn btn-warning btn-sm">Edit</a>
<a href="<?php echo e(route('inventory.serials',$product->id)); ?>" class="btn btn-info btn-sm">Serials</a>
<form action="<?php echo e(route('inventory.products.destroy',$product->id)); ?>" method="POST" style="display:inline;" onsubmit="return confirm('Are you sure you want to delete this product?');">
<?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
<button class="btn btn-danger btn-sm">Delete</button>
</form>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table>
<div class="d-flex justify-content-center">
<?php echo e($products->links()); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/crmapp/Modules/Inventory/Resources/views/products/index.blade.php ENDPATH**/ ?>