@extends('layouts.vertical') @section('content')
{{-- Page Header --}}
{{ __('bundles.back') }}
{{ __('bundles.edit_kit') }}
{{-- Left Column: Product Image & Quick Info --}}
{{-- Product Image Card --}}
@if($product->photo) {{ $product->product_name }} @else

{{ __('bundles.no_image') }}

@endif
{{ $product->brand->validbrand_id }}

{{ $product->family }} {{ $product->model }}

{{-- Quick Stats --}}
{{ __('bundles.sku') }} {{ $product->sku }}
{{ __('bundles.code') }} {{ $product->product_code }}
{{-- Category & Classification --}}
{{ __('bundles.classification') }}
{{ __('bundles.group') }}

{{ $product->category->group->es_name }}

{{ __('bundles.category') }}

{{ $product->category->name }}

{{ __('bundles.group_code') }}

{{ $product->group_code }}

{{ __('bundles.sat_code') }}

{{ $product->tax_code }}

{{-- Barcode Info --}} @if($product->barcode)
{{ __('bundles.barcode') }}
{{ $product->barcode }}
@if($product->generic_barcode) {{ __('bundles.generic') }} @endif
@endif
{{-- Right Column: Product Details --}}
{{-- Product Title --}}
{{ $product->product_name }}

{{ __('bundles.part') }} #{{ $product->id }} {{ $product->key_name }}

{{-- Tabs for Details --}}
{{-- Details Tab --}}
{{ __('bundles.brand') }}
{{ $product->brand->validbrand_id }}
{{ __('bundles.family') }}
{{ $product->family }}
{{ __('bundles.model') }}
{{ $product->model }}
{{-- Description Tab --}}
@if($product->description)
{{ __('bundles.for_quotations') }}
{!! nl2br(e($product->description)) !!}
@endif @if($product->store_description)
{{ __('bundles.for_ecommerce') }}
{!! nl2br(e($product->store_description)) !!}
@endif @if(!$product->description && !$product->store_description)

{{ __('bundles.no_descriptions') }}

@endif
{{-- Specifications Tab --}}
@php $hasSpecs = false; for($i = 1; $i <= 8; $i++) { if($product->{'additional_description_'.$i}) { $hasSpecs = true; break; } } @endphp @if($hasSpecs) @for($i = 1; $i <= 8; $i++) @if($product->{'additional_description_'.$i})
{{ $product->category->{'custom_field_'.$i} ?? __('bundles.custom_field').' '.$i }} {{ $product->{'additional_description_'.$i} }}
@endif @endfor @else

{{ __('bundles.no_specifications') }}

@endif
{{-- Metadata Card --}}
{{ __('bundles.created') }} {{ $product->created_at->format('d M Y, H:i') }}
@if($product->updated_at != $product->created_at)
{{ __('bundles.last_updated') }} {{ $product->updated_at->format('d M Y, H:i') }}
@endif
{{-- Bundle Components --}} @if($product->is_bundle)
{{ __('bundles.bundle_components') }}
{{ $product->bundleComponents->count() }} {{ __('bundles.items') }}
@forelse($product->bundleComponents as $idx => $item) @empty @endforelse
# {{ __('bundles.type') }} {{ __('bundles.component') }} {{ __('bundles.sku') }} {{ __('bundles.qty') }} {{ __('bundles.notes') }}
{{ $idx + 1 }} {{ $item->item_type }} @if($item->is_base) {{ __('bundles.base') }} @endif {{ $item->product->product_name ?? 'N/A' }} {{ $item->product->sku ?? '-' }} {{ $item->quantity }} {{ $item->description ?? '-' }}
{{ __('bundles.no_components') }}
@endif @endsection @section('scripts') @endsection