@extends('layouts.app') @section('content')

{{ __('inventory.items') }}

{{ __('inventory.create_item') ?? 'افزودن قلم' }}
@forelse($items as $item) @empty @endforelse
{{ __('inventory.item_code') }} {{ __('inventory.item_name') }} {{ __('inventory.category') }} {{ __('inventory.unit') }} {{ __('inventory.current_stock') }} {{ __('common.status') }}
{{ $item->code ?? '-' }} {{ $item->name }} {{ $item->category ?? '-' }} {{ $item->unit ?? '-' }} @php $stock = $item->current_stock ?? 0; $minStock = $item->min_stock ?? 0; @endphp {{ persian_num(number_format($stock, 2)) }} @if($stock <= $minStock && $stock > 0) @elseif($stock <= 0) @endif {{ $item->is_active ? __('inventory.active') : __('inventory.inactive') }}
@if($item->inventoryTransactions()->count() === 0)
@csrf @method('DELETE')
@endif
{{ __('inventory.no_items') }}
{{ $items->withQueryString()->links() }}
@endsection