-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (133 loc) · 5.71 KB
/
index.html
File metadata and controls
160 lines (133 loc) · 5.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="media.css">
<script src="vue.global.js"></script>
<title>Welcome!</title>
</head>
<body class="container p-xl-5 pt-2">
<div class="row">
<div class="col-12 text-center"><h1>Ticket Booking APP</h1></div>
<div class="col-xl-1"></div>
<div id="id" class="col-xl-9 mt-3 p-4 mx-auto">
<!-- top -->
<div class="d-flex">
<div class="ticket-top d-flex" v-for="(value,key) in selectedSeats">
<div class="btn btn-danger mt-2 px-4 me-2" :style="{backgroundColor: value.color}"></div>
<div class="me-3 pt-3"><h5>{{value.text}}</h5></div>
</div>
</div>
<!-- top -->
<div class="row mt-3">
<div class="col-md-6">
<div class="seatPlan p-3 ">
<div class="d-flex seat-top">
<div class="door mb-3"><h4>Door</h4></div>
<div class="driver mb-3"><h4>Driver</h4></div>
</div>
<div class="seats">
<div class="seat m-1 mb-3 ms-0"
:class="{'sold disable':seat.type === 'sold',
'booked disable':seat.type === 'booked',
'available':seat.type === 'available',
'selected':seat.type === 'selected',
'me-5':seat.margin === 'need',
'm-0 ':seat.margin === 'no',
}"
v-for="(seat,i) in seats" :key="seat.name" @click="hande(i)">
<h5>{{seat.name}}</h5>
</div>
</div>
</div>
</div>
<!-- ---------------------------------------------- -->
<div class="confirmed-dialog" v-if="confirmed">
<h3>Ticket confirmed!</h3>
<hr>
<br>
<table class="selected-seats">
<tr>
<th>Passenger Name</th>
<td>{{name}}</td>
<tr>
<th>Passenger Contact</th>
<td>{{mobile}}</td>
</tr>
<tr>
<th>Seats:</th>
<td>
<div v-for="(seat, i) in sseats" :key="seat.name">
<div>
{{seat.name}}
</div>
</div>
</td>
</tr>
<tr>
<th>Total Cost</th>
<td>Tk. {{totalCost}}</td>
</tr>
</table>
<br>
<button
class="confirm-button"
@click="resetData"
>
Book Again
</button>
</div>
<!-- ---------------------------------------------- -->
<div class="col-md-6">
<div class="validation">
<div class="f-form" v-if="sseats.length === 0">
<h3>SELECT SEATS</h3>
</div>
<div class="s-form" v-else>
<h3>Selected Seats:</h3>
<table class="table text-center table-bordered" style="background-color: antiquewhite;">
<tr>
<td><h6>Seats</h6></td>
<td><h6>Price</h6></td>
</tr>
<tr v-for="(seat,i) in sseats" :key="seat.name">
<td><h6>{{seat.name}}</h6></td>
<td><h6>{{seat.price}} TK</h6></td>
</tr>
<tr v-if="appliedCupon != null">
<td><h6>Discount:</h6></td>
<td><h6>- {{appliedCupon.discount}} Tk</h6></td>
</tr>
<tr>
<td><h6>Total Cost:</h6></td>
<td><h6>{{totalCost}} Tk</h6></td>
</tr>
</table>
<div class="cupon d-xl-flex" v-if="appliedCupon === null">
<h6 class="mt-2 me-1">Have a Cupon?</h6><input type="text" v-model="cuponCode" class="form-control" placeholder="Enter your Cupon!" >
</div>
<div class="cupon d-flex" v-else>
<h6 class="mt-2 me-1">Applied Cupon: {{appliedCupon.code}}</h6>
</div>
<div class="footer text-center p-xl-5 pt-3">
<input class="form-control w-100 " type="text" placeholder="Enter your name" v-model="name">
<input class="form-control mt-2 w-100 " type="text" placeholder="Enter your number" v-model="mobile">
<div class="div">
<div class="btn btn-success mt-2 w-75" @click="confirm">Confirm</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>
<script src="custom.js"></script>
</body>
</html>