@extends('layouts.admin') @section('title', 'Edit Product') @section('content') Catalog Edit Product Back @csrf @method('PATCH') Category @foreach ($categories as $category) category_id) == $category->id)>{{ $category->name }} @endforeach Name Description {{ old('description', $product->description) }} Price Purchase Price Discount % Fake Discount % Stock Add More Images @if ($product->images->isNotEmpty()) @foreach ($product->images as $image) @endforeach @endif YouTube Link SEO Search Metadata Meta Title Meta Description {{ old('meta_description', $product->meta_description) }} OG Image @if ($product->ogImageUrl()) Current OG image @endif Variants @foreach ($product->variants as $index => $variant) Name name) }}"> Value value) }}"> Sale Price price) }}" placeholder="Use product price"> Purchase Price purchase_price) }}" placeholder="Use product purchase price"> Stock stock) }}"> is_active))> Active Delete @endforeach @for ($offset = 0; $offset < 3; $offset++) @php($index = $product->variants->count() + $offset) Name Value Sale Price Purchase Price Stock @endfor is_active))> Active is_featured))> Featured product @if ($errors->any()) {{ $errors->first() }} @endif Update product @endsection
{{ $errors->first() }}