<script setup>

const props = defineProps({
    person: Object
})

</script>

<template>
    <div class="grid grid-rows-* grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-2">
        <div class="rounded p-2 shadow">
            <p class="text-xs leading-5 md:text-sm text-gray-500">Nu.</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.nu }}</p>
        </div>
        <div class="rounded p-2 shadow">
            <p class="text-sm leading-5 md:text-sm text-gray-500">Name.</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.full_name }}</p>
        </div>
        <div class="rounded p-2 shadow">
            <p class="text-sm leading-5 md:text-sm text-gray-500">Tax NU.</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.tax_number }}</p>
        </div>
        <div class="rounded p-2 shadow">
            <p class="text-sm leading-5 md:text-sm text-gray-500">Social security NU.</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.social_security_number }}</p>
        </div>
        
    </div>
    <div class="grid grid-rows-* grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2 mt-1">
        <div class="rounded p-2 shadow">
            <p class="text-sm leading-5 md:text-sm text-gray-500">Address</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.main_address }}</p>
        </div>
        <div class="rounded p-2 shadow">
            <p class="text-sm leading-5 md:text-sm text-gray-500">Phone</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.main_phone }}</p>
        </div>
        <div class="md:col-span-full lg:col-span-1 rounded p-2 shadow">
            <p class="text-sm leading-5 md:text-sm text-gray-500">Description</p>
            <p class="text-sm md:text-base leading-7 text-gray-900">{{ person.description }}</p>
        </div>
    </div>
</template>