| Path : /var/www/html/backup/jewelry-pos/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/backup/jewelry-pos/storage/framework/views/e4dd15662f02b546874813c1d6669492.php |
<?php $__env->startSection('content'); ?>
<style>
/* Style the Image Used to Trigger the Modal */
#myImg {
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
#myImg:hover {opacity: 0.7;}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 10000000000000000000000; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (Image) */
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
height: 150px;
}
/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
animation-name: zoom;
animation-duration: 0.6s;
}
@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}
/* The Close Button */
.close {
z-index: 20000000000;
position: absolute;
top: 50px;
right: 35px;
color: red;
/* font-size: 50px;*/
font-weight: bold;
transition: 0.3s;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}
</style>
<div class="col-lg-12">
<div class="card-body shadow-1">
<div class="row">
<div class="col-md-12 col-xs-12 col-sm-12 col-lg-12 col-xl-12 margin-tb">
<div class="row border-top">
<div class="col-md-10 col-xs-10 col-sm-10 col-xl-11 col-lg-10 my-2">
<form method="GET" action="<?php echo e(route('products.index')); ?>" id="search-form">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12 col-xl-12 mt-2" id="noPrint" style="display: flex;justify-content: space-between;align-items: start">
<select onchange="this.form.submit()" name="for_sale" id="for_sale" class="form-control mr-2" required="" style="width: 25%;">
<option value="-1"><?php echo e(__('message.all product')); ?></option>
<option value="1" <?php if($for_sale==1): ?> selected <?php endif; ?>><?php echo e(__('message.for sale')); ?></option>
<option value="0" <?php if($for_sale==0): ?> selected <?php endif; ?>><?php echo e(__('message.not for sale')); ?></option>
<option value="2" <?php if($for_sale==2): ?> selected <?php endif; ?>><?php echo e(__('message.services')); ?></option>
</select>
<select class="select2 form-control w-100 ml-2 mr-2" id="product_category_id" name="product_category_id" onchange="submit()" style="width: 20% !important;">
<option value="0"><?php echo e(__('message.selected all')); ?></option>
<?php $__currentLoopData = $main_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $main): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($main->id); ?>" style="font-weight: bold;font-size: 14px" <?php if($main->id == $product_category_id): ?> selected <?php endif; ?>><?php echo e($main->name); ?></option>
<?php $__currentLoopData = $main->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($child->id); ?>" <?php if($child->id == $product_category_id): ?> selected <?php endif; ?>> <?php echo e($child->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<div class="input-group mr-2" style="width: 35%;">
<input type="text" class="form-control rounded-0"
placeholder="<?php echo e(__('message.search')); ?> ..." value="<?php echo e($q); ?>" name="q" id="search">
<div class="input-group-append">
<button type="submit" class="input-group-text fs-xl ">
<i class="fal fa-search text-success"></i>
</button>
</div>
</div>
<input type="hidden" name="paginate" value="<?php echo e($paginate); ?>">
<button type="submit" class="btn btn-sm btn-outline-success mr-2" style="width: 17%;">
<i class="fal fa-search text-outline-success"></i>
<span class="hidden-xs"> <?php echo e(__('message.search')); ?></span>
</button>
<a href="<?php echo e(route('products.index')); ?>?q=<?php echo e($q); ?>&paginate=<?php echo e($paginate); ?>&for_sale=<?php echo e($for_sale); ?>&category=<?php echo e($cate??''); ?>" type="rset" class="btn btn-sm btn-outline-info" style="width: 18%;">
<i class="fal fa-sync"></i>
<span class="hidden-xs"> <?php echo e(__('message.refresh')); ?></span>
</a>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 col-xl-12" id="btn_list" style="display: flex;justify-content: start;align-items: start;">
<a class="btn btn-info bg-info-800 m-2" id="btnBrow" style="color: whitesmoke">
<i class="fal fa-upload"></i>
<?php echo e(__('message.import')); ?>
</a>
<a href="<?php echo e(route('product.sample')); ?>" class="btn btn-info bg-info-800 search-date m-2" id="download-button" onclick="return clickdownload()">
<i class="fal fa-download"></i>
<?php echo e(__('message.excel sample')); ?>
</a>
<a href="javascript:void(0)"
class="btn btn-success bg-success-800 search-date m-2 build-stock"
data-url="<?php echo e(route('product.build_stock')); ?>">
<i class="fal fa-database"></i>
<?php echo e(__('message.building stock')); ?>
</a>
</div>
</div>
</form>
<form action="<?php echo e(route('import')); ?>" method="POST" enctype="multipart/form-data" id="myForm" name="form">
<?php echo csrf_field(); ?>
<input type="file" onchange="this.form.submit();" hidden="hidden" name="browFile" id="browFile" value="" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">
</form>
</div>
<div class="col-md-2 col-xs-2 col-sm-2 col-xl-1 my-2 pt-2" style="display: flex;justify-content: end;align-items: center">
<div class="pull-right" style="text-align: right;">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('product-create')): ?>
<a class="btn btn-sm btn-primary" href="<?php echo e(route('products.create')); ?>">
<i class="fal fa-plus"></i> <?php echo e(__('message.add new')); ?>
</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<div class="panel-container show table-responsive">
<table id="example" class="table table-striped w-100">
<thead class="bg-fusion-50 text-center">
<tr>
<th>#</th>
<th class="text-center"><?php echo e(__('message.part number')); ?></th>
<th class="text-center"><?php echo e(__('message.product category')); ?></th>
<th><?php echo e(__('message.name')); ?></th>
<th><?php echo e(__('message.price')); ?></th>
<th><?php echo e(__('message.fixed price')); ?></th>
<th><?php echo e(__('message.qty')); ?></th>
<th><?php echo e(__('message.gold weight')); ?></th>
</tr>
</thead>
<tbody class="text-center" id="accordionExample">
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="<?php echo e(!$product->is_active||$product->qty==0 ? 'inactive':''); ?> bg-white <?php echo e(+$loop->index%2!=$product->count()?'border-top':''); ?>" data-toggle="collapse" href="#row<?php echo e($loop->index); ?>" role="button" aria-expanded="false" aria-controls="row<?php echo e($loop->index); ?>">
<td class="align-middle"><?php echo e($index + 1); ?></td>
<td class="">
<div class="row no-gutters">
<div class="col-2 d-flex justify-content-center align-items-center">
<?php if($product->for_sale): ?>
<input type="checkbox" onclick="return false;" checked/>
<?php endif; ?>
</div>
<div class="col-10 d-flex justify-content-center align-items-center">
<?php echo e($product->part_number); ?>
</div>
</div>
</td>
<td>
<?php echo e($product->productCategory->name??''); ?>
</td>
<td class="align-middle">
<?php echo e($product->name); ?>
</td>
<?php if($product->fixed_price): ?>
<td class="credit align-middle">
<?php echo e(number_format($product->price,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</td>
<?php else: ?>
<td class="credit align-middle">
<?php echo e(number_format($product->sellingPrice(),2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</td>
<?php endif; ?>
<td>
<?php if($product->fixed_price): ?>
<label class="badge badge-info" style="background-color:#196eec">
<?php echo e(__('message.yes')); ?>
</label>
<?php else: ?>
<label class="badge badge-danger" style="background-color: red">
<?php echo e(__('message.no')); ?>
</label>
<?php endif; ?>
</td>
<td class="align-middle">
<?php echo e($product->qty); ?>
</td>
<td class="credit">
<?php echo e(number_format($product->goldWeight()??0 , 2)); ?>
</td>
</tr>
<tr class="bg-white">
<td colspan="11">
<div class="collapse multi-collapse" id="row<?php echo e($loop->index); ?>" data-parent="#accordionExample">
<div class="panel-content">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#detail<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.detail')); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#supplier<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.supplier')); ?></a>
</li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#attribute<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.attribute')); ?></a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#descriptions<?php echo e($loop->index); ?>" role="tab"><?php echo e(__('message.description')); ?></a></li>
</ul>
<div class="tab-content border-top-0 p-3" style="border:1px solid #dee2e6!important; border-top:none !important;">
<div class="tab-pane fade show active" id="detail<?php echo e($loop->index); ?>" role="tabpanel">
<div class="">
<div class="card-body">
<div class="row">
<div class="col-3">
<?php if($product->image): ?>
<img class="rounded" id="myImg<?php echo e($index); ?>" src="<?php echo e(asset($product->image)); ?>" style="width:200px;max-width:300px;cursor:pointer;">
<?php else: ?>
<img class="rounded" id="myImg<?php echo e($index); ?>" src="<?php echo e(asset('no_image.png')); ?>" style="width:200px;max-width:300px;cursor:pointer;">
<?php endif; ?>
</div>
<div class="col-4">
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.cost')); ?>
</p>
</div>
<div class="col-6 text-left credit">: <?php echo e(number_format($product->cost($product->weight), 2)); ?> <?php echo e($currency_->currency_symbol??''); ?></div>
</div>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.selling cost')); ?>
</p>
</div>
<div class="col-6 text-left credit">: <?php echo e(number_format($product->sellingCost(), 2)); ?> <?php echo e($currency_->currency_symbol??''); ?></div>
</div>
<?php if($product->productcategory && $product->productcategory->price()>0): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.current rate')); ?>
</p>
</div>
<div class="col-6 text-left credit">: <?php echo e(number_format($product->productcategory->price(), 4)); ?> <?php echo e($currency_->currency_symbol??''); ?></div>
</div>
<?php endif; ?>
<?php if($product->selling_wagesInWeight()??0): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.wages')); ?>
</p>
</div>
<div class="col-6 text-left credit">:
<?php echo e(number_format($product->selling_wagesInWeight()??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</div>
</div>
<?php endif; ?>
<?php if($product->wages_in_weight): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.wages')); ?> (គិតជាលី)
</p>
</div>
<div class="col-6 text-left credit">:
<?php echo e(number_format($product->wages_in_weight??0 , 2)); ?>
</div>
</div>
<?php endif; ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.original wages')); ?>
</p>
</div>
<div class="col-6 text-left credit">:
<?php echo e(number_format($product->original_wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</div>
</div>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.weight')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e(number_format($product->weight , 2)); ?>
<?php if($product->weight_description): ?>
(<?php echo e($product->weight_description); ?>)
<?php endif; ?>
</div>
</div>
<?php if($product->purity_upgrade_to): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.purity upgrade to')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e($product->purity_upgrade_to??''); ?>
</div>
</div>
<?php endif; ?>
<?php if($product->selling_purity): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.selling purity')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e($product->selling_purity??''); ?>
</div>
</div>
<?php endif; ?>
</div>
<div class="col-3">
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.cost discount')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e($product->cost_discount??0); ?> <?php echo e($currency_->currency_symbol); ?>
</div>
</div>
<?php if($product->original_invoice): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.original invoice')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e($product->original_invoice??''); ?>
</div>
</div>
<?php endif; ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.user')); ?>
</p>
</div>
<div class="col-6 text-left credit">:
<a href="<?php echo e(route('users.show' , $product->user_id)); ?>" class="text-dark" title="<?php echo e(__('message.show user')); ?>">
<?php echo e($product->user->name??''); ?>
</a>
</div>
</div>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.is_active')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php if($product->is_active): ?>
<label class="badge badge-info" style="background-color:#196eec">
<?php echo e(__('message.is_active')); ?>
</label>
<?php else: ?>
<label class="badge badge-danger" style="background-color: red">
<?php echo e(__('message.no active')); ?>
</label>
<?php endif; ?>
</div>
</div>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.created at')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e(date('d-m-y H:i' , strtotime($product->created_at))); ?>
</div>
</div>
<?php if($product->old_code): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.old code')); ?>
</p>
</div>
<div class="col-6 text-left">:
<?php echo e($product->old_code??''); ?>
</div>
</div>
<?php endif; ?>
<?php if($product->diamond_size): ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.diamond size')); ?>
</p>
</div>
<div class="col-6 text-left">:<?php echo $product->diamond_size??0; ?></div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php echo $__env->make('products.card-footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<div class="tab-pane fade text-left" id="supplier<?php echo e($loop->index); ?>" role="tabpanel">
<div class="row mb-3">
<div class="col-1">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.supplier')); ?>
</p>
</div>
<div class="col-6 text-left">: <?php echo e($product->supplier->name??''); ?></div>
</div>
<div class="row mb-3">
<div class="col-1">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.supplier rate')); ?>
</p>
</div>
<div class="col-6 text-left credit">: <?php echo e(number_format($product->supplier_rate??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?></div>
</div>
<div class="row mb-3">
<div class="col-1">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.phone')); ?>
</p>
</div>
<div class="col-6 text-left">: <?php echo e($product->supplier->phone??''); ?></div>
</div>
<div class="row mb-3">
<div class="col-1">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.note')); ?>
</p>
</div>
<div class="col-6 text-left">: <?php echo e($product->supplier->note??''); ?></div>
</div>
</div>
<div class="tab-pane fade text-left" id="attribute<?php echo e($loop->index); ?>" role="tabpanel">
<?php if($product->productAttributes->count() > 0): ?>
<div class="panel-container show table-responsive">
<h3><?php echo e(__('message.product attribute')); ?></h3>
<table id="" class="table table-striped w-100">
<thead class="bg-fusion-50 text-center" style="background-color: lightslategray !important;">
<tr>
<th>#</th>
<th><?php echo e(__('message.name')); ?></th>
<th><?php echo e(__('message.price')); ?></th>
<th><?php echo e(__('message.qty')); ?></th>
<th><?php echo e(__('message.cost')); ?></th>
<th><?php echo e(__('message.action')); ?></th>
</tr>
</thead>
<tbody class="text-center" id="">
<?php $__currentLoopData = $product->productAttributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $productAttribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="<?php echo e($productAttribute->qty==0 ? 'inactive':''); ?> bg-white <?php echo e(++$loop->index%2!=$productAttribute->count()?'border-top':''); ?>">
<td class="align-middle"><?php echo e($i + 1); ?></td>
<td class="">
<?php echo e($productAttribute->name); ?>
</td>
<td class="credit"> <?php echo e(number_format($productAttribute->price , 2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
<td> <?php echo e($productAttribute->qty); ?></td>
<td class="credit"> <?php echo e(number_format($productAttribute->cost ,2)); ?> <?php echo e($currency_->currency_symbol); ?></td>
<td>
<form method="POST" action="<?php echo e(route('productAttribute.destroy' , $productAttribute->id)); ?>" style="display:inline">
<input name="_method" type="hidden" value="DELETE">
<?php echo e(csrf_field()); ?>
<button type="submit" class="btn btn-xs btn-danger"
onclick="return confirm('<?php echo e(__('message.do you want to delete')); ?>?')">
<i class="fal fa-trash" style="color: #FFF;"></i>
</button>
</form>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="text-center">
<h3><?php echo e(__('message.product attribute is empty')); ?></h3>
</div>
<?php endif; ?>
</div>
<div class="tab-pane fade" id="descriptions<?php echo e($loop->index); ?>" role="tabpanel">
<?php if($product->description): ?>
<div class="text-left">
<?php echo $product->description; ?>
</div>
<?php else: ?>
<div class="text-center">
<h3><?php echo e(__('message.description is empty')); ?></h3>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<!-- Pagination bootstrap-->
<?php if($products->hasPages()): ?>
<div class="d-flex m-2 p-2" style="justify-content: space-between;align-items: start;width: 20%">
<select id="paginate" class="form-select text-center rounded mr-2 mt-1" aria-label="Default select example" style="width: 90px;font-size: 12px;border: 1px solid rebeccapurple">
<option selected hidden="hidden"><?php echo e($paginate); ?></option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="250">250</option>
<option value="500">500</option>
<option value="1000">1000</option>
</select>
<div class="">
<?php echo e($products->appends($_GET)->links()); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!-- Modal popup -->
<!-- End Modal popup -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
$('#btnBrow').click(function () {
$('#browFile').click();
});
$(document).ready(function() {
$("#js-nav-menu").removeClass('active');
$("#js-nav-menu li ul li").removeClass('active');
// $("#menu_setup_list").addClass('active open');
// $("#collapse_setup").addClass('collapse in')
$("#menu_product").addClass('active')
})
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.build-stock').forEach(function(button) {
button.addEventListener('click', function () {
let url = this.getAttribute('data-url');
Swal.fire({
title: '<?php echo e(__("message.do you want to build stock right now")); ?>?',
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#28a745',
cancelButtonColor: '#6c757d',
confirmButtonText: '<?php echo e(__("Yes, build it!")); ?>',
cancelButtonText: '<?php echo e(__("Cancel")); ?>'
}).then((result) => {
if (result.isConfirmed) {
window.location.href = url; // redirect if confirmed
}
});
});
});
});
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<title><?php echo e(__('message.product')); ?> - <?php echo e($settings_->shop_name); ?></title>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin-main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/backup/jewelry-pos/resources/views/products/index.blade.php ENDPATH**/ ?>