@extends('layouts.app') @section('page-title', 'Manajemen Stok Restoran') @section('content')

Manajemen Stok Restoran

Tambah Item Stok

{{ $stockItems->total() }}

Total Item

{{ $lowStockItems }}

Stok Rendah

{{ $outOfStockItems }}

Habis

{{ $stockItems->total() - $lowStockItems - $outOfStockItems }}

Tersedia

Daftar Item Stok
@if($stockItems->count() > 0)
@foreach($stockItems as $item) @endforeach
Nama Item Kategori Stok Saat Ini Stok Minimum Harga Beli Harga Jual Margin Status Aksi
{{ $item->name }} @if($item->barcode)
Barcode: {{ $item->barcode }} @endif
{{ ucfirst($item->category) }} {{ $item->current_stock }} {{ $item->unit }} {{ $item->min_stock }} {{ $item->unit }} Rp {{ number_format($item->purchase_price, 0, ',', '.') }} Rp {{ number_format($item->selling_price, 0, ',', '.') }} {{ number_format($item->profit_margin, 1) }}% @if($item->stock_status == 'out_of_stock') {{ $item->stock_status_text }} @elseif($item->stock_status == 'low_stock') {{ $item->stock_status_text }} @else {{ $item->stock_status_text }} @endif
@csrf @method('DELETE')
{{ $stockItems->links() }}
@else
Belum ada item stok

Mulai dengan menambahkan item stok pertama Anda.

Tambah Item Stok
@endif
@endsection