@extends('layouts.vertical') @section('content')
{{-- Page Header --}}
{{ __('products.back') }}
{{ __('products.edit') }} @if($product->status_id == 1) @else @can('products.delete') @endcan @endif
{{-- Left Column: Product Image & Quick Info --}}
{{-- Product Image Card --}}
@if($product->photo) {{ $product->product_name }} @else

{{ __('products.no-image') }}

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

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

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

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

{{ __('products.show-category') }}

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

{{ __('products.show-group-code') }}

{{ $product->group_code }}

{{ __('products.show-sat-code') }}

{{ $product->tax_code }}

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

{{ __('products.part-hash') }}{{ $product->product_number }} {{ $product->key_name }}

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

{{ __('products.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} ?? __('products.custom-field').' '.$i }} {{ $product->{'additional_description_'.$i} }}
@endif @endfor @else

{{ __('products.no-specifications') }}

@endif
{{-- Metadata Card --}}
{{ __('products.created-label') }} {{ $product->created_at->format('d M Y, H:i') }}
@if($product->updated_at != $product->created_at)
{{ __('products.last-updated') }} {{ $product->updated_at->format('d M Y, H:i') }}
@endif
@endsection @section('scripts') @endsection