@if($reportData->count() > 0) @php $i = 1; // $type_of_customer = ['Distributor', 'Franchise', 'Direct Party', 'Private Labelling', 'Export', 'Other']; @endphp {{-- {{dd($reportData);}} --}} @foreach($reportData as $row) {{-- @php $tc = '-'; $production_status = ''; if (!empty($type_of_customer[$row->type_of_customer - 1])) { $tc = $type_of_customer[$row->type_of_customer - 1]; } if ($row->production_status == '1') { $production_status = 'Completed'; } else { $production_status = 'Pending'; } @endphp --}} {{ $i }} {{ $row->product_name }} {{ $row->pending_qty }} {{-- {{ date('d M Y', strtotime($row->order_date)) }} {{ $production_status }} {{ (!empty($row->production_date)) ? date('d M Y', strtotime($row->production_date)) : '-' }} - {{ $row->tax_invoice_no }} {{ number_format($row->tax_invoice_value, 2) }} - --}} @php $i++; @endphp @endforeach @else No records found. @endif