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

@if ($flashMessage)

{{ $flashMessage }}

@endif @error('item_code')

{{ $message }}

@enderror @error('item_name')

{{ $message }}

@enderror @error('category_id')

{{ $message }}

@enderror @error('unit_id')

{{ $message }}

@enderror @if ($showForm)

{{ $editingId ? __('items.edit_item') : __('items.add_new_item') }}

@endif
@forelse ($rows as $idx => $row) @empty @endforelse
# {{ __('common.code') }} {{ __('common.name') }} {{ __('common.category') }} {{ __('common.unit') }} {{ __('common.type') }} {{ __('items.brand') }} {{ __('items.specification') }} {{ __('common.description') }} {{ __('common.status') }} {{ __('items.created') }} {{ __('common.actions') }}
{{ $rows->firstItem() + $idx }} {{ $row->item_code }} {{ $row->item_name }} {{ $row->category_name ?: '-' }} {{ $row->unit_name ? $row->unit_name.($row->unit_symbol ? ' ('.$row->unit_symbol.')' : '') : '-' }} {{ $row->item_type }} {{ $row->brand ?: '-' }} {{ \Illuminate\Support\Str::limit($row->specification, 30) ?: '-' }} {{ \Illuminate\Support\Str::limit($row->description, 30) ?: '-' }} {{ ucfirst($row->status ?: 'inactive') }} {{ $row->created_at ? \Illuminate\Support\Carbon::parse($row->created_at)->format('Y-m-d') : '-' }}
{{ __('common.no_records') }}
{{ $rows->links() }}