This repository has been archived on 2025-12-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Caramel-CRM-Backup/resources/js/pages/Dashboard.vue
T

77 lines
3.3 KiB
Vue
Raw Normal View History

2025-10-20 08:57:51 +02:00
<script setup lang="ts">
import AppLayout from '@/layouts/AppLayout.vue';
import { usePage } from '@inertiajs/vue3';
2025-11-21 13:21:59 +01:00
import { Trophy, ArrowRight, UserCheck2 } from 'lucide-vue-next';
2025-10-20 08:57:51 +02:00
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
2025-11-21 13:21:59 +01:00
import { Table, TableCell, TableHead, TableRow, } from '@/components/ui/table';
2025-10-20 08:57:51 +02:00
const page = usePage();
const token = page.props.flash?.token;
if (token) {
localStorage.setItem('sanctum_token', token);
}
</script>
<template>
2025-11-14 17:45:57 +01:00
<AppLayout title="Dashboard">
<div class="grid gap-12 md:grid-cols-2 h-full md:p-8">
2025-10-20 08:57:51 +02:00
<div class="relative overflow-y-auto">
Geplante Aktivitäten
</div>
<div class="flex flex-col gap-8">
<div class="relative overflow-y-auto">
<div class="flex flex-wrap gap-2 overflow-x-auto">
<Alert class="bg-amber-300">
<Trophy class="h-4 w-4" />
<AlertTitle>Du hast zwei neue Erfolge</AlertTitle>
<AlertDescription class="text-sky-600">
</AlertDescription>
</Alert>
<Alert class="bg-sky-300">
<UserCheck2 class="h-4 w-4" />
<AlertTitle>Du hast länger keine Bestandskunden mehr kontaktiert</AlertTitle>
<AlertDescription class="text-sky-600">
<a href="">Hier sind ein paar Vorschläge für Dich
<ArrowRight class="inline h-4 w-4" />
</a>
</AlertDescription>
</Alert>
</div>
</div>
<div class="relative flex-1 overflow-y-auto">
<h1 class="mb-4">Offene Rechnungen</h1>
<Table>
<TableRow>
<TableHead class="text-right px-4">Bezahlt</TableHead>
<TableCell class="text-right px-4 tabular-nums">21.976,09 </TableCell>
</TableRow>
<TableRow>
<TableHead class="text-right px-4">Gestellt, nicht bezahlt</TableHead>
2025-11-21 13:21:59 +01:00
<TableCell class="text-right px-4 text-destructive font-bold tabular-nums">8.637,00
</TableCell>
2025-10-20 08:57:51 +02:00
</TableRow>
<TableRow class="border-b-slate-600">
<TableHead class="text-right px-4">Noch nicht gestellt</TableHead>
<TableCell class="text-right px-4 tabular-nums"></TableCell>
</TableRow>
<TableRow class="border-b-0">
<TableHead class="text-right px-4 font-bold">Summe</TableHead>
<TableCell class="text-right px-4 font-bold tabular-nums">30.613,09 </TableCell>
</TableRow>
</table>
</div>
2025-11-21 13:21:59 +01:00
<div class="relative flex-1 overflow-y-auto">
2025-10-20 08:57:51 +02:00
Aktuelle Angebote
</div>
</div>
</div>
</AppLayout>
</template>