{{define "patients"}} {{if not .Patients}}

Belum ada data pasien pada tanggal ini.

{{else}}
{{range .Patients}} {{if and (gt .DoneCount 0) (eq .DoneCount (len .Stations))}}
{{else}}
{{end}}
{{.Name | initials}}

{{.Name}}

{{if $.IsRange}}

{{.Date | fmtDate}}

{{end}}
Masuk: {{.InTime}} {{if .HasOut}} Keluar: {{.OutTime}} {{else}} Dalam proses {{end}} {{.DoneCount}}/{{len .Stations}} station selesai
{{if .Stations}}
{{range .Stations}} {{if .Done}} {{.Station}} Proses: {{if .ProcessAt}}{{.ProcessAt}}{{else}}-{{end}} | Selesai: {{if .DoneAt}}{{.DoneAt}}{{else}}-{{end}} {{else}} {{.Station}} Proses: {{if .ProcessAt}}{{.ProcessAt}}{{else}}-{{end}} | Selesai: {{if .DoneAt}}{{.DoneAt}}{{else}}-{{end}} {{end}} {{end}}
{{end}}
{{end}}
{{end}} {{end}}