@extends('layouts.app') @section('title', 'Edit Produk') @section('content')

Edit Produk

Edit informasi produk: {{ $product->name }}

@csrf @method('PUT')

Informasi Dasar

@error('name')

{{ $message }}

@enderror
@error('sku')

{{ $message }}

@enderror
@error('barcode')

{{ $message }}

@enderror
@error('category_id')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror

Harga & Stok

Rp
@error('price')

{{ $message }}

@enderror
@error('stock')

{{ $message }}

@enderror @if($product->stock <= $product->min_stock)

⚠️ Stok saat ini rendah! ({{ $product->stock }} {{ $product->unit }})

@endif
@error('min_stock')

{{ $message }}

@enderror
@error('unit')

{{ $message }}

@enderror

Gambar & Status

@if($product->image)
{{ $product->name }}

{{ basename($product->image) }}

@endif
@if($product->image)
Current Image

{{ basename($product->image) }}

@endif

atau drag and drop

PNG, JPG, GIF hingga 2MB

@error('image')

{{ $message }}

@enderror
is_active) ? 'checked' : '' }} class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">

Produk aktif akan muncul dalam pencarian dan dapat dijual

track_stock) ? 'checked' : '' }} class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded" onchange="toggleStockFields()">

Jika diaktifkan, sistem akan melacak dan mengurangi stok saat terjadi transaksi

Batal
@endsection