@extends('layouts.admin-simple') @section('title', 'Edit Product Category') @section('page-title', 'Edit Product Category') @section('breadcrumb') @endsection @section('content')

Edit Category: {{ $productCategory->name }}

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@if($productCategory->image)
{{ $productCategory->name }}
Current image
@endif @error('image')
{{ $message }}
@enderror Upload a new image to replace the current one (optional)
@error('sort_order')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
cancel Cancel

Category Stats

{{ $productCategory->standards->count() }}
Standards
@php $totalProducts = $productCategory->standards->sum(function($standard) { return $standard->applications->sum(function($application) { return $application->products->count(); }); }); @endphp
{{ $totalProducts }}
Products
@endsection