@extends('layouts.bootstrap') @section('title', 'Merge Details') @section('header')
| Product Name | Description | Category | Country | Price | Unit |
|---|---|---|---|---|---|
| {{ $product['name'] }} | @if(!empty($product['description'])) {{ $product['description'] }} @else No description @endif |
@if(!empty($product['category_id']))
@php
$category = \App\Models\Category::find($product['category_id']);
$subcategory = !empty($product['subcategory_id']) ? \App\Models\Subcategory::find($product['subcategory_id']) : null;
@endphp
@if($category)
{{ $category->name }}
@if($subcategory)
{{ $subcategory->name }} @endif @else Not set @endif @else Not set @endif |
{{ $product['country_of_origin'] ?? 'Not set' }} | @if(!empty($product['price'])) ৳{{ number_format($product['price'], 2) }} @else Not set @endif | {{ $product['measurement_unit'] ?? 'Not set' }} |