@forelse($workorder as $key => $value) @php $woText = 'WO-' . $value->id . ' - '; if ($value->request_type == 'Asset Complaint') { $woText .= $value->asset->rfc . '(' . $value->asset->bar_code . ')--' . $value->work_department->name; } elseif ($value->request_type == 'Facility Complaint') { $woText .= 'Facility Complaint ' . $value->work_department->name; } elseif ($value->request_type == 'Facility Request') { $woText .= 'Facility Request ' . $value->work_department->name; } @endphp
{{ $woText }}-- Due Date:{{ @$value->work_due }} {{ @$value->work_status }} Category : {{ @$value->category }}
@empty
No WorkOrder
@endif