| 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/d12f3a6fa343b2e0bc24b3abf257e373.php |
<?php $__env->startSection('content'); ?>
<div class="col-lg-12">
<div class="card-body shadow-1">
<div class="row mb-2 mt-2">
<div class="col-sm-10 col-xl-10">
<div class="row" style="display: flex;justify-content: space-between;align-items: center">
<div class="col-xs-12 col-sm-12 col-md-12 col-xl-5">
<form method="GET" action="<?php echo e(route('warehouse-product.accessory')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>&search=<?php echo e($search); ?>&paginate=<?php echo e($paginate); ?>" id="search-form" onsubmit="" style="display: flex;justify-content: start;align-items: center">
<input type="hidden" name="paginate" value="<?php echo e($paginate); ?>">
<div class="ml-2" style="width: 100%;">
<select class="form-control" name="platinum_category" onchange="this.form.submit();">
<option value=""><?php echo e(__('message.selected all')); ?></option>
<?php $__currentLoopData = $productCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($productCategory->id); ?>" <?php if($platinum_category_id == $productCategory->id): ?> selected <?php endif; ?>><?php echo e($productCategory->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</form>
</div>
<div class="col-xs-12 col-md-12 col-sm-12 col-xl-7 d-flex ml-0" style="display: flex;justify-content: center;align-items: center">
<a href="<?php echo e(route('warehouse-product.accessory-print')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>&search=<?php echo e($search); ?>&paginate=<?php echo e($paginate); ?>&check_fixed_price=<?php echo e($check_fixed_price); ?>&platinum_category=<?php echo e($platinum_category_id); ?>" type="submit"
class="btn btn-info bg-info-800 float-left rounded-0 mr-2"
title="<?php echo e(__('message.print')); ?>" name="" style="width: 18%">
<i class="fal fa-print"></i>
<?php echo e(__('message.print')); ?>
</a>
<a href="<?php echo e(route('warehouse-product.accessory-export')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>&search=<?php echo e($search); ?>&paginate=<?php echo e($paginate); ?>&platinum_category=<?php echo e($platinum_category_id); ?>&check_fixed_price=<?php echo e($check_fixed_price); ?>" style="width: 20%" class="btn rounded-0 btn-info bg-info-800 search-date float-left" id="download-button" onclick="return clickdownload()">
<i class="fal fa-download"></i>
<?php echo e(__('message.export excel')); ?>
</a>
</div>
</div>
</div>
<div class="col-sm-2 col-xl-2">
<a class="btn btn-sm btn-primary float-right" href="<?php echo e(route('warehouse-product.category-show')); ?>">
<i class="fal fa-arrow-left mr-2"></i>
<?php echo e(__('message.back')); ?>
</a>
</div>
</div>
<div class="row mr-1">
<div class="col-xs-10 col-sm-10 col-md-10 col-xl-10">
<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><?php echo e(__('message.gia number')); ?></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>
<?php if($gold->name == 'មាស' || $gold->name == 'Gold' || $gold->name == 'ทอง'): ?>
<?php else: ?>
<th><?php echo e(__('message.weight')); ?></th>
<?php endif; ?>
<?php if($gold->fixed_price == true): ?>
<?php else: ?>
<th><?php echo e(__('message.gold weight')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody class="text-center" id="accordionExample">
<?php
$totalCosts = 0;
?>
<?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':''); ?> border-bottom 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="align-middle"><?php echo e($product->gia_number??''); ?></td>
<td class="">
<div class="row no-gutters">
<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 class="align-middle">
<div class="col-2 d-flex justify-content-center align-items-center m-auto">
<?php if($product->fixed_price): ?>
<input type="checkbox" checked/>
<?php endif; ?>
</div>
</td>
<td class="align-middle">
<?php echo e($product->qty); ?>
</td>
<?php if($gold->name == 'មាស' || $gold->name == 'Gold' || $gold->name == 'ทอง'): ?>
<?php else: ?>
<td class="">
<?php echo e(number_format($product->weight , 2)); ?>
</td>
<?php endif; ?>
<?php if($gold->fixed_price == true): ?>
<?php else: ?>
<td class="align-middle">
<?php echo e(number_format($product->goldWeight() , 2)); ?>
</td>
<?php endif; ?>
</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-xs-3 col-sm-3 col-md-3 col-xl-3">
<?php if($product->image): ?>
<img class="rounded" id="myImg<?php echo e($index); ?>" src="<?php echo e(asset($product->image)); ?>" style="width:150px;max-width:200px;cursor:pointer;">
<?php else: ?>
<img class="rounded" id="myImg<?php echo e($index); ?>" src="<?php echo e(asset('no_image.png')); ?>" style="width:150px;max-width:200px;cursor:pointer;">
<?php endif; ?>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-xl-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(), 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->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->cost_wagesInWeight()??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</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-xs-4 col-sm-6 col-md-4 col-xl-4">
<?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>
<?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>
</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>
<?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
$totalCosts += $product->cost($product->weight);
?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;">
<th colspan="4" style="text-align: right;">
<?php echo e(__('message.total sale price')); ?> :
</th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalPrice,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th></th>
<th></th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalQty,0)); ?>
</th>
<?php if($gold->fixed_price == true || $gold->name == 'មាស'): ?>
<?php else: ?>
<th class="credit"><?php echo e(number_format($totalWeight , 2)); ?></th>
<?php endif; ?>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalGoldWeight,2)); ?>
</th>
</tr>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;">
<th colspan="4" style="text-align: right;">
<?php echo e(__('message.total wages sale')); ?> :
</th>
<th style="text-align: left;" class="credit text-center">
<?php echo e(number_format($totalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th colspan="4"></th>
</tr>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;margin-top:2px solid #ccc;">
<th colspan="4" style="text-align: right;">
<?php echo e(__('message.total product cost')); ?> :
</th>
<th style="text-align: left;" class="credit text-center">
<?php echo e(number_format($totalCosts,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th colspan="4"></th>
</tr>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;">
<th colspan="4" style="text-align: right;">
<?php echo e(__('message.total original wages')); ?> :
</th>
<th style="text-align: left;" class="credit text-center">
<?php echo e(number_format($totalOriginalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th colspan="4"></th>
</tr>
<!-- <tr style="font-weight:400;font-size:16px;background-color: #99b288;">
<th colspan="5" style="text-align: right;">
<?php echo e(__('message.total sale price')); ?> :
</th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalPrice,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th></th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalQty,0)); ?>
</th>
<th colspan="2" class="credit"><?php echo e(number_format($totalWeight ,2)); ?></th>
</tr>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;">
<th colspan="5" style="text-align: right;">
<?php echo e(__('message.total wages sale')); ?> :
</th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th colspan="3"></th>
</tr>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;margin-top:2px solid #ccc;">
<th colspan="5" style="text-align: right;">
<?php echo e(__('message.total cost of sale')); ?> :
</th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalCosts,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th colspan="3"></th>
</tr>
<tr style="font-weight:400;font-size:16px;background-color: #99b288;">
<th colspan="5" style="text-align: right;">
<?php echo e(__('message.total original wages')); ?> :
</th>
<th colspan="" style="text-align: center;" class="credit">
<?php echo e(number_format($totalOriginalWage,2)); ?> <?php echo e($currency_->currency_symbol??''); ?>
</th>
<th colspan="3"></th>
</tr> -->
</tbody>
</table>
<!-- 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" name="paginate" class="form-select text-center rounded mr-2 mt-1" aria-label="Default select example" style="width: 90px;font-size: 14px;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>
<div class="col-xs-2 col-sm-2 col-md-2 col-xl-2 mt-4">
<div class="card card-body shadow-lg p-1 rounded overflow-hidden position-relative mb-g text-center">
<label class="pt-3">
<img src="<?php echo e(asset('all_weight.png')); ?>" style="width: 60px;padding-bottom: 20px;">
<div class="text-light" style="font-size: 15px;">
<p class="text-dark" style="font-size: 16px"><?php echo e(__('message.not for sale')); ?></p>
</div>
</label>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<?php echo $__env->make('app.datepicker-js-config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<script>
// date earchform strt_date to EndDate
// $('#btnBrow').click(function () {
// $('#browFile').click();
// });
$(document).ready(function() {
$(".ranges > ul > li").click(function() {
setTimeout(function() {
$('#search-form').submit();
}, 100);
});
$("#datepicker").on("change.dp" , function (){
$("#search-form").submit();
});
});
// date
var runDatePicker = function() {
// enable clear button
$('#datepicker').datepicker({
todayBtn: "linked",
clearBtn: true,
todayHighlight: true,
templates: controls
});
}
// end date
</script>
<script>
$('#btnBrow').click(function () {
$('#browFile').click();
});
$('#modifyBrow').click(function (){
$('#browModify').click();
})
$(document).ready(function() {
$("#js-nav-menu").removeClass('active');
$("#js-nav-menu li ul li").removeClass('active');
$("#menu_stock_list").addClass('active open');
$("#collapse_stock").addClass('collapse in')
$("#menu_expense_options").addClass('active')
})
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<title><?php echo e(__('message.warehouse')); ?> - <?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/jewelry-pos/resources/views/warehouses/accessory.blade.php ENDPATH**/ ?>