diff --git a/Layout/default/TimerecordingCar/Detail.php b/Layout/default/TimerecordingCar/Detail.php index 411966afc..85f6974e4 100644 --- a/Layout/default/TimerecordingCar/Detail.php +++ b/Layout/default/TimerecordingCar/Detail.php @@ -14,7 +14,13 @@ if ($firstApproval < time()) { } $approval = date("m/Y", $firstApproval); $cartypes = TimerecordingCarModel::$carTypes; - +if ($timerecordingcar->mileage_now && $timerecordingcar->mileage_timestamp) { + $mileagetimestamp = "(" . date("d.m.Y", $timerecordingcar->mileage_timestamp) . ")"; +} elseif ($timerecordingcar->mileage_now) { + $mileagetimestamp = "(" . date("d.m.Y", $timerecordingcar->edit) . ")"; +} else { + $mileagetimestamp = ""; +} ?> @@ -24,6 +30,15 @@ $cartypes = TimerecordingCarModel::$carTypes; table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) { padding-right: 10px; } + + .show-milage-history { + cursor: pointer; + } + .fa-duotone.fa-clock-rotate-left:after, .fa-duotone.fa-history:after, .fad.fa-clock-rotate-left:after, .fad.fa-history:after { + content: "\f1da\f1da"; + color: #218200; + opacity: 0.7; + }
| Fahrtenbuch | -= ($timerecordingcar->timerecording) ? "Ja" : "Nein" ?> | +Serviceintervall | += ($timerecordingcar->service_interval) ?: "-" ?> |
|---|---|---|---|
| Erstzulassung | -= ($timerecordingcar->initial_approval) ? date("m/Y", $timerecordingcar->initial_approval) : "-" ?> | +Sommerreifen | += ($timerecordingcar->summer_tires) ?: "-" ?> |
| §57a Korrektur | -= ($timerecordingcar->initial_approval) ? date("m/Y", $timerecordingcar->override_approval) : "-" ?> | -||
| Nächste $57a | -= ($timerecordingcar->initial_approval) ? $approval : "-" ?> | +Winterreifen | += ($timerecordingcar->winter_tires) ?: "-" ?> |
| Reifen engelagert | += ($timerecordingcar->tires_at) ?: "-" ?> | +||
| Motoröl | += ($timerecordingcar->oil_type) ?: "-" ?> | +||
| Werkstätte | += ($timerecordingcar->service_station) ?: "-" ?> | +||
| Kilometerstand | -= ($timerecordingcar->mileage_now) ? $timerecordingcar->mileage_now . " KM" : "-" ?> | += ($timerecordingcar->mileage_now) ? $timerecordingcar->mileage_now . " KM" : "-" ?> = $mileagetimestamp ?> = ($timeRecordingCarMileageHistory) ? ' ' : '' ?> | |
| + | = $timeRecordingCarMileagehistory->mileage ?> KM + (= date("d.m.Y", $timeRecordingCarMileagehistory->mileage_timestamp) ?> + ) + | +