Loheide-eu-mitarbeiterplatt.../resources/js/pages/Profile/Show.vue
Friederich Loheide 9c0f8de791
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
Phase 0: Fundament für Inhaus
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3)
- Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung
- Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü
- Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person
- Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“
- Benutzerverwaltung im Admin, Zugang vorläufig über is_admin
- vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/
- PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung
- VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 20:35:30 +00:00

69 lines
2.9 KiB
Vue

<script setup>
import { computed } from 'vue';
import { Head, Link } from '@inertiajs/vue3';
import {
mdiAccountEditOutline,
mdiCellphone,
mdiDomain,
mdiEmailOutline,
mdiMapMarkerOutline,
mdiPhoneOutline,
} from '@mdi/js';
import AppLayout from '../../layouts/AppLayout.vue';
import UserAvatar from '../../components/UserAvatar.vue';
const props = defineProps({
person: { type: Object, required: true },
isOwnProfile: { type: Boolean, default: false },
});
const contact = computed(() => [
{ icon: mdiEmailOutline, label: 'E-Mail', value: props.person.email, href: `mailto:${props.person.email}` },
{ icon: mdiPhoneOutline, label: 'Telefon', value: props.person.phone, href: props.person.phone && `tel:${props.person.phone}` },
{ icon: mdiCellphone, label: 'Mobil', value: props.person.mobile, href: props.person.mobile && `tel:${props.person.mobile}` },
{ icon: mdiDomain, label: 'Abteilung', value: props.person.department },
{ icon: mdiMapMarkerOutline, label: 'Standort', value: props.person.location },
].filter((item) => item.value));
</script>
<template>
<Head :title="person.name" />
<AppLayout>
<v-card rounded="xl" class="mb-6">
<div class="d-flex flex-column flex-sm-row align-center ga-6 pa-6 pa-md-8">
<UserAvatar :user="person" :size="128" />
<div class="flex-grow-1 text-center text-sm-start">
<h1 class="text-headline-medium">{{ person.name }}</h1>
<div v-if="person.job_title" class="text-title-medium text-medium-emphasis mt-1">{{ person.job_title }}</div>
</div>
<Link v-if="isOwnProfile" href="/profil/bearbeiten">
<v-btn variant="tonal" :prepend-icon="mdiAccountEditOutline">Profil bearbeiten</v-btn>
</Link>
</div>
</v-card>
<v-row>
<v-col cols="12" md="5">
<v-card rounded="xl" title="Kontakt" class="h-100">
<v-list bg-color="transparent">
<v-list-item
v-for="item in contact"
:key="item.label"
:prepend-icon="item.icon"
:title="item.value"
:subtitle="item.label"
:href="item.href || undefined"
/>
</v-list>
</v-card>
</v-col>
<v-col cols="12" md="7">
<v-card rounded="xl" title="Über mich" class="h-100">
<v-card-text v-if="person.about" class="text-body-large" style="white-space: pre-line">{{ person.about }}</v-card-text>
<v-card-text v-else class="text-medium-emphasis">Noch keine Angaben.</v-card-text>
</v-card>
</v-col>
</v-row>
</AppLayout>
</template>