| Path : /var/www/html/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/jewelry-pos/storage/framework/views/1a24d417ef483350a20f245905d51460.php |
<?php $__env->startSection('content'); ?>
<div class="col-lg-12">
<div class="card-body shadow-1">
<div class="row mt-2 mr-1">
<div class="col-xs-8 col-md-8 col-sm-8 col-xl-8 margin-tb">
<div class="row" style="width: 90%;">
<form method="GET" action="<?php echo e(route('product-qty-history-2')); ?>" id="search-form" onsubmit="" style="display:flex;width: 100%;">
<div class="input-group mr-2 ml-2" style="width: 50%;">
<input type="text" class="form-control rounded-0"
placeholder="<?php echo e(__('message.select')); ?>" id="datepicker" name="date" readonly>
<input type="hidden" name="paginate" value="<?php echo e($paginate); ?>">
<input type="hidden" name="for_sale" value="<?php echo e($for_sale); ?>">
<div class="input-group-append">
<span class="input-group-text fs-xl">
<i class="fal fa-calendar text-info "></i>
</span>
</div>
</div>
</form>
</div>
</div>
<div class="col-md-4 col-xs-4 col-sm-4 col-xl-4 margin-tb mb-4">
<div class="row">
<div class="col-lg-8 margin-tb" style="display: flex;justify-content: start;align-items: center">
<a href="<?php echo e(route('product-qty-history-2.print' , 0)); ?>?for_sale=<?php echo e($for_sale); ?>&start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>"
class="btn btn-info bg-info-800 float-left rounded-0"
title="<?php echo e(__('message.print')); ?>" name="">
<i class="fal fa-print"></i>
<?php echo e(__('message.print')); ?>
</a>
</div>
<div class="col-lg-4" style="display: flex;justify-content: end;align-items: center">
<a class="btn btn-sm btn-primary" href="<?php echo e(route('reports.product-qty-history-option2')); ?>">
<i class="fal fa-arrow-left" aria-hidden="true"></i>
<?php echo e(__('message.go back')); ?>
</a>
</div>
</div>
</div>
</div>
<div class="panel-container show">
<div class="d-flex flex-column h-100">
<div class="h-auto">
<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>
<?php if($for_sale == 1): ?>
<th><?php echo e(__('message.qty')); ?></th>
<?php endif; ?>
<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="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>
<?php if($for_sale == 1): ?>
<td class="align-middle">
<?php echo e($product->tempQty()); ?>
</td>
<?php endif; ?>
<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(), 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; ?>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.wages')); ?> <?php echo e($product->productCategory->fixed_price||$product->fixed_price?'':'(គិតជាលី)'); ?>
</p>
</div>
<div class="col-6 text-left credit">:
<?php if($product->productCategory->fixed_price || $product->fixed_price): ?>
<?php echo e(number_format($product->selling_wagesInWeight()??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
<?php else: ?>
<?php echo e(number_format($product->wages_in_weight??0 , 2)); ?>
<?php endif; ?>
</div>
</div>
<div class="row mb-3">
<div class="col-6">
<p class="fw-bolder credit text-left">
<?php echo e(__('message.original wages')); ?> <?php echo e($product->productCategory->fixed_price||$product->fixed_price?'':'(គិតជាលី)'); ?>
</p>
</div>
<div class="col-6 text-left credit">:
<?php if($product->productCategory->fixed_price || $product->fixed_price): ?>
<?php echo e(number_format($product->cost_wagesInWeight()??0 , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
<?php else: ?>
<?php echo e(number_format($product->original_wages_in_weight??0 , 2)); ?>
<?php endif; ?>
</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 credit">:
<?php echo e(number_format($product->weight , 2)); ?>
<?php if($product->weight_description): ?>
(<?php echo e($product->weight_description); ?>)
<?php endif; ?>
</div>
</div>
</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.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->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">:<?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>
<!-- datatable end -->
</div>
</div>
</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" name="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>
<?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
$(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();
});
$(document).ready(function() {
$("#js-nav-menu").removeClass('active');
$("#js-nav-menu li ul li").removeClass('active');
$("#menu_report_list").addClass('active open');
$("#collapse_report").addClass('collapse in')
$("#menu_expense_product_qty_history2").addClass('active')
})
</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/jewelry-pos/resources/views/product-qty-histories/transaction2.blade.php ENDPATH**/ ?>