@extends('print.layout') @section('title', 'Product_Cost_' . ($product['article_no'] ?? 'N/A') . '_' . ($product['name'] ?? 'N/A')) @section('content')
Product Cost Information
{{-- Product Header Information --}}
Article No: {{ $product['article_no'] ?? 'N/A' }}
Product Name: {{ $product['name'] ?? 'N/A' }}
Product Type: {{ $product['product_type_name'] ?? 'N/A' }}
Category: {{ $product['category_name'] ?? 'N/A' }}
Unit: {{ $product['unit_name'] ?? 'N/A' }}
{{-- Product Cost Table --}} @if($productCost && $productCost->count() > 0)

Cost Breakdown

@php $totalCost = 0; @endphp @foreach($productCost as $item) @php $totalCost += $item->amount ?? 0; @endphp @endforeach
@else
No Cost Data

No cost information has been recorded for this product.

@endif @endsection