@php $canEditProduct = \App\Support\AdminAccess::canAction('products', 'edit'); $canDeleteProduct = \App\Support\AdminAccess::canAction('products', 'delete'); $canCreateProduct = \App\Support\AdminAccess::canAction('products', 'create'); @endphp

{{ __('Products List') }}

{{ __('Manage your stock and market rates') }}
@if($canCreateProduct) @endif
{{ __('Actions') }}
@if($canCreateProduct) @endif @if($canCreateProduct) @endif @if($productImport) {{ $productImport->getClientOriginalName() }} @endif
@if (session()->has('message'))
{{ session('message') }}
@endif @if(!empty($importErrors) || $errors->has('productImport'))
{{ __('Import was not completed. No products were saved.') }} @error('productImport')
{{ $message }}
@enderror @foreach($importErrors as $importError)
{{ $importError }}
@endforeach
@endif {{--
{{ __('Excel template: red headings are required and green headings are optional. CSV template uses Required/Optional labels because CSV does not support colors. Exported Current Stock is for reference only; new imports use Opening Stock as the starting stock.') }}
--}}
@if($productSearch !== '') @endif
{{ __('Searching...') }}
@forelse($all_products as $item) @php $currentStock = (float) ($item->quantity ?? 0); $alertQuantity = (float) ($item->alert_quantity ?? 0); $isLowStock = $alertQuantity > 0 && $currentStock > 0 && $currentStock <= $alertQuantity; @endphp @empty @endforelse
{{ __('Category') }} {{ __('Product') }} {{ __('Barcode') }} {{ __('Shortcode') }} {{ __('Sale Rate') }} {{ __('Purchase Rate') }} {{ __('Opening Stock') }} {{ __('Alert Qty') }} {{ __('Unit') }} {{ __('Actions') }}
{{ $item->category?->display_name ?? '-' }}
{{ $item->display_name }}
{{ $item->barcode_number ?? '-' }} @if($item->shortcode) {{ $item->shortcode }} @else - @endif Rs. {{ number_format($item->sale_rate) }} Rs. {{ number_format($item->purchase_rate) }} {{ number_format((float) $item->opening_stock, 2) }} @if($item->alert_quantity !== null && $item->alert_quantity !== '') {{ number_format((float) $item->alert_quantity, 2) }} @else - @endif {{ $item->unit?->display_name ?? '-' }} @if($canEditProduct) @endif @if($canDeleteProduct) @endif
Koi products nahi mili.
@if($showCategoryCreateModal)
{{ __('Add New Category') }}
@error('newCategoryName') {{ $message }} @enderror
@error('newCategoryNameUrdu') {{ $message }} @enderror
@endif @if($showUnitCreateModal)
{{ __('Add Unit') }}
@error('newUnitCode') {{ $message }} @enderror
@error('newUnitName') {{ $message }} @enderror
@error('newUnitBaseId') {{ $message }} @enderror
@if($newUnitBaseId)
@error('newUnitOperator') {{ $message }} @enderror
@error('newUnitOperationValue') {{ $message }} @enderror
@endif
{{ __('Example conversions:') }}
1 Dozen = 1 * 12 Piece
1 Gram = 1 / 1000 KG
@endif @if($showBrandCreateModal)
{{ __('Add Brand') }}
@error('newBrandName') {{ $message }} @enderror
@error('newBrandImage') {{ $message }} @enderror
@if($newBrandImage) New brand preview @elseif($currentBrandImage) Current brand preview @else {{ __('No image selected') }} @endif
@endif @if($showVariationCreateModal)
{{ __('Add Variation') }}
@error('newVariationName') {{ $message }} @enderror
@foreach($newVariationTypes as $index => $type)
@if($index === 0) @else @endif
@error('newVariationTypes.' . $index) {{ $message }} @enderror @endforeach @error('newVariationTypes') {{ $message }} @enderror
@endif