@extends('layouts.bootstrap') @section('title', 'Edit Product') @section('header')

Edit Product

Back to Products @endsection @section('content')
@if($product->isIncomplete())
Product Incomplete

This product is missing some details. Complete them to finish setup:

Missing: {{ implode(', ', $product->getMissingFields()) }}
{{ $product->getCompletionPercentage() }}%
Completion
@else
Product Complete

This product has all required details filled in.

@endif @if(session('step_creation'))
Complete Your Product Setup

Great! You've created "{{ $product->name }}". Now add the remaining details below to complete the setup.

@endif
@if($product->isIncomplete()) Complete Product Information @else Edit Product Information @endif
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('country_of_origin')
{{ $message }}
@enderror @if(is_null($product->country_of_origin))
This field is missing - please add it to complete the product.
@endif
@error('category_id')
{{ $message }}
@enderror @if(is_null($product->category_id))
This field is missing - please select a category.
@endif
@error('subcategory_id')
{{ $message }}
@enderror @if(is_null($product->subcategory_id))
This field is missing - please select a subcategory.
@endif
$ @error('price')
{{ $message }}
@enderror
@if(is_null($product->price))
This field is missing - please add a price.
@endif
@error('measurement_unit')
{{ $message }}
@enderror @if(is_null($product->measurement_unit))
This field is missing - please add a measurement unit.
@endif
@error('description')
{{ $message }}
@enderror
This will be recorded in the audit trail.
Cancel
@endsection @push('scripts') @endpush