@extends('layouts.admin') @push('styles') @endpush @section('content')
@if (session()->has('success'))
@endif {{-- show attributes of the category of this subcategory / childcategory starts --}} @if ($type == 'subcategory' || $type == 'childcategory') @php if ($type == 'subcategory') { $category = $data->category; } elseif ($type == 'childcategory') { $category = $data->subcategory->category; } @endphp @if ($category->attributes()->count() > 0) @foreach ($category->attributes as $key => $attribute)

{{ __($attribute->name) }} *

{{ __('(In Any Language)') }}

@foreach ($attribute->attribute_options as $key => $option)
@endforeach

@endforeach @endif @endif {{-- show attributes of the category of this subcategory / childcategory ends --}} {{-- show attributes of the subcategory of this childcategory starts --}} @if ($type == 'childcategory') @if ($data->subcategory->attributes()->count() > 0) @foreach ($data->subcategory->attributes as $key => $attribute)

{{ __($attribute->name) }} *

{{ __('(In Any Language)') }}

@foreach ($attribute->attribute_options as $key => $option)
@endforeach

@endforeach @endif @endif {{-- show attributes of the subcategory of this childcategory ends --}} @foreach ($data->attributes as $key => $attribute)

{{ __($attribute->name) }} *

{{ __('(In Any Language)') }}

@foreach ($attribute->attribute_options as $key => $option)
@endforeach

@endforeach
@endsection