@extends('layouts.app') @section('title', __('dashboard.Edit Product')) @section('page_heading', __('dashboard.Edit Product')) @section('content')
{{ __('dashboard.Show') }} {{ __('dashboard.Products') }}
@include('layouts.partials.workspace-page-styles')

{{ __('dashboard.Edit Product') }}: {{ $product->name }}

SKU: {{ $product->sku }}

@csrf @method('PATCH')
@error('type')
{{ $message }}
@enderror
@error('product_category_id')
{{ $message }}
@enderror
@error('sku')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@error('price')
{{ $message }}
@enderror
@error('stock')
{{ $message }}
@enderror
{{-- Existing Images --}} @if(is_array($product->images) && count($product->images) > 0)
@foreach($product->images as $index => $img)
@if($product->main_image == $img) {{ __('dashboard.Main') }} @endif
@endforeach
@endif
@error('images.*')
{{ $message }}
@enderror
@error('options')
{{ $message }}
@enderror
{{ __('dashboard.Cancel') }}
{{-- Image preview modal --}} @endsection @section('scripts') @endsection