This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Types } from "mongoose"; | |
import { IMovie } from "../modules/movie/movie.interface"; | |
import { IShow } from "../modules/show/show.interface"; | |
import { ITheatre } from "../modules/theater/theater.interface"; | |
type GroupedShow = { | |
movie: Types.ObjectId | IMovie; | |
theater: { | |
theaterDetails: Types.ObjectId | ITheatre; | |
shows: Array<{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// INVOICE COMPONENT | |
import React, { useRef } from "react"; | |
import { motion } from "framer-motion"; | |
import { FaCheck } from "react-icons/fa6"; | |
const Invoice = ({ orderInfo, setShowInvoice }) => { | |
const invoiceRef = useRef(null); | |
const handlePrint = () => { | |
const printContent = invoiceRef.current.innerHTML; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BACKEND | |
// CREATE ORDER /api/payment/create-order | |
// Initialize Razorpay | |
const razorpay = new Razorpay({ | |
key_id: config.razorpayKeyId, | |
key_secret: config.razorpaySecretKey, | |
}); | |
try { | |
const { amount } = req.body; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// METRICS | |
import React from "react"; | |
import { itemsData, metricsData } from "../../constants"; | |
const Metrics = () => { | |
return ( | |
<div className="container mx-auto py-2 px-6 md:px-4"> | |
<div className="flex justify-between items-center"> | |
<div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import butterChicken from '../assets/images/butter-chicken-4.jpg'; | |
import palakPaneer from '../assets/images/Saag-Paneer-1.jpg'; | |
import biryani from '../assets/images/hyderabadibiryani.jpg'; | |
import masalaDosa from '../assets/images/masala-dosa.jpg'; | |
import choleBhature from '../assets/images/chole-bhature.jpg'; | |
import rajmaChawal from '../assets/images/rajma-chawal-1.jpg'; | |
import paneerTikka from '../assets/images/paneer-tika.webp'; | |
import gulabJamun from '../assets/images/gulab-jamun.webp'; | |
import pooriSabji from '../assets/images/poori-sabji.webp'; | |
import roganJosh from '../assets/images/rogan-josh.jpg'; |