@php $i = 0; @endphp @forelse ($listEstimatesDetail as $led) @php $i++; @endphp @php $limit = 50; $textLenght = Str::length($led['Estimate_Detail_Ext_Description']); $textDescription = Str::substr($led['Estimate_Detail_Ext_Description'], 0, $limit); @endphp @if ($textLenght > $limit) @else @endif @empty @endforelse @if(count($listEstimatesDetail) > 0) @endif
# Item Ext Description Department Ord. Qty Unit Price ($) Unit Of Measure Total Price ($) Options
{{ $i }} {{ $led['Estimate_Detail_Part_Number'] }}{{ $textDescription . '...' }}{{ $led['Estimate_Detail_Ext_Description'] }}{{ $led['Estimate_Detail_Department'] }} {{ $led['Estimate_Detail_Order_Quantity'] }} {{ $led['Estimate_Detail_Unit_Price'] }} {{ $led['Estimate_Detail_Purchase_UofM'] }} {{ number_format($led['Estimate_Detail_Total_Price'],2) }} No data
Sub-Total {{ number_format($SubTotal, 2) }}  
{{ $Tax_Code . ' ' . number_format($Tax, 2) }} % {{ number_format($TotalTax, 2) }}  
Total {{ number_format($Total, 2) }}