sms entegrasyonu ve ana sayfa işlemleri

This commit is contained in:
2026-01-26 00:19:09 +03:00
parent 1e1baa84ff
commit 5c34df0f09
19 changed files with 1018 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
import Link from "next/link"
import { usePathname } from "next/navigation"
import { cn } from "@/lib/utils"
import { LayoutDashboard, Package, ShoppingCart, Settings, Globe, Tags } from "lucide-react"
import { LayoutDashboard, Package, ShoppingCart, Settings, Globe, Tags, Users, MessageSquare, History } from "lucide-react"
const sidebarItems = [
{
@@ -16,15 +16,25 @@ const sidebarItems = [
href: "/dashboard/products",
icon: Package,
},
{
title: "Kategoriler",
href: "/dashboard/categories",
icon: Tags,
},
{
title: "Siparişler",
href: "/dashboard/orders",
icon: ShoppingCart,
},
{
title: "Kategoriler",
href: "/dashboard/categories",
icon: Tags,
title: "Müşteriler",
href: "/dashboard/customers",
icon: Users,
},
{
title: "SMS Gönder",
href: "/dashboard/sms",
icon: MessageSquare,
},
{
title: "Ayarlar",
@@ -51,7 +61,7 @@ export function Sidebar({ className }: SidebarProps) {
Yönetim
</h2>
<div className="space-y-1">
{sidebarItems.map((item) => (
{sidebarItems.filter(i => !i.href.includes('/sms')).map((item) => (
<Link
key={item.href}
href={item.href}
@@ -66,6 +76,34 @@ export function Sidebar({ className }: SidebarProps) {
))}
</div>
</div>
<div className="px-3 py-2">
<h2 className="mb-2 px-4 text-lg font-semibold tracking-tight">
SMS
</h2>
<div className="space-y-1">
<Link
href="/dashboard/sms"
className={cn(
"flex items-center rounded-md px-3 py-2 text-sm font-medium hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",
pathname === "/dashboard/sms" ? "bg-slate-100 dark:bg-slate-800 text-primary" : "text-slate-500 dark:text-slate-400"
)}
>
<MessageSquare className="mr-2 h-4 w-4" />
Yeni SMS
</Link>
<Link
href="/dashboard/sms/logs"
className={cn(
"flex items-center rounded-md px-3 py-2 text-sm font-medium hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",
pathname === "/dashboard/sms/logs" ? "bg-slate-100 dark:bg-slate-800 text-primary" : "text-slate-500 dark:text-slate-400"
)}
>
<History className="mr-2 h-4 w-4" />
Geçmiş
</Link>
</div>
</div>
</div>
</div>
)