{{ __('Products') }}

@can('reports.journal') @endcan @foreach ($products as $product) @can('reports.journal') @endcan @endforeach
{{ __('Product Code') }} {{ __('Name') }} {{ __('Quantity') }} {{ __('Total Sell') }} {{ __('Average Cost') }} {{ __('Sell price') }}{{ __('Sales profit') }} {{ __('Total Sell') }}{{ __('Product group') }} {{ __('Action') }}
{{ convertToFarsi($product->code) }} {{ $product->name }} {{ formatNumber($product->quantity) }} @if ($product->unapprovedQuantity != 0) / {{ formatNumber($product->unapprovedQuantity) }} @endif {{ formatNumber($product->totalSellCount) }} {{ formatNumber($product->average_cost) }} {{ formatNumber($product->selling_price) }}{{ formatNumber($product->salesProfit) }} {{ $product->totalSell != 0 ? formatNumber(round(($product->salesProfit / $product->totalSell) * 100, 2)) : 0 }}% {{ formatNumber($product->totalSell) }} {{ $product->productGroup->name }} {{ __('Edit') }} @if ($product->invoiceItems()->exists()) @else
@csrf @method('DELETE')
@endif
{!! $products->withQueryString()->links() !!}