@extends('layouts.app') @section('title', 'Admin - Edit Product') @section('content')
Product Manager
Quick Tip

Ensure images are high-resolution for better customer engagement.

Edit Product

@csrf @method('PUT')
Product Information
@error('short_description')
{{ $message }}
@enderror Optional. Shown below the product title on the storefront.
Pricing & Inventory
is_featured ? 'checked' : '' }}>
print_sku_on_image ? 'checked' : '' }}>
Media Gallery
@php $primaryPath = $product->getPrimaryImage(); @endphp @if($primaryPath)
Active Primary
@else
No primary image set.
@endif
{{-- New Gallery System --}} @foreach($product->galleries as $g)
@endforeach {{-- Legacy Gallery System --}} @foreach($product->images->where('is_primary', 0) as $img)
LEGACY
@endforeach @if($product->galleries->count() == 0 && $product->images->where('is_primary', 0)->count() == 0)
No gallery images uploaded.
@endif
New images will be added to the existing gallery.
@include('admin.partials.seo_fields', ['model' => $product])
Back to Products
Recent Reports
Visits 1.2k
Last 30 days performance
Sales $840
Generated revenue
Orders 12
Pending shipment
Quick Actions
@if($product->status !== 'active')
@csrf
@endif
@csrf
@endsection