@extends('layouts.app') @section('title', 'Data Barang') @section('content')
Tambah Barang Reset Filter
Bersihkan
@forelse ($items as $item) @empty @endforelse
No Kode Nama Barang Kategori Divisi Stok Satuan Minimum Status Harga Aksi
{{ ($items->firstItem() ?? 1) + $loop->index }} {{ $item->code }} {{ $item->name }} {{ $item->category->name ?? '-' }} {{ $item->division->name ?? '-' }} {{ $item->stock }} {{ $item->unit ?? 'Pcs' }} {{ $item->minimum_stock ?? 2 }} @if ($item->stock <= ($item->minimum_stock ?? 2)) Perlu Order @else Aman @endif Rp {{ number_format($item->price, 0, ',', '.') }} Edit
@csrf @method('DELETE')
Belum ada data barang.
@if ($items->hasPages())
{{ $items->links() }}
@endif @endsection