@foreach($records as $value) @if(isset($value->product) && $value->product->item_code) @else @endif @if(isset($value->product) && $value->product->name) @else @endif @endforeach
Product Type Item Code Item Name Selling Unit Qty. Selling Price ($) Applicable From
{{$loop->iteration}} {{$value->product_type}} {{$value->product->item_code}} -{{$value->product->name}}-{{$value->selling_unit}} {{$value->estimate_qty}} {{$value->sale_price}} {{date("d-m-Y", strtotime($value->applicable_from))}}