diff --git a/web/dashboard/src/app/[locale]/(fullscreen)/pos-classic/layout.tsx b/web/dashboard/src/app/[locale]/(fullscreen)/pos-classic/layout.tsx new file mode 100644 index 0000000..0690187 --- /dev/null +++ b/web/dashboard/src/app/[locale]/(fullscreen)/pos-classic/layout.tsx @@ -0,0 +1,50 @@ +"use client"; + +import { useLocale } from "next-intl"; +import { Sidebar } from "@/components/layout/sidebar"; +import { Topbar } from "@/components/layout/topbar"; +import { CafeThemeProvider } from "@/components/theme/cafe-theme-provider"; + +/** + * Classic POS route layout — wraps the terminal in the standard dashboard + * chrome (collapsible sidebar + topbar) but keeps the main content area + * overflow-hidden so PosScreen can manage its own internal scrolling. + */ +export default function PosClassicLayout({ + children, +}: { + children: React.ReactNode; +}) { + const locale = useLocale(); + const isRtl = locale !== "en"; + + const mainColumn = ( +
{msg}
: null} +پرداخت — {tableName}
-{fmt(amountDue)} تومان
++ {fmt(due)} تومان + {redeem > 0 && {fmt(amountDue)}} +
مبلغ روی دستگاه کارتخوان دریافت شود
-{fmt(amountDue)} تومان
+مبلغ به دستگاه کارتخوان ارسال میشود
+{fmt(due)} تومان
پس از تأیید تراکنش، دکمهٔ زیر را بزنید
سهم هر نفر
-{fmt(perPerson)} تومان
-- کل مبلغ یکجا ثبت میشود؛ تقسیم صرفاً برای راهنمایی صندوقدار است. -
+