package view

import ()

templ BookingLines(bookings []*ListBookingsViewModel) {
	<tbody>
		for _, b := range bookings {
			<tr>
				<th scope="row">
					<a href={ b.Url }>
						{ b.Id }
					</a>
				</th>
				<td>
					<span
						if b.Canceled {
							class="line-through text-gray-500"
						}
					>
						{ b.Name }
					</span>
				</td>
				<td>{ b.Total }</td>
				<td>{ b.From }</td>
				<td>{ b.To }</td>
				<td>{ b.Platform }</td>
			</tr>
		}
	</tbody>
}
