41 lines
967 B
Vue
Executable File
41 lines
967 B
Vue
Executable File
<template>
|
|
<div class="border-b w-full">
|
|
<a v-if="item.tag === 'EducationalProgram'" :href="route('client.program.show', item.data.slug)" target="_blank" class="rounded-lg hover:bg-[#F2F2F2] my-1 px-4 w-full flex items-center">
|
|
<BasicIcon name="educational_program_search" class="w-5 h-5 flex-shrink-0 text-gray-500" />
|
|
<div class="px-4 space-y-1 py-2">
|
|
<p class="text-sm">{{ item.data.name }}</p>
|
|
<div v-if="item.matches.length !== 0" class="">
|
|
<p class="text-[13px] text-gray-500 text-ellipsis">{{ item.matches[0] }}</p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import {Link} from "@inertiajs/vue3";
|
|
import BasicIcon from "@/componentss/ui/icons/BasicIcon.vue";
|
|
|
|
export default {
|
|
name: "ResultEducationalProgramItem",
|
|
components: {BasicIcon, Link},
|
|
data() {
|
|
return {
|
|
selectedCategory: 'All',
|
|
}
|
|
},
|
|
|
|
props: {
|
|
item: {
|
|
type: Object,
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|