@extends('admin.layouts.app') @section('title', 'Edit Category') @section('breadcrumb') @endsection @section('page-header')

{{ __('Edit Category') }}

{{ __('Update category information and SEO settings') }}

{{ __('View Category') }} {{ __('Back to Categories') }}
@endsection @push('styles') @endpush @section('content')
{{-- Category Status Alert --}} @if(!$category->is_active)
{{ __('Category is currently inactive') }} - {{ __('This category is not visible on the website') }}
@endif
@csrf @method('PUT') {{-- Language Tabs for Multi-language Support --}}
@foreach(['ar' => 'العربية', 'en' => 'English', 'fr' => 'Français'] as $localeCode => $localeName) @php $translation = $category->translations->where('locale', $localeCode)->first(); @endphp
{{-- Basic Category Information --}}
{{ __('Basic Information') }} ({{ $localeName }})
{{ strlen($translation->name ?? '') }}/255 characters
{{-- SEO Meta Information --}}
{{ __('SEO Optimization') }} ({{ $localeName }})
{{ strlen($translation->meta_title ?? '') }}/60 characters (optimal: 50-60)
Separate keywords with commas (3-5 keywords recommended)
{{ strlen($translation->meta_description ?? '') }}/160 characters (optimal: 150-160)
@endforeach
{{-- Global Category Data --}}
{{ __('Category Settings') }}
Lower numbers appear first
{{-- Category Image --}}
{{ __('Category Image') }}
Recommended: 400x400px minimum, JPG/PNG format
@if($category->image)
{{ $category->name }}
@endif
{{-- Status and Visibility --}}
{{ __('Visibility & Status') }}
is_active ? 'checked' : '' }}>
{{-- Form Actions --}}
{{ __('Cancel') }}
@endsection @push('scripts') @endpush