@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 --}}