created booking page for admin and updated invoice page
This commit is contained in:
parent
265bdd411a
commit
1b16d2db0a
4 changed files with 41 additions and 15 deletions
|
@ -80,7 +80,7 @@
|
||||||
<div class="card bg-dark text-white">
|
<div class="card bg-dark text-white">
|
||||||
<img src="$path$row[image]" class="card-img" style="width: 100%; height: 230px; object-fit: cover;">
|
<img src="$path$row[image]" class="card-img" style="width: 100%; height: 230px; object-fit: cover;">
|
||||||
<div class="card-img-overlay text-end">
|
<div class="card-img-overlay text-end">
|
||||||
<button type="button" onclick="remove_member($row[sr_no])" class="btn-cancle"><i class='bx bxs-trash' ></i></button>
|
<button type="button" onclick="remove_member($row[sr_no])" class="btn-cancel"><i class='bx bxs-trash' ></i></button>
|
||||||
</div>
|
</div>
|
||||||
<p class="card-text text-center">$row[name]</p>
|
<p class="card-text text-center">$row[name]</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,6 +19,19 @@
|
||||||
<li class="nav-item" id="dashboard">
|
<li class="nav-item" id="dashboard">
|
||||||
<a class="nav-link text-white" href="dashboard.php">Dashboard</a>
|
<a class="nav-link text-white" href="dashboard.php">Dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item" id="booking">
|
||||||
|
<button class="btn shadow-none text-white w-100 text-start d-flex justify-content-between" type="button" data-bs-toggle="collapse" data-bs-target="#bookings">
|
||||||
|
<span>Bookings</span>
|
||||||
|
<span><i class='bx bx-chevron-down'></i></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse px-3 show" id="bookings">
|
||||||
|
<ul class="nav nav-pills flex-column">
|
||||||
|
<li class="nav-item" id="new_booking">
|
||||||
|
<a class="nav-link text-white" href="new_booking.php">New Booking</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<li class="nav-item" id="users">
|
<li class="nav-item" id="users">
|
||||||
<a class="nav-link text-white" href="users.php">Users</a>
|
<a class="nav-link text-white" href="users.php">Users</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -292,9 +292,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -97,17 +97,33 @@
|
||||||
<p>accombooking@midtownhotel.com</p>
|
<p>accombooking@midtownhotel.com</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
$booking_q = mysqli_query($con, "SELECT bo.*, bd.* FROM `booking_order` bo INNER JOIN `booking_detail` bd ON bo.booking_id = bd.booking_id WHERE bo.booking_status = 'pending'");
|
||||||
|
while($data = mysqli_fetch_assoc($booking_q)){
|
||||||
|
$date = date("M-d-Y", strtotime($data['datentime']));
|
||||||
|
$checkin = date("M-d-Y", strtotime($data['check_in']));
|
||||||
|
$checkout = date("M-d-Y", strtotime($data['check_out']));
|
||||||
|
$order_id = $data['order_id'];
|
||||||
|
$customer_name = $data['user_name'];
|
||||||
|
$customer_last = $data['user_lastname'];
|
||||||
|
$customer_address = $data['address'];
|
||||||
|
$customer_phone = $data['phone'];
|
||||||
|
$room_price = $data['price'];
|
||||||
|
$room_detail = $data['room_name'];
|
||||||
|
$total_pay = $data['total_pay'];
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="card-header-bottom" style="margin-top: 25px;">
|
<div class="card-header-bottom" style="margin-top: 25px;">
|
||||||
<div class="card-header-bottom-left text-start">
|
<div class="card-header-bottom-left text-start">
|
||||||
<p style="font-weight: 600;">Bill to:</p>
|
<p style="font-weight: 600;">Bill to:</p>
|
||||||
<p>First name <span>Last name</span></p>
|
<p style="text-transform: capitalize;"><?php echo $customer_name ?> <span><?php echo $customer_last ?></span></p>
|
||||||
<p>Address</p>
|
<p><?php echo $customer_address ?></p>
|
||||||
<p>Phone</p>
|
<p><?php echo $customer_phone ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-header-right text-start">
|
<div class="card-header-right text-start">
|
||||||
<p>Order ID: </p>
|
<p><b>Order ID:</b> <?php echo $order_id ?></p>
|
||||||
<p>Invoice date: </p>
|
<p><b>Invoice date:</b> <?php echo $date ?></p>
|
||||||
<p>Due date: </p>
|
<p><b>Due date:</b> <?php echo $checkin ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -123,16 +139,16 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="text-start text-subtitle">
|
<tr class="text-start text-subtitle">
|
||||||
<td>room detail room detail room detail room detail</td>
|
<td><?php echo $room_detail?></td>
|
||||||
<td>Check-in</td>
|
<td><?php echo $checkin?></td>
|
||||||
<td>Check-out</td>
|
<td><?php echo $checkout?></td>
|
||||||
<td>price</td>
|
<td>$<?php echo $room_price?>/night</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-summary text-end" style="margin: 20px;">
|
<div class="card-summary text-end" style="margin: 20px;">
|
||||||
<p>Total: $</p>
|
<p>Total: $<?php echo $total_pay?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<p><span style="color: red;">*</span> Please pay the invoice before checking-in to the room. You can pay the invoice by bringing this invoice to make a payment at the hotel reception desk. <span style="color: red;">*</span></p>
|
<p><span style="color: red;">*</span> Please pay the invoice before checking-in to the room. You can pay the invoice by bringing this invoice to make a payment at the hotel reception desk. <span style="color: red;">*</span></p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue