Add expenses module, update dashboard financials, and enhance reservation payment management

This commit is contained in:
2025-12-04 16:31:49 +03:00
parent 6d777aa215
commit b89669f795
18 changed files with 801 additions and 98 deletions

View File

@@ -55,8 +55,8 @@ export function CalendarView({ events = [], halls = [] }: CalendarViewProps) {
}
return (
<Card className="h-[calc(100vh-10rem)] min-h-[500px] flex flex-col">
<CardHeader className="flex flex-col md:flex-row items-start md:items-center justify-between space-y-2 md:space-y-0 pb-4">
<Card className="h-[calc(100vh-4rem)] flex flex-col border-0 shadow-none rounded-none">
<CardHeader className="flex flex-col md:flex-row items-start md:items-center justify-between space-y-2 md:space-y-0 px-4 py-2">
<CardTitle>Rezervasyon Takvimi</CardTitle>
<div className="w-full md:w-[200px]">
<Select value={selectedHallId} onValueChange={setSelectedHallId}>
@@ -72,7 +72,7 @@ export function CalendarView({ events = [], halls = [] }: CalendarViewProps) {
</Select>
</div>
</CardHeader>
<CardContent className="flex-1 pb-4 overflow-hidden">
<CardContent className="flex-1 p-0 overflow-hidden">
<ContextMenu>
<ContextMenuTrigger className="h-full w-full">
<div className="h-full w-full overflow-x-auto">

View File

@@ -4,7 +4,7 @@ import Link from "next/link"
import { usePathname } from "next/navigation"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import { CalendarDays, Users, Home, Settings, Building2, CreditCard, LogOut } from "lucide-react"
import { CalendarDays, Users, Home, Settings, Building2, CreditCard, LogOut, Receipt } from "lucide-react"
interface MainNavProps extends React.HTMLAttributes<HTMLElement> {
onNavClick?: () => void
@@ -48,6 +48,12 @@ export function MainNav({
icon: Building2,
active: pathname.startsWith("/dashboard/halls"),
},
{
href: "/dashboard/expenses",
label: "Giderler",
icon: Receipt,
active: pathname.startsWith("/dashboard/expenses"),
},
{
href: "/dashboard/settings",
label: "Ayarlar",