Add Activation Status column to report. #248
This commit is contained in:
parent
ec17cd4c77
commit
c11393b69e
2 changed files with 4 additions and 1 deletions
|
|
@ -508,6 +508,7 @@ class ReportController extends Controller
|
||||||
'serial' => $warranty->getSerial(),
|
'serial' => $warranty->getSerial(),
|
||||||
'warr_date_create' => $warranty->getDateCreate()->format("d M Y"),
|
'warr_date_create' => $warranty->getDateCreate()->format("d M Y"),
|
||||||
'has_mobile' => $has_mobile,
|
'has_mobile' => $has_mobile,
|
||||||
|
'warr_activation_status' => $warranty->isActivated(),
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
<th>Plate Number</th>
|
<th>Plate Number</th>
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
<th>Warranty Create Date</th>
|
<th>Warranty Create Date</th>
|
||||||
|
<th>Activation Status</th>
|
||||||
<th>Has Mobile App? </th>
|
<th>Has Mobile App? </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -95,7 +96,8 @@
|
||||||
<td>{{ result.plate_num|default('') }}</td>
|
<td>{{ result.plate_num|default('') }}</td>
|
||||||
<td>{{ result.serial|default('') }}</td>
|
<td>{{ result.serial|default('') }}</td>
|
||||||
<td>{{ result.warr_date_create|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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue