@extends('layouts.main') @section('title') {{__("Custom Fields")}} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
< {{__("Back to Custom Fields")}} @if(in_array($custom_field->type,['radio','checkbox','dropdown'])) + {{__("Add Options")}} @endif
@method('PUT') @csrf
{{__("Create Custom Field")}}
@if(in_array($custom_field->type,['radio','checkbox','dropdown']))
{{__("This will be applied only for")}}: {{__("Checkboxes").",".__("Radio")}} and {{__("Dropdown")}} .
@endif @if(in_array($custom_field->type,['textbox','fileinput','number']))
{{__("This will be applied only for")}}: {{__("text").",".__("number")}} {{__("and")}} {{__("textarea")}} .
{{__("This will be applied only for")}}: {{__("text").",".__("number")}} {{__("and")}} {{__("textarea")}} .
@endif
{{__("(use 256 x 256 size for better view)")}}
required ? 'checked' : '' }}>{{ __('Required') }}
status ? 'checked' : '' }}>{{ __('Active') }}
@if($languages->isNotEmpty())

{{ __("Translations") }}
@foreach($languages as $language)
{{ __("Translation for") }}: {{ $language->name }} ({{ $language->code }})
@endforeach @endif
{{__("Category")}}
@foreach ($categories as $category)
@if (!empty($category->subcategories)) @endif
{{-- ✅ Show children open if parent or child is selected --}}
@if (!empty($category->subcategories)) @include('category.treeview', [ 'categories' => $category->subcategories, 'selected_categories' => $selected_categories, 'selected_all_categories' => $selected_all_categories ]) @endif
@endforeach
@if(in_array($custom_field->type,['radio','checkbox','dropdown']))
{{ __('ID') }} {{ __('Value') }} {{ __('Action') }}
@endif {{-- add modal --}} @if(in_array($custom_field->type,['radio','checkbox','dropdown'])) {{-- edit modal --}}
@endsection @section('js') @endsection