@csrf @isset($company) @method('PUT') @endisset
{{-- LEFT COLUMN: BASIC INFO & TEXT EDITORS --}}
Company Details
@error('company_name') {{ $message }} @enderror
@error('company_code') {{ $message }} @enderror
Technical Specification
@error('technical_specification') {{ $message }} @enderror
Packaging Details
@error('packaging_detail') {{ $message }} @enderror
{{-- RIGHT COLUMN: DYNAMIC ATTRIBUTES WITH ICONS --}}
Attributes (Title, Description & Icon)

Add key features/attributes with an icon image, title, and description (e.g. Anti-microbial, Heat resistance, etc.)

@php $attributes = old('attributes.keys') ? [] : ($company->attributes ?? []); if (old('attributes.keys')) { foreach (old('attributes.keys') as $i => $k) { $attributes[] = [ 'key' => $k, 'value' => old("attributes.values.$i", ''), 'icon' => old("attributes.existing_icons.$i", null), ]; } } @endphp @forelse($attributes as $index => $attr)
@if(!empty($attr['icon']) && file_exists(public_path('storage/' . $attr['icon'])))
Current Icon: Icon
@endif
@empty
@endforelse