update marketing
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 11:55:22 +07:00
parent f80fcc4c1b
commit 05fd3230b8
448 changed files with 17545 additions and 5128 deletions

View File

@@ -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