| 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/b9f851aaeff06578913b0a811498cbf2.php |
<?php use App\Models\ProductCategory; ?>
<?php $__env->startSection('content'); ?>
<style>
.hidden {
display: none;
}
@media print {
.colspan-5 {
display: table-cell;
}
}
</style>
<div class="col-lg-12">
<div class="card-body shadow-1">
<div class="row" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
<div class="col-sm-6 col-xl-6 p-2" style="border: 1px solid rebeccapurple;display: flex;justify-content: center;align-items: center;">
<h1 style="font-weight: bold;font-size: 24px"><?php echo e($settings_->shop_name); ?></h1>
</div>
</div>
<div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple">
<div class="row" style="width: 98%;">
<div class="col-sm-6 col-xl-8 text-left" style="font-size: 14px;">
<?php echo e(__('message.cashier')); ?> : <b><?php echo e(Auth::user()->name); ?></b>
</div>
<div class="col-sm-6 col-xl-4 text-right" style="font-size: 14px">
<?php echo e(__('message.invoice date')); ?> : <b><?php echo e(now()->toDateTimeString()); ?></b>
</div>
</div>
</div>
<div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center;">
<div class="row" style="width: 98%;">
<div class="col-sm-8 col-xl-8 text-left" style="font-size: 14px">
<?php echo e(__('message.location')); ?> : <b><?php echo e($settings_->address); ?></b>
</div>
<div class="col-sm-4 col-xl-4 text-right" style="font-size: 14px">
<?php echo e(__('message.phone number')); ?> : <b><?php echo e($settings_->phone); ?></b>
</div>
</div>
</div>
<div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center;">
<div class="row" style="width: 98%;">
<div class="col-sm-8 col-xl-8 text-left" style="font-size: 14px">
<span class="mr-4"> <?php echo e(__('message.start date')); ?> <?php echo e(date('d/m/y' , strtotime($start_date))); ?> </span>
<span class="ml-4"> <?php echo e(__('message.to date')); ?> <?php echo e(date('d/m/y' , strtotime($end_date))); ?> </span>
</div>
</div>
</div>
<div class="row mt-4" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
<div class="col-sm-6 col-xl-12 p-2 text-center" style="display: flex;justify-content: center;align-items: center;">
<h1 style="font-weight: bold;border-bottom: 2px solid rebeccapurple;font-size: 18px" class=""><?php echo e(__('message.sales invoice')); ?></h1>
</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-hover table-striped w-100" style="font-size: 14px !important;">
<thead class="text-center" style="font-weight: bold">
<tr class=" table-bordered">
<th>N0.</th>
<th><?php echo e(__('message.original invoice')); ?></th>
<th class="text-center"><?php echo e(__('message.part number')); ?></th>
<th><?php echo e(__('message.product name')); ?></th>
<th><?php echo e(__('message.qty')); ?></th>
<th><?php echo e(__('message.cost of sale')); ?></th>
<th><?php echo e(__('message.selling cost')); ?></th>
<th><?php echo e(__('message.original wages')); ?></th>
<th><?php echo e(__('message.sale wages')); ?></th>
<th><?php echo e(__('message.selling rate')); ?></th>
<th><?php echo e(__('message.sales price')); ?></th>
<th><?php echo e(__('message.discount')); ?></th>
<th><?php echo e(__('message.net sale')); ?></th>
<th><?php echo e(__('message.sale product')); ?></th>
<th><?php echo e(__('message.weight')); ?></th>
<th><?php echo e(__('message.diamond size')); ?></th>
<th><?php echo e(__('message.supplier rate')); ?></th>
<th><?php echo e(__('message.created date')); ?></th>
</tr>
</thead>
<input type="hidden" value="<?php echo e($search); ?>">
<input type="hidden" value="<?php echo e($product_category_id); ?>">
<input type="hidden" value="<?php echo e($platinume_Category->id); ?>">
<input type="hidden" value="<?php echo e($check_fixed_price); ?>">
<input type="hidden" value="<?php echo e($ids); ?>">
<?php $__currentLoopData = $productCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $productCategorys): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
if($search){
$sales = $productCategorys->sales->where('part_number', $search);
}else{
$sales = $productCategorys->sales->whereBetween('created_at', [$start_date . " 00:00:00", $end_date . " 23:59:59"]);
}
if($product_category_id){
if($product_category_id == $platinume_Category->id){
$sales = $sales->whereIn('product_category_id' , $platinume_Category->IdvsAllSubCategories());
}else{
$sales = $sales->where('product_category_id' , $product_category_id);
}
}
if($check_fixed_price == 1){
$sales = $sales->where('fixed_price' , true);
}elseif($check_fixed_price == 2){
$sales = $sales->where('fixed_price' , false);
}
?>
<?php if($sales->count('id') > 0): ?>
<?php
if($ids){
$sales = $sales->whereIn('id' , $ids);
}
?>
<tbody>
<tr class=" table-bordered">
<th colspan="18" class="p-3 bg-gray-300" style="color: black !important;"><?php echo e($productCategorys->name); ?></th>
</tr>
<?php $__currentLoopData = $sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="text-center table-bordered">
<td><?php echo e($index+1); ?></td>
<td><?php echo e($sale->original_invoice??''); ?></td>
<td class="text-center"><?php echo e($sale->part_number); ?></td>
<td>
<?php echo e($sale->name??''); ?>
</td>
<td class="">
<?php echo e($sale->qty??0); ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->cost(), 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->selling_cost, 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->original_wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php if($sale->selling_rate): ?>
<?php echo e(number_format($sale->selling_rate, 4)); ?> <?php echo e($currency_->currency_symbol); ?>
<?php endif; ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->sales_price+$sale->discount , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->discount , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php echo e(number_format($sale->sales_price , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td class="credit">
<?php echo e(number_format(($sale->sales_price+$sale->discount)-$sale->wages , 2)); ?> <?php echo e($currency_->currency_symbol); ?>
</td>
<td>
<?php echo e(number_format($sale->weight??0 , 2)); ?>
</td>
<td>
<?php echo $sale->diamond_size; ?>
</td>
<td>
<?php echo e($sale->supplier_rate); ?>
</td>
<td>
<?php echo e($sale->created_at->format('d/m/Y H:i')); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr class=" table-bordered">
<td class="credit text-center" colspan="3">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e(__('message.total')); ?> ( <?php echo e($productCategorys->name); ?> ) :
</div>
</td>
<td></td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e($sales->sum('qty')); ?>
</div>
</td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('cost') , 2)); ?>
</div>
</td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center credit" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('selling_cost') , 2)); ?>
</div>
</td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center credit" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('original_wages') , 2)); ?>
</div>
</td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center credit" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('wages') , 2)); ?>
</div>
</td>
<td></td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center credit" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('sales_price') + $sales->sum('discount') , 2)); ?>
</div>
</td>
<td class="credit text-center">
<div class="d-flex justify-content-center align-items-center credit" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('discount') , 2)); ?>
</div>
</td>
<td class="credit">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0; ">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($sales->sum('sales_price') , 2)); ?>
</div>
</td>
<td class="credit">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0; ">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format(($sales->sum('sales_price')+$sales->sum('discount'))-$sales->sum('wages'), 2)); ?>
</div>
</td>
</tr>
<tr>
<td colspan="18">
<div style="margin: 5rem !important;">
</div>
</td>
</tr>
</tbody>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr class="table-bordered">
<td colspan="6" rowspan="3">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
</div>
</td>
<td colspan="6" rowspan="2"></td>
<td class="credit text-center" colspan="2">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e(__('message.sub total')); ?> :
</div>
</td>
<td colspan="6" class="credit text-center">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_price + $total_sale_discount , 2)); ?>
</div>
</td>
</tr>
<tr class="table-bordered">
<td class="credit text-end" colspan="2">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e(__('message.total discount')); ?> :
</div>
</td>
<td colspan="6" class="credit text-center">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_discount , 2)); ?>
</div>
</td>
</tr>
<tr class="table-bordered">
<td class="credit text-end" colspan="2" rowspan="2">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e(__('message.total profit')); ?> :
</div>
</td>
<td class="credit text-center" colspan="4" rowspan="2">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_profit, 2)); ?>
</div>
</td>
<td class="credit text-end" colspan="2">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e(__('message.total net sale')); ?>
</div>
</td>
<td colspan="6" class="credit text-center">
<div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
<?php echo e($currency_->currency_symbol); ?> <?php echo e(number_format($total_sale_price , 2)); ?>
</div>
</td>
</tr>
</table>
<div class="row mt-10-rem" style="margin-top: 5rem !important;">
<div class="col-1">
</div>
<div class="col-3 mt-10-rem" style="margin-top: 5rem !important;">
<h1 class="border-bottom"></h1>
<span style="font-weight:bold;color: black"><?php echo e(__('message.prepare by')); ?> : </span>
</div>
<div class="col-4">
</div>
<div class="col-3 mt-10-rem" style="margin-top: 5rem !important;">
<h1 class="border-bottom"></h1>
<span style="font-weight:bold;color: black"><?php echo e(__('message.confirm by')); ?> : </span>
</div>
<div class="col-1">
</div>
</div>
</div>
</div>
</div>
<div style="width: 100%;display: flex;justify-content: space-between;align-items: center">
<div class="text-center mt-4 ml-4 notPrint" style="width: 5%;; height: 50%;">
<a href="<?php echo e(route('sale-report.index')); ?>" id="back" name="back" class="btn-sm btn-danger mt-6 fw-bold notPrint" style="cursor: pointer;color: white;">Back</a>
</div>
<div class="text-center mt-4 mr-4 notPrint" style="width: 5%;; height: 50%;">
<a id="print" name="print" class="btn-sm btn-info mt-6 fw-bold notPrint" onclick="return print()" style="cursor: pointer;color: white;">Print</a>
</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>
window.print();
setTimeout("closePrintView()", 1000);
function closePrintView(){
window.location.href = "<?php echo e(route('sale-report.index')); ?>?start_date=<?php echo e($start_date); ?>&end_date=<?php echo e($end_date); ?>&search=<?php echo e($search); ?>";
}
</script>
<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>
$(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_sale_report").addClass('active')
})
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<title><?php echo e(__('message.sales')); ?> - <?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/sale-reports/print-total-category.blade.php ENDPATH**/ ?>