@extends('admin.layouts.app') @push('styles_top') @endpush @section('content') {{!empty($filter) ?trans('/admin/main.edit'): trans('admin/main.new') }} {{ trans('admin/main.filters') }} {{ trans('admin/main.dashboard') }} {{ trans('admin/main.filters') }} {{!empty($filter) ?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.category') }} {{ trans('admin/main.choose_category') }} @foreach($categories as $category) @if(!empty($category->subCategories) and count($category->subCategories)) @foreach($category->subCategories as $subCategory) category_id == $subCategory->id) selected="selected" @endif>{{ $subCategory->title }} @endforeach @else category_id == $category->id) selected="selected" @endif>{{ $category->title }} @endif @endforeach @error('category_id') {{ $message }} @enderror {{ trans('admin/main.title') }} @error('title') {{ $message }} @enderror {{ trans('admin/main.add_options') }} {{ trans('admin/main.add') }} @if(!empty($filterOptions)) @foreach($filterOptions as $key => $filterOption) @endforeach @endif {{ trans('admin/main.submit') }} @endsection @push('scripts_bottom') @endpush