Add Activation Status column to report. #248

This commit is contained in:
Korina Cordero 2019-08-09 08:01:23 +00:00
parent ec17cd4c77
commit c11393b69e
2 changed files with 4 additions and 1 deletions

View file

@ -508,6 +508,7 @@ class ReportController extends Controller
'serial' => $warranty->getSerial(),
'warr_date_create' => $warranty->getDateCreate()->format("d M Y"),
'has_mobile' => $has_mobile,
'warr_activation_status' => $warranty->isActivated(),
];
}

View file

@ -83,6 +83,7 @@
<th>Plate Number</th>
<th>Serial</th>
<th>Warranty Create Date</th>
<th>Activation Status</th>
<th>Has Mobile App? </th>
</tr>
</thead>
@ -95,7 +96,8 @@
<td>{{ result.plate_num|default('') }}</td>
<td>{{ result.serial|default('') }}</td>
<td>{{ result.warr_date_create|default('') }}</td>
<td>{{ result.has_mobile ? Yes : 'No' }} </td>
<td>{{ result.warr_activation_status ? 'Active' : 'Inactive' }}</td>
<td>{{ result.has_mobile ? 'Yes' : 'No' }} </td>
</tr>
{% endfor %}
</tbody>