@extends('layouts.dashboard.app') @php $images = ''; $assignedCategory = []; $assignedType = []; $assignedApplication = []; $assignedIndustry = []; if (!empty($product)) { $images = @$product->getimages ? @$product->getimages->groupby('section') : ''; $assignedCategory = !empty(@$product->assignedCategory()) ? @$product->assignedCategory()->pluck('category_id')->toArray() : []; $assignedCas = !empty(@$product->assignedCas()) ? @$product->assignedCas()->pluck('cas_id')->toArray() : []; $assignedType = !empty(@$product->assignedType()) ? @$product->assignedType()->pluck('product_type_id')->toArray() : []; $assignedApplication = !empty(@$product->assignedApplication()) ? @$product->assignedApplication()->pluck('application_id')->toArray() : []; $assignedIndustry = !empty(@$product->assignedIndustry()) ? @$product->assignedIndustry()->pluck('industry_id')->toArray() : []; } @endphp @section('content')
{{ !empty(@$product->id) ? 'Edit this ' : 'Add a' }} product.
Type: {{ ucfirst($package->packaging_type) }}
Size: {{ trim($ad, 'x') }} {{ $package->measurement_units == 'metric' ? '(cm)' : '(inch)' }}
Shipping Weight: {{ $package->shipping_weight }}
You can add multiple packaging of your product
Please include all attributes that distinguishes this product from other products with the same name