@extends('layouts.admin') @section('title', $product->exists ? __('admin.edit_product') : __('admin.new_product')) @section('breadcrumb', __('admin.products')) @section('content')
@csrf @if ($product->exists) @method('put') @endif

{{ __('admin.content') }}

@foreach ($allLanguages as $index => $language) @endforeach
@foreach ($allLanguages as $index => $language) @endforeach

{{ __('admin.pricing_stock') }}

{{ __('admin.group_prices') }}

{{ __('admin.group_prices_help') }}

@forelse ($priceGroups as $priceGroup) @empty

{{ __('admin.group_prices_empty') }} {{ __('admin.customer_groups') }}

@endforelse

{{ __('admin.options') }}

{{ __('admin.options_help') }}

{{ __('admin.attributes') }}

{{ __('admin.option_media_help') }}

@forelse ($attributes as $attribute)
{{ $attribute->tr('name') }} {{ $attribute->code }}
@foreach ($attribute->values as $value) @php($meta = $optionMeta[$value->id] ?? [])
@endforeach
@empty

{{ __('admin.no_attributes') }} {{ __('admin.create_attribute') }}

@endforelse
@endsection