@extends('layouts.admin') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.category.title_singular') }}
id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf
@if($errors->has('name')) {{ $errors->first('name') }} @endif {{ trans('cruds.category.fields.name_helper') }}
@if($errors->has('slug')) {{ $errors->first('slug') }} @endif {{ trans('cruds.category.fields.slug_helper') }}
@if($errors->has('featured_image')) {{ $errors->first('featured_image') }} @endif {{ trans('cruds.category.fields.featured_image_helper') }}
@if($errors->has('parent')) {{ $errors->first('parent') }} @endif {{ trans('cruds.category.fields.parent_helper') }}
@foreach(App\Models\Category::STATUS_RADIO as $key => $label)
status) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('status')) {{ $errors->first('status') }} @endif {{ trans('cruds.category.fields.status_helper') }}
@endsection @section('scripts') @endsection