@lang('product.sku'):
{{$product->sku }}
@lang('product.brand'):
{{$product->brand->name ?? '--' }}
@lang('product.unit'):
{{$product->unit->short_name ?? '--' }}
@lang('product.barcode_type'):
{{$product->barcode_type ?? '--' }}
@php
$custom_labels = json_decode(session('business.custom_labels'), true);
@endphp
@if(!empty($product->product_custom_field1))
{{ $custom_labels['product']['custom_field_1'] ?? __('lang_v1.product_custom_field1') }}:
{{$product->product_custom_field1 }}
@endif
@if(!empty($product->product_custom_field2))
{{ $custom_labels['product']['custom_field_2'] ?? __('lang_v1.product_custom_field2') }}:
{{$product->product_custom_field2 }}
@endif
@if(!empty($product->product_custom_field3))
{{ $custom_labels['product']['custom_field_3'] ?? __('lang_v1.product_custom_field3') }}:
{{$product->product_custom_field3 }}
@endif
@if(!empty($product->product_custom_field4))
{{ $custom_labels['product']['custom_field_4'] ?? __('lang_v1.product_custom_field4') }}:
{{$product->product_custom_field4 }}
@endif
@lang('lang_v1.available_in_locations'):
@if(count($product->product_locations) > 0)
{{implode(', ', $product->product_locations->pluck('name')->toArray())}}
@else
@lang('lang_v1.none')
@endif
@if(!empty($product->media->first()))
@lang('lang_v1.product_brochure'):
{{$product->media->first()->display_name}}
@endif
@lang('product.category'):
{{$product->category->name ?? '--' }}
@lang('product.sub_category'):
{{$product->sub_category->name ?? '--' }}
@lang('product.manage_stock'):
@if($product->enable_stock)
@lang('messages.yes')
@else
@lang('messages.no')
@endif
@if($product->enable_stock)
@lang('product.alert_quantity'):
{{$product->alert_quantity ?? '--' }}
@endif
@if(!empty($product->warranty))
@lang('lang_v1.warranty'):
{{$product->warranty->display_name }}
@endif
@lang('product.expires_in'):
@php
$expiry_array = ['months'=>__('product.months'), 'days'=>__('product.days'), '' =>__('product.not_applicable') ];
@endphp
@if(!empty($product->expiry_period) && !empty($product->expiry_period_type))
{{$product->expiry_period}} {{$expiry_array[$product->expiry_period_type]}}
@else
{{$expiry_array['']}}
@endif
@if($product->weight)
@lang('lang_v1.weight'):
{{$product->weight }}
@endif
@lang('product.applicable_tax'):
{{$product->product_tax->name ?? __('lang_v1.none') }}
@php
$tax_type = ['inclusive' => __('product.inclusive'), 'exclusive' => __('product.exclusive')];
@endphp
@lang('product.selling_price_tax_type'):
{{$tax_type[$product->tax_type] }}
@lang('product.product_type'):
@lang('lang_v1.' . $product->type)
{!! $product->product_description !!}
@if($rack_details->count())
@if(session('business.enable_racks') || session('business.enable_row') || session('business.enable_position'))
@lang('lang_v1.rack_details'):
@if(session('business.enable_racks'))
@endif
@if(session('business.enable_row'))
@endif
@if(session('business.enable_position'))
@endif
@foreach($rack_details as $rd)
@if(session('business.enable_racks'))
@endif
@if(session('business.enable_row'))
@endif
@if(session('business.enable_position'))
@endif
@endforeach
@lang('business.location') | @lang('lang_v1.rack') | @lang('lang_v1.row') | @lang('lang_v1.position') |
{{$rd->name}} | {{$rd->rack}} | {{$rd->row}} | {{$rd->position}} |
@endif
@endif
@if($product->type == 'single')
@include('product.partials.single_product_details')
@elseif($product->type == 'variable')
@include('product.partials.variable_product_details')
@elseif($product->type == 'combo')
@include('product.partials.combo_product_details')
@endif
@if($product->enable_stock == 1)
@lang('lang_v1.product_stock_details')
@endif