update marketing
All checks were successful
All checks were successful
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th class="text-start d-print-none">{{ __('SL') }}.</th>
|
||||
<th class="text-start">{{ __('Product') }}</th>
|
||||
<th class="text-start">{{ __('Code') }}</th>
|
||||
<th class="text-start d-print-none">{{ __('HSN Code') }}</th>
|
||||
<th class="text-start">{{ __('Category') }}</th>
|
||||
@usercan('stocks.price')
|
||||
<th class="text-start">{{ __('Cost') }}</th>
|
||||
@@ -24,8 +25,7 @@
|
||||
});
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ ($products->currentPage() - 1) * $products->perPage() + $loop->iteration }}</td>
|
||||
|
||||
<td class="text-start d-print-none">{{ ($products->currentPage() - 1) * $products->perPage() + $loop->iteration }}</td>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$stocks = $product->stocks->map(function ($batch) use ($product) {
|
||||
@@ -36,6 +36,7 @@
|
||||
'productSalePrice' => $batch->productSalePrice ?? 0,
|
||||
'productDealerPrice' => $batch->productDealerPrice ?? 0,
|
||||
'productPurchasePrice' => $batch->productPurchasePrice ?? 0,
|
||||
'exclusive_price' => $batch->exclusive_price ?? 0,
|
||||
'productWholeSalePrice' => $batch->productWholeSalePrice ?? 0,
|
||||
'warehouse' => $batch->warehouse?->name ?? ($product->warehouse?->name ?? ''),
|
||||
'rack' => $product->rack?->name ?? '',
|
||||
@@ -48,8 +49,8 @@
|
||||
{{ $product->productName }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td class="text-start">{{ $product->productCode }}</td>
|
||||
<td class="text-start d-print-none">{{ $product->hsn_code }}</td>
|
||||
<td class="text-start">{{ $product->category->categoryName ?? '' }}</td>
|
||||
@usercan('stocks.price')
|
||||
<td class="text-start">
|
||||
@@ -67,13 +68,21 @@
|
||||
@endforeach
|
||||
|
||||
@if ($products->count() > 0)
|
||||
<tr>
|
||||
<td colspan="{{ auth()->user()->can('stocks.price') || !auth()->user()->visibility ? 7 : 6 }}"
|
||||
class="text-end">
|
||||
<strong>{{ __('Total Stock Value:') }}</strong>
|
||||
<tr class="table-footer">
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td class="d-print-none"></td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
@usercan('stocks.price')
|
||||
<td></td>
|
||||
@endusercan
|
||||
<td class="text-start">
|
||||
{{ $total_stock_qty }}
|
||||
</td>
|
||||
<td></td>
|
||||
<td class="text-end">
|
||||
<strong>{{ currency_format($total_stock_value, currency: business_currency()) }}</strong>
|
||||
{{ currency_format($total_stock_value, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user