@extends('admin.layouts.app') @push('styles_top') @endpush @section('content')

{{!empty($category) ?trans('/admin/main.edit'): trans('admin/main.new') }} {{ trans('admin/main.category') }}

{{ csrf_field() }} @if(!empty(getGeneralSettings('content_translate')))
@error('locale')
{{ $message }}
@enderror
@else @endif
@error('title')
{{ $message }}
@enderror
{{ trans('update.category_url_hint') }}
@error('slug')
{{ $message }}
@enderror
{{ trans('update.category_order_hint') }}
@error('slug')
{{ $message }}
@enderror
@error('icon') {{ $message }} @enderror
isEmpty()) ? 'checked' : '' }}>
{{ trans('admin/main.add_sub_categories') }}
    @if((!empty($subCategories) and !$subCategories->isEmpty())) @foreach($subCategories as $key => $subCategory)
  • @include('admin.includes.delete_button',[ 'url' => getAdminPanelUrl("/categories/{$subCategory->id}/delete"), 'deleteConfirmMsg' => trans('update.category_delete_confirm_msg'), 'btnClass' => 'btn btn-danger text-white', 'noBtnTransparent' => true ])
  • @endforeach @endif
  • @endsection @push('scripts_bottom') @endpush