@foreach ($adjustment_details as $key => $detail) @php // Calculate rowspan dynamically $rowspan = 1; // The main row if ($detail->product_note) { $rowspan++; // Add one row for product note } if ($detail->spasification_details->count() > 0) { $rowspan++; // Add one row for specification details } @endphp @if ($detail->spasification_details->count() > 0) @endif @endforeach
Sl Date Invoice No Type Quanity Unit Price Amount
{{ $key + 1 }} {{ $detail->date }} {{ $detail->invoice_no }} {{ $detail->adjustment_type }} {{ numberformat($detail->qty) }} {{ $detail->unit_name }} {{ numberformat($detail->unit_price) }} {{ numberformat($detail->amount) }}
@foreach ($detail->spasification_details as $i => $spasification_details) ({{ intToRoman($i + 1) }}). @if ($spasification_details->emi_number) EMI Number: {{ $spasification_details->emi_number }}, @endif @if ($spasification_details->serial_number) Serial Number: {{ $spasification_details->serial_number }} @endif
@endforeach