@extends('admin.layouts.admin') @section('title', $product->exists ? 'Edit Product' : 'New Product') @section('content')

{{ $product->exists ? 'Edit Product' : 'New Product' }}

@csrf @if ($product->exists) @method('PUT') @endif
@error('category_id')

{{ $message }}

@enderror

Name

@foreach (config('site.locales') as $code => $meta)
@endforeach
@error('name.kn')

{{ $message }}

@enderror

Short Description (shown on product cards)

@foreach (config('site.locales') as $code => $meta)
@endforeach

Full Description (shown on the product page)

@foreach (config('site.locales') as $code => $meta)
@endforeach

The first photo (existing or newly uploaded) is used as the cover image. New uploads are added to the gallery.

@if (! empty($product->images))
@foreach ($product->galleryUrls() as $url) @endforeach
@endif
Cancel
@endsection