-
+
diff --git a/client/src/helpers/Admin_Booking_Data.jsx b/client/src/helpers/Admin_Booking_Data.jsx
index 933b7e6..1cec7fb 100644
--- a/client/src/helpers/Admin_Booking_Data.jsx
+++ b/client/src/helpers/Admin_Booking_Data.jsx
@@ -1,74 +1,32 @@
const Admin_Booking_Data = [
{
- user: "u_name01",
- movie: "Avatar",
+ user: "Amith",
+ movie: "Wonka",
date: "2024-01-01",
time: "08.00pm",
seats: "12,13,14",
},
{
- user: "u_name02",
- movie: "Batman",
- date: "2024-02-01",
- time: "05.00pm",
- seats: "1,2",
- },
- {
- user: "u_name03",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "18,19",
- },
- {
- user: "u_name04",
- movie: "Avatar",
+ user: "Dushan",
+ movie: "Leo",
date: "2024-01-01",
time: "08.00pm",
seats: "30,31",
},
{
- user: "u_name05",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "24,25",
- },
- {
- user: "u_name06",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "7,8",
- },
- {
- user: "u_name07",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "5",
- },
- {
- user: "u_name08",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "13",
- },
- {
- user: "u_name09",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "9,10,11,12,15",
+ user: "Ashan",
+ movie: "Kathuru Mithuru",
+ date: "2024-02-01",
+ time: "05.00pm",
+ seats: "1,2",
},
{
- user: "u_name10",
- movie: "Avatar",
- date: "2024-01-01",
- time: "08.00pm",
- seats: "20,21",
- },
+ user: "Dushan",
+ movie: "Pathaan",
+ date: "2024-07-01",
+ time: "05.00pm",
+ seats: "18,19",
+ }
];
-export default Admin_Booking_Data;
+export default Admin_Booking_Data;
\ No newline at end of file
diff --git a/client/src/pages/Admin/Admin_Edit_UpcomingMovies.jsx b/client/src/pages/Admin/Admin_Edit_UpcomingMovies.jsx
index b118b56..07ca9dd 100644
--- a/client/src/pages/Admin/Admin_Edit_UpcomingMovies.jsx
+++ b/client/src/pages/Admin/Admin_Edit_UpcomingMovies.jsx
@@ -1,9 +1,195 @@
-function Admin_Edit_Upcoming() {
+import Data from "./Movie_Data_Upcoming.json";
+import React, { useState } from "react";
+import { useNavigate } from "react-router-dom";
+
+const Admin_Edit_Upcoming = () => {
+ const navigate = useNavigate();
+
+ const [movieName, setMovieName] = useState("");
+ const [movieCategory, setMovieCategory] = useState("");
+ const [cast, setCast] = useState("");
+ const [movieDetails, setMovieDetails] = useState("");
+ const [bannerImage, setBannerImage] = useState(null);
+ const [videoLink, setVideoLink] = useState("");
+ const [odcPrice, setODCPrice] = useState("");
+ const [boxPrice, setBoxPrice] = useState("");
+
+ const handleInputChange = (e) => {
+ setMovieName(e.target.value);
+ };
+
+ const handleCategoryChange = (e) => {
+ setMovieCategory(e.target.value);
+ };
+
+ const handleCastChange = (e) => {
+ setCast(e.target.value);
+ };
+
+ const handleMovieDetailsChange = (e) => {
+ setMovieDetails(e.target.value);
+ };
+
+ const handleBannerImageChange = (e) => {
+ const file = e.target.files[0];
+ setBannerImage(file);
+ };
+
+ const handleVideoLinkChange = (e) => {
+ setVideoLink(e.target.value);
+ };
+
+ const handleODCPriceChange = (e) => {
+ setODCPrice(e.target.value);
+ };
+
+ const handleBoxPriceChange = (e) => {
+ setBoxPrice(e.target.value);
+ };
+
+ const handleSubmit = (e) => {
+ e.preventDefault();
+ // after submission
+ console.log("Submitted data:", {
+ movieName,
+ movieCategory,
+ cast,
+ movieDetails,
+ bannerImage,
+ videoLink,
+ odcPrice,
+ boxPrice,
+ });
+ };
+
+ const handleCancel = () => {
+ // After Cancel
+
+ console.log("Form Cancelled");
+ };
+
return (
-
-
Upcoming Edit
+
+
Add Upcoming Movie
+ {Data.map((items) => (
+
+ ))}
);
-}
+};
-export default Admin_Edit_Upcoming;
\ No newline at end of file
+export default Admin_Edit_Upcoming;
diff --git a/client/src/pages/Admin/Movie_Data.json b/client/src/pages/Admin/Movie_Data.json
index 1f97555..316186a 100644
--- a/client/src/pages/Admin/Movie_Data.json
+++ b/client/src/pages/Admin/Movie_Data.json
@@ -1,13 +1,13 @@
[
{
"id": "1",
- "title": "Avatar",
+ "title": "Wonka",
"category": "ActionAdventure",
- "cast":"Sam Worthington, Zoe Saldana, Sigourney Weaver",
- "moviedetails":"Jake Sully (Sam Worthington), a paralyzed former Marine, becomes mobile again through one such Avatar and falls in love with a Na'vi woman (Zoe Saldana). As a bond with her grows, he is drawn into a battle for the survival of her world. Content collapsed.",
- "image":"../assets/Avatar.jpg",
+ "cast":"Timothée Chalamet, Keegan-Michael Key, Paterson Joseph, Matt Lucas, Mathew Baynton",
+ "moviedetails":"The analysis shows that Willy Wonka is innovative, flamboyant, stubborn, arrogant, and authoritarian. He loves to be the center of attention by putting on outrageous attire. He cannot stand questions and considers them as criticisms or threat. He always brags the products he creates to his guests.",
+ "image":"../assets/movies/premiering/wonka.jpg",
"link":"link",
- "odc": "5000",
- "box": "2000"
- }
+ "odc":"5000",
+ "box":"2000"
+}
]
\ No newline at end of file
diff --git a/client/src/pages/Admin/Movie_Data_Upcoming.json b/client/src/pages/Admin/Movie_Data_Upcoming.json
new file mode 100644
index 0000000..88d66d6
--- /dev/null
+++ b/client/src/pages/Admin/Movie_Data_Upcoming.json
@@ -0,0 +1,13 @@
+[
+ {
+ "id": "1",
+ "title": "Hanuman 2024",
+ "category": "ActionAdventure",
+ "cast":"Teja Sajja, Amritha Aiyer, Varalaxmi Sarathkumar",
+ "moviedetails":"Hanu Man is an upcoming Indian Telugu-language superhero film written and directed by Prasanth Varma and produced by Niranjan Reddy Kandagatla under Primeshow Entertainment.",
+ "image":"../assets/Hanuman.jpg",
+ "link":"link",
+ "odc": "5000",
+ "box": "2000"
+ }
+]
\ No newline at end of file
diff --git a/client/src/pages/Profile/Booking.json b/client/src/pages/Profile/Booking.json
index 87eaa19..43d0e24 100644
--- a/client/src/pages/Profile/Booking.json
+++ b/client/src/pages/Profile/Booking.json
@@ -2,7 +2,7 @@
{
"id": "1",
"user": "Ashan",
- "movie": "Transformers",
+ "movie": "Wonka",
"date": "2024-01-07, 10:00 AM",
"category": "ODC",
"seats": "A1,A2,A3,A4"
@@ -22,29 +22,5 @@
"date": "2023-12-27, 11:00 AM",
"category": "BOX",
"seats": "C1, D1"
- },
- {
- "id": "4",
- "user": "Amith",
- "movie": "Black Adam",
- "date": "2023-12-27, 11:00 AM",
- "category": "BOX",
- "seats": "C1, D1"
- },
- {
- "id": "5",
- "user": "Amith",
- "movie": "Black Adam",
- "date": "2023-12-27, 11:00 AM",
- "category": "BOX",
- "seats": "C1, D1"
- },
- {
- "id": "6",
- "user": "Amith",
- "movie": "Black Adam",
- "date": "2023-12-27, 11:00 AM",
- "category": "BOX",
- "seats": "C1, D1"
}
]
\ No newline at end of file
diff --git a/client/src/pages/Profile/BookingHistory.jsx b/client/src/pages/Profile/BookingHistory.jsx
index 7e87425..8762c37 100644
--- a/client/src/pages/Profile/BookingHistory.jsx
+++ b/client/src/pages/Profile/BookingHistory.jsx
@@ -9,19 +9,17 @@ function Profile() {
Booking History
- User |
Movie |
Date/Time |
- Categary |
Seats |
{
Booking.map((item) => (
- {item.user} |
+
{item.movie} |
{item.date} |
- {item.category} |
+
{item.seats} |
))