import { DatePipe, NgIf } from '@angular/common';
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { MatDividerModule } from '@angular/material/divider';
import { MatIconModule } from '@angular/material/icon';
import { MatTabsModule } from '@angular/material/tabs';
import { Tour } from '../../../core/data-access/graphql/generated/generated';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-tour-overview',
template: `
Startzeit
{{ tour.startDate | date : 'dd.MM.yyyy' }}
{{ tour.startDate | date : 'HH:mm' }} Uhr
Erstellt am
{{ tour.createdAt | date : 'dd.MM.yyyy' }}
{{ tour.createdAt | date : 'HH:mm' }} Uhr
Fahrzeug
{{ tour.carName }}
Fahrer
{{ tour.driverName }}
Beifahrer
{{ tour.codriverName }}
Patient
{{ tour.patientName }} {{ tour.patientSurname }}
{{ tour.patientStreet }}
{{ tour.patientZip }} {{ tour.patientCity }}
Start
{{ tour.startInstitution }}
{{ tour.startStreet }}
{{ tour.startZip }} {{ tour.startCity }}
Ziel
{{ tour.targetInstitution }}
{{ tour.targetStreet }}
{{ tour.targetZip }} {{ tour.targetCity }}
`,
styles: [],
imports: [MatTabsModule, MatIconModule, MatDividerModule, NgIf, DatePipe]
})
export class AccountingTourOverviewComponent {
@Input() tour!: Tour;
}