ultimatepos/resources/views/report/partials/stock_report_table.blade.php

54 lines
2.9 KiB
PHP

@php
$custom_labels = json_decode(session('business.custom_labels'), true);
$product_custom_field1 = !empty($custom_labels['product']['custom_field_1']) ? $custom_labels['product']['custom_field_1'] : __('lang_v1.product_custom_field1');
$product_custom_field2 = !empty($custom_labels['product']['custom_field_2']) ? $custom_labels['product']['custom_field_2'] : __('lang_v1.product_custom_field2');
$product_custom_field3 = !empty($custom_labels['product']['custom_field_3']) ? $custom_labels['product']['custom_field_3'] : __('lang_v1.product_custom_field3');
$product_custom_field4 = !empty($custom_labels['product']['custom_field_4']) ? $custom_labels['product']['custom_field_4'] : __('lang_v1.product_custom_field4');
@endphp
<table class="table table-bordered table-striped" id="stock_report_table">
<thead>
<tr>
<th>@lang('messages.action')</th>
<th>SKU</th>
<th>@lang('business.product')</th>
<th>@lang('lang_v1.variation')</th>
<th>@lang('product.category')</th>
<th>@lang('sale.location')</th>
<th>@lang('purchase.unit_selling_price')</th>
<th>@lang('report.current_stock')</th>
@can('view_product_stock_value')
<th class="stock_price">@lang('lang_v1.total_stock_price') <br><small>(@lang('lang_v1.by_purchase_price'))</small></th>
<th>@lang('lang_v1.total_stock_price') <br><small>(@lang('lang_v1.by_sale_price'))</small></th>
<th>@lang('lang_v1.potential_profit')</th>
@endcan
<th>@lang('report.total_unit_sold')</th>
<th>@lang('lang_v1.total_unit_transfered')</th>
<th>@lang('lang_v1.total_unit_adjusted')</th>
<th>{{$product_custom_field1}}</th>
<th>{{$product_custom_field2}}</th>
<th>{{$product_custom_field3}}</th>
<th>{{$product_custom_field4}}</th>
@if($show_manufacturing_data)
<th class="current_stock_mfg">@lang('manufacturing::lang.current_stock_mfg') @show_tooltip(__('manufacturing::lang.mfg_stock_tooltip'))</th>
@endif
</tr>
</thead>
<tfoot>
<tr class="bg-gray font-17 text-center footer-total">
<td colspan="7"><strong>@lang('sale.total'):</strong></td>
<td class="footer_total_stock"></td>
@can('view_product_stock_value')
<td class="footer_total_stock_price"></td>
<td class="footer_stock_value_by_sale_price"></td>
<td class="footer_potential_profit"></td>
@endcan
<td class="footer_total_sold"></td>
<td class="footer_total_transfered"></td>
<td class="footer_total_adjusted"></td>
<td colspan="4"></td>
@if($show_manufacturing_data)
<td class="footer_total_mfg_stock"></td>
@endif
</tr>
</tfoot>
</table>