{{template "base" .}}
{{define "content"}}
{{$res := index .Data "reservation"}}
<div class="container">
    <div class="row">
        <div class="col mt-5">
            <h1>Reservation Summary</h1>

            <hr>

            <table class="table table-striped">
                <thead></thead>
                <tbody>
                    <tr>
                        <td>Name: </td>
                        <td>{{$res.LastName}} {{$res.FirstName}}</td>
                    </tr>
                    <tr>
                        <td>Room: </td>
                        <td>{{$res.Room.RoomName}}</td>
                    </tr>
                    <tr>
                        <td>Arrival: </td>
                        <td>{{index .StringMap "start_date"}}</td>
                    </tr>
                    <tr>
                        <td>Departure: </td>
                        <td>{{index .StringMap "end_date"}}</td>
                    </tr>
                    <tr>
                        <td>Email: </td>
                        <td>{{$res.Email}}</td>
                    </tr>
                    <tr>
                        <td>Phone: </td>
                        <td>{{$res.Phone}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
{{end}}
