@extends('layouts.app') @section('title','Edit Product') @section('content')
ERP / PRODUCT MASTER

{{ $product->name }}

SKU: {{ $product->sku }}

← Products
@if(session('success'))
{{ session('success') }}
@endif @if(isset($errors) && $errors->any())
{{ $errors->first() }}
@endif

Product details

@csrf @method('PUT')
@foreach(['sku'=>'SKU','name'=>'Product name','barcode'=>'Barcode','brand'=>'Brand','model'=>'Model','color'=>'Color'] as $field=>$label)@endforeach
@if($canEdit)@endif

Product image

@if($product->image_url){{ $product->name }}@else

No image uploaded yet.

@endif @if($canEdit)
@csrf

JPG, PNG or WebP · Maximum 5 MB. Uploading replaces the main image.

@endif

Product gallery

Up to 12 images per product. JPG, PNG, WebP · 5 MB per image.

@forelse($images as $image)
Product gallery image@if($canEdit)
@csrf @method('DELETE')
@endif
@empty

No gallery images yet.

@endforelse
@if($canEdit)
@csrf
@endif
@endsection