initial_approval); $initialApprovalMonth = date("m", $timerecordingcar->initial_approval); if ($timerecordingcar->override_approval) { $overrideApproval = date("Y-m-d H:i:s", $timerecordingcar->override_approval); $initialApprovalMonth = date("m", $timerecordingcar->override_approval); } $firstApproval = strtotime('+' . $timerecordingcar->first_approval . 'years', strtotime($initialApproval)); if ($firstApproval < time()) { $firstApproval = strtotime(date("Y-$initialApprovalMonth-01", time())); if ($firstApproval < time()) { $firstApproval = strtotime(date("Y-$initialApprovalMonth-01", strtotime('+1 year'))); } } $approval = date("m/Y", $firstApproval); $cartypes = TimerecordingCarModel::$carTypes; ?>
| Fahrzeugtyp | = $cartypes[$timerecordingcar->type] ?> |
|---|---|
| Marke | = $timerecordingcar->brand ?> |
| Model/Typ | = $timerecordingcar->model ?> |
| Erste §57a nach | = ($timerecordingcar->first_approval) ? $timerecordingcar->first_approval . " Jahr(en)" : "-" ?> |
| Fahrzeugverwalter | = ($timerecordingcar->user_id) ? $timerecordingcar->user->name : "-" ?> |
| Fahrtenbuch | = ($timerecordingcar->timerecording) ? "Ja" : "Nein" ?> |
|---|---|
| Erstzulassung | = ($timerecordingcar->initial_approval) ? date("m/Y", $timerecordingcar->initial_approval) : "-" ?> |
| §57a Korrektur | = ($timerecordingcar->initial_approval) ? date("m/Y", $timerecordingcar->override_approval) : "-" ?> |
| Nächste $57a | = ($timerecordingcar->initial_approval) ? $approval : "-" ?> |
| Kilometerstand | = ($timerecordingcar->mileage_now) ? $timerecordingcar->mileage_now . " KM" : "-" ?> |
| Startkilometer | Endkilometer | Kilometer | Fahrer | Datum | Zeit | Ort | |
|---|---|---|---|---|---|---|---|
| = $timerecording->mileage_start ?> KM | = $timerecording->mileage_end ?> KM | = $timerecording->mileage_end - $timerecording->mileage_start ?> KM | = $timerecording->user->name ?> | = date("d.m.Y", $timerecording->start) ?> | = date("H:i", $timerecording->start) . " - " . date("H:i", $timerecording->end) ?> | = $timerecording->businesstrip_info ?> | $timerecordingcar->id]) ?> $timerecordingcar->id]) ?> |