diff --git a/app/app/lib/lang.tsx b/app/app/lib/lang.tsx new file mode 100644 index 0000000..3df7056 --- /dev/null +++ b/app/app/lib/lang.tsx @@ -0,0 +1,213 @@ +import { + createContext, + useCallback, + useContext, + useEffect, + useMemo, + useState, +} from "react"; + +/** + * ระบบสองภาษา ไทย/อังกฤษ สำหรับหน้าใหม่ (/, /cinema/:slug) + * ------------------------------------------------------------ + * ★ แยกไฟล์จาก lib/i18n.tsx เดิม (ซึ่งหน้า /single ใช้อยู่) — ไม่ชนกัน + * ★ เก็บภาษาที่เลือกใน localStorage ("alterflix_lang") → จำข้ามหน้า + * ★ ตั้ง ให้ถูกต้อง (a11y + SEO) + * ★ ข้อมูลจาก JSON (ชื่อโรง/คำอธิบาย) เป็นเนื้อหา ไม่แปล — แปลเฉพาะ UI + * ★ หมวดหนังเก็บเป็นข้อความไทยใน JSON → แปลงป้ายด้วย categoryLabel() + */ + +export type Lang = "th" | "en"; + +type Dict = Record; + +const DICT: Dict = { + "nav.manage": { th: "จัดการข้อมูล", en: "Manage" }, + "nav.lang": { th: "ภาษา", en: "Language" }, + + "home.heroA": { th: "ค้นพบ", en: "Discover" }, + "home.heroB": { th: "โรงหนังอิสระ", en: "indie cinemas" }, + "home.heroC": { th: "ใกล้คุณ", en: "near you" }, + "home.lead": { + th: "ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง", + en: "Find independent cinemas — a different way to watch films", + }, + "home.searchPlaceholder": { + th: "ค้นหาชื่อโรงหนังหรือสถานที่ / จังหวัด / ประเภทหนัง", + en: "Search cinema, area, province or genre", + }, + "home.nearMe": { th: "ใกล้ฉัน", en: "Near me" }, + "home.searchButton": { th: "ค้นหา", en: "Search" }, + "home.listTitle": { th: "รายชื่อโรงหนังอิสระ", en: "Independent cinemas" }, + "home.count": { th: "{n} โรง", en: "{n} cinemas" }, + "home.empty": { + th: "ยังไม่มีโรงหนังในหมวดนี้", + en: "No cinemas in this genre yet", + }, + "home.more": { th: "แสดงเพิ่ม", en: "Show more" }, + "home.cardDetail": { th: "ดูรายละเอียด", en: "Details" }, + + "detail.back": { th: "ย้อนกลับ", en: "Back" }, + "detail.map": { th: "เปิด Google map", en: "Open Google map" }, + "detail.contactTitle": { + th: "สอบถามข้อมูลและจองตั๋ว", + en: "Contact & tickets", + }, + "detail.contactEmpty": { + th: "ยังไม่มีช่องทางติดต่อของโรงนี้", + en: "No contact channels yet", + }, + "detail.payment": { th: "ชำระเงิน", en: "Payment" }, + "detail.schedule": { th: "ดูรอบฉาย", en: "Showtimes" }, + "detail.facilities": { th: "สิ่งอำนวยความสะดวก", en: "Facilities" }, + "detail.facilitiesEmpty": { + th: "ยังไม่มีข้อมูลสิ่งอำนวยความสะดวก", + en: "No facility information yet", + }, + "detail.location": { th: "ที่ตั้ง", en: "Location" }, + "detail.others": { th: "โรงหนังอิสระอื่นๆ", en: "Other indie cinemas" }, + "detail.hidden": { th: "ซ่อนจากหน้าแรก", en: "Hidden from home" }, + "detail.noDescription": { + th: "ยังไม่มีข้อมูลรายละเอียดของโรงหนังนี้ — อยู่ระหว่างรวบรวมข้อมูล", + en: "No description yet for this cinema", + }, + "detail.notFoundTitle": { th: "ไม่พบโรงหนังที่ค้นหา", en: "Cinema not found" }, + "detail.notFoundLead": { + th: "ลิงก์อาจเปลี่ยนไปแล้ว หรือโรงนี้ยังไม่มีในระบบ", + en: "The link may have changed, or this cinema is not in the system", + }, + "detail.notFoundBack": { + th: "กลับไปหน้ารายชื่อโรงหนัง", + en: "Back to the cinema list", + }, + + "a11y.prevPhoto": { th: "รูปก่อนหน้า", en: "Previous photo" }, + "a11y.nextPhoto": { th: "รูปถัดไป", en: "Next photo" }, + "a11y.switchLang": { th: "เปลี่ยนภาษา", en: "Switch language" }, +}; + +/** แปลงชื่อหมวด (ข้อความไทยใน JSON) → ป้ายตามภาษา */ +const CATEGORY_EN: Record = { + ทั้งหมด: "All", + ยอดนิยม: "Popular", + อาร์ตเฮาส์: "Art house", + สารคดี: "Documentary", + หนังสั้น: "Short films", + หนังคลาสสิก: "Classics", + หนังนานาชาติ: "International", + หนังนอกกระแส: "Offbeat", + หนังในกระแส: "Mainstream", + หนังฝรั่งเศส: "French cinema", +}; + +/** ป้ายชื่อช่องทางติดต่อ (JSON เก็บเป็นอังกฤษ) */ +const CONTACT_LABEL_TH: Record = { + Website: "เว็บไซต์", + "Mobile Application": "แอปพลิเคชัน", + Facebook: "เฟซบุ๊ก", + Instagram: "อินสตาแกรม", + Line: "ไลน์", + Email: "อีเมล", + Call: "โทร", +}; + +type LangContextValue = { + lang: Lang; + setLang: (lang: Lang) => void; + t: (key: string, vars?: Record) => string; + categoryLabel: (value: string) => string; + contactLabel: (value: string) => string; +}; + +const LangContext = createContext(null); + +const STORAGE_KEY = "alterflix_lang"; + +export function LangProvider({ children }: { children: React.ReactNode }) { + const [lang, setLangState] = useState("th"); + + /* อ่านค่าที่เคยเลือกหลัง mount (กัน SSR/CSR ไม่ตรงกัน) */ + useEffect(() => { + try { + const stored = window.localStorage.getItem(STORAGE_KEY); + if (stored === "th" || stored === "en") setLangState(stored); + } catch { + /* storage ถูกบล็อก — ใช้ค่าเริ่มต้น */ + } + }, []); + + useEffect(() => { + document.documentElement.lang = lang; + try { + window.localStorage.setItem(STORAGE_KEY, lang); + } catch { + /* ignore */ + } + }, [lang]); + + const setLang = useCallback((next: Lang) => setLangState(next), []); + + const t = useCallback( + (key: string, vars?: Record) => { + const entry = DICT[key]; + let text = entry ? entry[lang] : key; + if (vars) { + for (const [name, value] of Object.entries(vars)) { + text = text.replace(`{${name}}`, String(value)); + } + } + return text; + }, + [lang], + ); + + const categoryLabel = useCallback( + (value: string) => (lang === "en" ? (CATEGORY_EN[value] ?? value) : value), + [lang], + ); + + const contactLabel = useCallback( + (value: string) => (lang === "th" ? (CONTACT_LABEL_TH[value] ?? value) : value), + [lang], + ); + + const value = useMemo( + () => ({ lang, setLang, t, categoryLabel, contactLabel }), + [lang, setLang, t, categoryLabel, contactLabel], + ); + + return {children}; +} + +export function useLang(): LangContextValue { + const context = useContext(LangContext); + if (!context) throw new Error("useLang ต้องใช้ภายใน "); + return context; +} + +/** ปุ่มสลับภาษา ไทย/อังกฤษ */ +export function LangSwitch({ className = "" }: { className?: string }) { + const { lang, setLang, t } = useLang(); + + return ( + + ); +} diff --git a/app/app/lib/links.ts b/app/app/lib/links.ts new file mode 100644 index 0000000..82782bc --- /dev/null +++ b/app/app/lib/links.ts @@ -0,0 +1,43 @@ +/** + * แปลงค่าช่องทางติดต่อ → ลิงก์ที่กดใช้ได้ + * ------------------------------------------------------------ + * ★ เบอร์โทร → tel: (กดโทรจากมือถือได้) + * ★ เว็บไซต์/โดเมน → https://… เปิดแท็บใหม่ + * ★ ค่าที่ไม่ใช่ทั้งสองอย่าง (เช่น ชื่อเพจ) → คืน null (แสดงเป็นข้อความ) + */ +export type ContactLink = { href: string; external: boolean } | null; + +const PHONE_LIKE = /^[+()\d][\d\s()+.-]{5,}$/; +const DOMAIN_LIKE = /^[\w-]+(\.[\w-]+)+(\/\S*)?$/; +const HAS_SCHEME = /^[a-z][a-z0-9+.-]*:\/\//i; + +/** เบอร์โทร → tel: (ตัดช่องว่างและขีดออก ให้ถูกฟอร์แมต) */ +export function telHref(value: string): string | null { + const trimmed = value.trim(); + if (!PHONE_LIKE.test(trimmed)) return null; + const digits = trimmed.replace(/[^\d+]/g, ""); + if (digits.replace(/\D/g, "").length < 6) return null; + return `tel:${digits}`; +} + +/** เว็บไซต์ → URL เต็ม */ +export function websiteHref(value: string): string | null { + const trimmed = value.trim(); + if (!trimmed || /\s/.test(trimmed)) return null; + if (HAS_SCHEME.test(trimmed)) return trimmed; + if (DOMAIN_LIKE.test(trimmed)) return `https://${trimmed}`; + return null; +} + +/** ใช้กับช่องทางติดต่อในหน้าละเอียด */ +export function contactHref(label: string, value: string): ContactLink { + const phone = telHref(value); + if (phone) return { href: phone, external: false }; + + const site = websiteHref(value); + if (site) return { href: site, external: true }; + + // ป้าย "Website" แต่ค่าอาจเป็นชื่อ ไม่มีโดเมน → ไม่ทำลิงก์ปลอม + void label; + return null; +} diff --git a/app/app/root.tsx b/app/app/root.tsx index 1d88b81..3c696da 100644 --- a/app/app/root.tsx +++ b/app/app/root.tsx @@ -12,6 +12,7 @@ import type { LinksFunction } from "react-router"; import { Layout as AppLayout } from "@/components/layout/Layout"; import { AppToolkitProvider } from "@/components/ui/toolkit-provider"; import { useNavigationState } from "@/hooks/use-navigation-state"; +import { LangProvider } from "@/lib/lang"; import { APP_NAME, APP_TITLE } from "@/lib/app-config"; import { TAB_ID } from "@/lib/tab-id"; @@ -128,7 +129,9 @@ export default function Root() { - + + + diff --git a/app/app/routes/_index.tsx b/app/app/routes/_index.tsx index aeb0490..0c9ef4e 100644 --- a/app/app/routes/_index.tsx +++ b/app/app/routes/_index.tsx @@ -14,6 +14,7 @@ import { } from "@tabler/icons-react"; import { Link, useLoaderData } from "react-router"; +import { LangSwitch, useLang } from "@/lib/lang"; import { readTheatersFile } from "@/lib/theaters-store.server"; import type { Theater } from "@/lib/theaters"; @@ -85,6 +86,7 @@ export default function HomeRoute() { theaters: Theater[]; updatedAt: string; }; + const { t, categoryLabel, lang } = useLang(); const [active, setActive] = useState(CATEGORIES[0]); // โรงที่ถูกซ่อนในหลังบ้าน (hidden=true) ไม่ขึ้นหน้าแรก @@ -108,25 +110,15 @@ export default function HomeRoute() {
-
+
- จัดการข้อมูล + {t("nav.manage")} - +
@@ -134,26 +126,28 @@ export default function HomeRoute() {

- ค้นพบโรงหนังอิสระใกล้คุณ + {t("home.heroA")} + {lang === "en" ? " " : ""} + {t("home.heroB")} + {lang === "en" ? " " : ""} + {t("home.heroC")}

-

- ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง -

+

{t("home.lead")}

- ใกล้ฉัน + {t("home.nearMe")}
@@ -161,9 +155,9 @@ export default function HomeRoute() {
-

รายชื่อโรงหนังอิสระ

+

{t("home.listTitle")}

- {visible.length} โรง + {t("home.count", { n: visible.length })}
@@ -178,45 +172,45 @@ export default function HomeRoute() { : "rounded-[18px] border border-[#303030] bg-[#242424] px-4 py-2 text-sm text-[#B3B3B3] transition hover:border-[#A92626]/60" } > - {c} + {categoryLabel(c)} ))} -
- {theaters.map((t, i) => ( + {theaters.map((theater, i) => (
- {t.image ? ( + {theater.image ? ( <> {t.name}
) : null}
- - {t.distance} + + {theater.distance} -

{t.name}

-

- {t.area} +

{theater.name}

+

+ {theater.area}

-

+

{" "} - {t.categories.join(" · ")} + {theater.categories.map(categoryLabel).join(" · ")}

- ดูรายละเอียด + {t("home.cardDetail")}
@@ -225,13 +219,13 @@ export default function HomeRoute() { {theaters.length === 0 ? (

- ยังไม่มีโรงหนังในหมวดนี้ + {t("home.empty")}

) : null}
diff --git a/app/app/routes/admin.image.tsx b/app/app/routes/admin.image.tsx index c6d67fc..12a81a0 100644 --- a/app/app/routes/admin.image.tsx +++ b/app/app/routes/admin.image.tsx @@ -1,13 +1,23 @@ import { requireAdmin } from "@/lib/auth.server"; import { deleteTheaterImage, saveTheaterImage } from "@/lib/images.server"; +import { readTheatersFile, writeTheaters } from "@/lib/theaters-store.server"; /** - * อัปโหลด / ลบรูปโรงหนัง — /admin/image + * อัปโหลด / ลบรูปโรงหนัง — /admin/image (POST) * ------------------------------------------------------------ - * ★ multipart/form-data: slug + file → บันทึกไฟล์ คืน { ok, url } - * ★ JSON { url } + ?action=delete → ลบไฟล์ คืน { ok, url: null } + * ★ อัปไฟล์แล้ว "บันทึกเข้าข้อมูลทันที" — ไม่ต้องกดปุ่มบันทึกซ้ำ + * (สาเหตุเดิมที่รูปขึ้นไม่ครบ: อัปแล้วยังไม่ทับ JSON) + * ★ ลบไฟล์รูปเดิมให้อัตโนมัติเมื่อเปลี่ยนรูป * ★ ต้องมี session หลังบ้าน (cookie) ทุกครั้ง */ +async function persistImage(slug: string, url: string | null) { + const file = await readTheatersFile(); + const theaters = file.theaters.map((theater) => + theater.slug === slug ? { ...theater, image: url } : theater, + ); + await writeTheaters(theaters); +} + export async function action({ request }: { request: Request }) { try { requireAdmin(request); @@ -38,11 +48,22 @@ export async function action({ request }: { request: Request }) { ); } - const result = await saveTheaterImage(slug, file); - if (!result.ok) { - return Response.json(result, { status: 400 }); + const saved = await saveTheaterImage(slug, file); + if (!saved.ok) { + return Response.json(saved, { status: 400 }); } - return Response.json({ ok: true, url: result.url, bytes: result.bytes }); + + // ลบไฟล์เดิมก่อน แล้วบันทึก path ใหม่ลง JSON ทันที + const current = (await readTheatersFile()).theaters.find((t) => t.slug === slug); + if (current?.image) await deleteTheaterImage(current.image); + await persistImage(slug, saved.url); + + return Response.json({ + ok: true, + url: saved.url, + bytes: saved.bytes, + persisted: true, + }); } const body = (await request.json().catch(() => ({}))) as { url?: string }; diff --git a/app/app/routes/admin.tsx b/app/app/routes/admin.tsx index c201b90..9e6c798 100644 --- a/app/app/routes/admin.tsx +++ b/app/app/routes/admin.tsx @@ -43,6 +43,43 @@ const inputClass = const labelClass = "text-xs font-medium text-[#B3B3B3]"; const panelClass = "rounded-xl border border-[#2A2A2A] bg-[#111] p-4"; +/** ย่อรูปก่อนอัป: ด้านยาวสุด 1600px, JPEG q0.85 — ไฟล์เล็กลงเร็วขึ้นมาก */ +const MAX_EDGE = 1600; +const TARGET_BYTES = 400 * 1024; + +async function shrinkImage(file: File): Promise { + if (!file.type.startsWith("image/") || file.type === "image/svg+xml") return file; + try { + const bitmap = await createImageBitmap(file); + const scale = Math.min(1, MAX_EDGE / Math.max(bitmap.width, bitmap.height)); + if (scale === 1 && file.size <= TARGET_BYTES) { + bitmap.close(); + return file; + } + const width = Math.round(bitmap.width * scale); + const height = Math.round(bitmap.height * scale); + const canvas = document.createElement("canvas"); + canvas.width = width; + canvas.height = height; + const context = canvas.getContext("2d"); + if (!context) { + bitmap.close(); + return file; + } + context.drawImage(bitmap, 0, 0, width, height); + bitmap.close(); + + const blob = await new Promise((resolve) => + canvas.toBlob(resolve, "image/jpeg", 0.85), + ); + if (!blob || blob.size >= file.size) return file; + const name = `${file.name.replace(/\.\w+$/, "")}.jpg`; + return new File([blob], name, { type: "image/jpeg" }); + } catch { + return file; + } +} + function Field({ label, value, @@ -223,14 +260,15 @@ export default function AdminRoute() { revalidator.revalidate(); }; - /** อัปโหลดรูป (multipart) → เก็บไฟล์จริงใน public/images/theaters/ */ + /** อัปโหลดรูป (multipart) → ย่อรูป → server บันทึกไฟล์ + JSON ให้เลย */ const uploadImage = async (file: File) => { if (!active) return; setUploading(true); try { + const prepared = await shrinkImage(file); const form = new FormData(); form.append("slug", active.slug); - form.append("image", file); + form.append("image", prepared); const response = await fetch("/admin/image", { method: "POST", body: form }); const result = (await response.json()) as { ok?: boolean; @@ -245,20 +283,12 @@ export default function AdminRoute() { return; } - // ลบไฟล์รูปเก่าทิ้ง (ถ้าเป็นไฟล์ที่เก็บในเว็บนี้) - if (active.image) { - await fetch("/admin/image?action=delete", { - method: "POST", - headers: { "content-type": "application/json" }, - body: JSON.stringify({ url: active.image }), - }); - } - patchActive({ image: result.url }); setStatus({ kind: "ok", - text: "อัปโหลดรูปแล้ว — กด \"บันทึก\" เพื่อเขียนลงไฟล์ JSON", + text: "อัปโหลดรูปและบันทึกเข้าข้อมูลแล้ว — หน้าเว็บเห็นทันที", }); + revalidator.revalidate(); } catch (error) { setStatus({ kind: "error", diff --git a/app/app/routes/cinema.$slug.tsx b/app/app/routes/cinema.$slug.tsx index a84285c..0b14a8f 100644 --- a/app/app/routes/cinema.$slug.tsx +++ b/app/app/routes/cinema.$slug.tsx @@ -16,6 +16,8 @@ import { } from "@tabler/icons-react"; import { Link, useLoaderData, useParams } from "react-router"; +import { LangSwitch, useLang } from "@/lib/lang"; +import { contactHref } from "@/lib/links"; import type { Theater } from "@/lib/theaters"; import { getTheater, resolveIcon } from "@/lib/theaters"; import { readTheatersFile } from "@/lib/theaters-store.server"; @@ -54,18 +56,17 @@ function Logo() { } function NotFound() { + const { t } = useLang(); return (
-

ไม่พบโรงหนังที่ค้นหา

-

- ลิงก์อาจเปลี่ยนไปแล้ว หรือโรงนี้ยังไม่มีในระบบ -

+

{t("detail.notFoundTitle")}

+

{t("detail.notFoundLead")}

- กลับไปหน้ารายชื่อโรงหนัง + {t("detail.notFoundBack")}
); @@ -83,6 +84,7 @@ export default function CinemaDetailRoute() { }; const slug = useParams().slug; const theater = getTheater(theaters, slug); + const { t, categoryLabel, contactLabel } = useLang(); if (!theater) return ; @@ -98,13 +100,7 @@ export default function CinemaDetailRoute() {
-
-
-
-
-
- TH - +
@@ -114,7 +110,7 @@ export default function CinemaDetailRoute() { className="inline-flex w-fit items-center gap-2 text-xl font-medium transition hover:text-[#D47272]" > - ย้อนกลับ + {t("detail.back")}
@@ -123,6 +119,8 @@ export default function CinemaDetailRoute() { {`รูปโรงหนัง ) : null} @@ -154,16 +152,16 @@ export default function CinemaDetailRoute() {
- {theater.categories.map((t) => ( + {theater.categories.map((category) => ( - {t} + {categoryLabel(category)} ))}
@@ -172,7 +170,7 @@ export default function CinemaDetailRoute() { {theater.hidden ? ( - ซ่อนจากหน้าแรก + {t("detail.hidden")} ) : null}
@@ -188,14 +186,13 @@ export default function CinemaDetailRoute() { rel="noreferrer" className="flex w-[200px] items-center justify-center gap-2 rounded-lg border border-white px-4 py-2 text-lg font-medium transition hover:bg-white/10" > - เปิด Google map + {t("detail.map")} ) : null}

- {theater.description ?? - "ยังไม่มีข้อมูลรายละเอียดของโรงหนังนี้ — อยู่ระหว่างรวบรวมข้อมูล"} + {theater.description ?? t("detail.noDescription")}

@@ -232,28 +229,43 @@ export default function CinemaDetailRoute() { >

- สอบถามข้อมูลและจองตั๋ว + {t("detail.contactTitle")}

{theater.contacts.length > 0 ? ( - theater.contacts.map((c) => ( -
- {c.label} -
- {c.value} - + theater.contacts.map((c) => { + const link = contactHref(c.label, c.value); + return ( +
+ + {contactLabel(c.label)} + +
+ {link ? ( + + {c.value} + + ) : ( + {c.value} + )} + {link ? : null} +
-
- )) + ); + }) ) : ( -

- ยังไม่มีช่องทางติดต่อของโรงนี้ -

+

{t("detail.contactEmpty")}

)} {theater.payments.length > 0 ? (
- Payment + {t("detail.payment")}
{theater.payments.map((p) => ( @@ -269,7 +281,7 @@ export default function CinemaDetailRoute() { className="flex h-12 items-center justify-center gap-2 rounded-lg px-4 transition hover:bg-[#a30a0a]" style={{ background: BRAND, border: `1px solid ${BRAND}` }} > - ดูรอบฉาย + {t("detail.schedule")}
@@ -277,7 +289,7 @@ export default function CinemaDetailRoute() {

- สิ่งอำนวยความสะดวก + {t("detail.facilities")}

{theater.facilities.length > 0 ? (
@@ -303,9 +315,7 @@ export default function CinemaDetailRoute() { })}
) : ( -

- ยังไม่มีข้อมูลสิ่งอำนวยความสะดวก -

+

{t("detail.facilitiesEmpty")}

)}
@@ -314,7 +324,9 @@ export default function CinemaDetailRoute() { style={{ border: `1px solid ${BORDER}` }} >
-

ที่ตั้ง

+

+ {t("detail.location")} +

@@ -325,18 +337,30 @@ export default function CinemaDetailRoute() {

- โรงหนังอิสระอื่นๆ + {t("detail.others")}

{others.map((other) => ( -
+ {other.image ? ( + <> + {other.name} +
+ + ) : null} +

{other.name}

-

+

{other.area}

diff --git a/app/public/data/theaters.json b/app/public/data/theaters.json index 16dc329..27dc2b0 100644 --- a/app/public/data/theaters.json +++ b/app/public/data/theaters.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-10-27T15:43:35.189Z", + "updated_at": "2026-10-27T16:08:42.921Z", "theaters": [ { "slug": "house-cinema-samyan", @@ -95,7 +95,7 @@ } ], "hidden": false, - "image": "/images/theaters/house-cinema-samyan-1793115815167.png" + "image": "/images/theaters/house-cinema-samyan-1793116793628.jpg" }, { "slug": "major-hollywood", @@ -113,11 +113,11 @@ "payments": [], "facilities": [], "hidden": false, - "image": null + "image": "/images/theaters/major-hollywood-1793116832469.jpg" }, { - "slug": "century", - "name": "CENTURY", + "slug": "century-the-movie-plaza-victory-monument", + "name": "CENTURY THE MOVIE PLAZA victory monument", "area": "กรุงเทพฯ", "distance": "—", "categories": [ @@ -125,13 +125,15 @@ ], "description": null, "address": null, - "map_url": null, + "map_url": "https://maps.app.goo.gl/udAurcsQGy9tQktp9", "transport": [], "contacts": [], - "payments": [], + "payments": [ + "เงินสด" + ], "facilities": [], "hidden": false, - "image": null + "image": "/images/theaters/century-the-movie-plaza-victory-monument-1793117166474.jpg" }, { "slug": "ck-plaza", @@ -149,7 +151,7 @@ "payments": [], "facilities": [], "hidden": false, - "image": null + "image": "/images/theaters/ck-plaza-1793117233428.jpg" }, { "slug": "thana-cineplex", @@ -167,7 +169,7 @@ "payments": [], "facilities": [], "hidden": false, - "image": null + "image": "/images/theaters/thana-cineplex-1793117214796.jpg" }, { "slug": "coliseum-paradise", @@ -186,7 +188,7 @@ "payments": [], "facilities": [], "hidden": false, - "image": null + "image": "/images/theaters/coliseum-paradise-1793117225935.jpg" } ] } diff --git a/app/public/images/theaters/century-the-movie-plaza-victory-monument-1793117166474.jpg b/app/public/images/theaters/century-the-movie-plaza-victory-monument-1793117166474.jpg new file mode 100644 index 0000000..5d18b86 Binary files /dev/null and b/app/public/images/theaters/century-the-movie-plaza-victory-monument-1793117166474.jpg differ diff --git a/app/public/images/theaters/ck-plaza-1793117233428.jpg b/app/public/images/theaters/ck-plaza-1793117233428.jpg new file mode 100644 index 0000000..1012b40 Binary files /dev/null and b/app/public/images/theaters/ck-plaza-1793117233428.jpg differ diff --git a/app/public/images/theaters/coliseum-paradise-1793117225935.jpg b/app/public/images/theaters/coliseum-paradise-1793117225935.jpg new file mode 100644 index 0000000..8231949 Binary files /dev/null and b/app/public/images/theaters/coliseum-paradise-1793117225935.jpg differ diff --git a/app/public/images/theaters/house-cinema-samyan-1793115815167.png b/app/public/images/theaters/house-cinema-samyan-1793115815167.png deleted file mode 100644 index 4fdce5e..0000000 Binary files a/app/public/images/theaters/house-cinema-samyan-1793115815167.png and /dev/null differ diff --git a/app/public/images/theaters/house-cinema-samyan-1793116793628.jpg b/app/public/images/theaters/house-cinema-samyan-1793116793628.jpg new file mode 100644 index 0000000..46ab601 Binary files /dev/null and b/app/public/images/theaters/house-cinema-samyan-1793116793628.jpg differ diff --git a/app/public/images/theaters/major-hollywood-1793116832469.jpg b/app/public/images/theaters/major-hollywood-1793116832469.jpg new file mode 100644 index 0000000..647212b Binary files /dev/null and b/app/public/images/theaters/major-hollywood-1793116832469.jpg differ diff --git a/app/public/images/theaters/thana-cineplex-1793117214796.jpg b/app/public/images/theaters/thana-cineplex-1793117214796.jpg new file mode 100644 index 0000000..a9bc54d Binary files /dev/null and b/app/public/images/theaters/thana-cineplex-1793117214796.jpg differ