@extends('admin.layouts.app') @push('styles_top') @endpush @section('content') {{!empty($category) ?trans('/admin/main.edit'): trans('admin/main.new') }} {{ trans('admin/main.category') }} {{ trans('admin/main.dashboard') }} {{ trans('admin/main.categories') }} {{!empty($category) ?trans('/admin/main.edit'): trans('admin/main.new') }} {{ csrf_field() }} @if(!empty(getGeneralSettings('content_translate'))) {{ trans('auth.language') }} @foreach($userLanguages as $lang => $language) get('locale', app()->getLocale())) == mb_strtolower($lang)) selected @endif>{{ $language }} @endforeach @error('locale') {{ $message }} @enderror @else @endif {{ trans('/admin/main.title') }} @error('title') {{ $message }} @enderror {{ trans('admin/main.url') }} {{ trans('update.category_url_hint') }} @error('slug') {{ $message }} @enderror {{ trans('update.order') }} {{ trans('update.category_order_hint') }} @error('slug') {{ $message }} @enderror {{ trans('admin/main.icon') }} @error('icon') {{ $message }} @enderror isEmpty()) ? 'checked' : '' }}> {{ trans('admin/main.has_sub_category') }} {{ trans('admin/main.add_sub_categories') }} Add @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 {{ trans('admin/main.submit') }} @endsection @push('scripts_bottom') @endpush