@extends('layouts.app') @section('content')

Edit Product

Update your product information and details

@csrf @method('PUT')
@error('title')

{{ $message }}

@enderror

A catchy, descriptive title for your product.

@error('description')

{{ $message }}

@enderror

Provide a detailed description of your product (what it does, key features, etc.).

@error('website_url')

{{ $message }}

@enderror

The full URL to your product's website or landing page.

@error('category_id')

{{ $message }}

@enderror

Choose the category that best fits your product.

@if($tags->count() > 0)
@foreach($tags as $tag) @php $isChecked = old('tags') ? in_array($tag->id, old('tags')) : $product->tags->contains($tag->id); @endphp @endforeach
@error('tags')

{{ $message }}

@enderror

Select all tags that apply to your product.

@endif @php $badgesLocked = $product->status === 'approved' && !auth()->user()->hasAnyRole(['moderator', 'admin']); @endphp
@foreach(\App\Models\Product::BADGES as $key => $label) @endforeach
@if($badgesLocked)

Locked after approval

@endif
@if($product->thumbnail_url)
{{ $product->title }}
@endif
@error('thumbnail')

{{ $message }}

@enderror

Upload a product screenshot or logo (JPEG, PNG, or GIF, max 2MB).

@if($product->screenshots->isNotEmpty())
@foreach($product->screenshots as $shot) @endforeach
@endif
@error('screenshots')

{{ $message }}

@enderror @foreach($errors->get('screenshots.*') as $messages)

{{ $messages[0] }}

@endforeach

Add several images (JPEG, PNG, or GIF, max 2MB each).

Note: Changes to your product may need to be reviewed by moderators before appearing on the site.

Cancel
@push('scripts') @endpush @endsection