22 <app-layout >
33 <Head :title =" item.name" />
44 <template #header >
5- <inertia-link :href =" route('projects.index')" class =" mb-4 block flex items-center text-gray-700" >
6- <svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor" class =" inline h-3 mr-2" >
7- <path stroke-linecap =" round" stroke-linejoin =" round" stroke-width =" 2" d =" M7 16l-4-4m0 0l4-4m-4 4h18" class =" text-gray-500" />
8- </svg >
5+ <inertia-link :href =" route('projects.index')" class =" mb-4 flex items-center text-gray-700" >
6+ <ArrowLeftIcon class =" inline h-3 mr-2" />
97 โครงการ
108 </inertia-link >
119 <h2 class =" font-semibold text-xl text-gray-800 leading-tight" >
125123 <inertia-link v-if =" item.can['update-project'] && (item.closure_status === 0 || item.closure_status === -2)"
126124 :href =" route('projects.edit', {project: item.id})"
127125 class =" text-yellow-600 hover:text-yellow-900 text-sm ml-4" >
128- <svg xmlns =" http://www.w3.org/2000/svg" class =" h-5 w-5 inline" viewBox =" 0 0 20 20" fill =" currentColor" >
129- <path
130- d =" M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z" />
131- </svg >
126+ <PencilIcon class =" h-5 w-5 inline" />
132127 แก้ไขแผนโครงการ
133128 </inertia-link >
134129 </h3 >
409404 <span v-if =" item.updated_at && (item.created_at !== item.updated_at)" >
410405 &emsp ; แก้ไขเมื่อ {{ item.updated_at }}
411406 </span >
407+ <span v-if =" item.closure_status <= 0 || item.can['update-project']" >
408+ &emsp ;
409+ <inertia-link :href =" route('projects.closureForm', {project: item.id})" class =" text-amber-600" >
410+ บันทึกผลการดำเนินโครงการ
411+ </inertia-link >
412+ </span >
412413 </p >
413414 </div >
414415 <ClosureCancelDialog :show-modal =" showCancelDialog" :project =" item" @close =" showCancelDialog = false" />
419420import AppLayout from ' @/Layouts/AppLayout.vue'
420421import JetButton from ' @/Jetstream/Button.vue'
421422import {
423+ ArrowLeftIcon ,
422424 ArrowUpTrayIcon ,
423425 CheckCircleIcon ,
424426 CheckIcon ,
425427 DocumentChartBarIcon ,
426428 DocumentTextIcon ,
429+ PencilIcon ,
427430 PlusIcon ,
428431 PrinterIcon ,
429432 XMarkIcon
@@ -435,10 +438,11 @@ import {PROJECT_PARTICIPANT_ROLES} from "@/static";
435438import ClosureStatusText from " @/Components/ClosureStatusText.vue" ;
436439import ClosureCancelDialog from " @/Components/ClosureCancelDialog.vue" ;
437440import SDGSelector from " @/Components/SDGSelector.vue" ;
438- import {Head } from " @inertiajs/vue3" ;
441+ import {Head , Link as InertiaLink } from " @inertiajs/vue3" ;
439442
440443export default {
441444 components: {
445+ InertiaLink,
442446 Head,
443447 SDGSelector,
444448 ClosureCancelDialog,
@@ -451,8 +455,8 @@ export default {
451455 PlusIcon,
452456 XMarkIcon,
453457 JetButton,
454- ArrowUpTrayIcon,
455- PrinterIcon,
458+ ArrowLeftIcon, ArrowUpTrayIcon,
459+ PencilIcon, PrinterIcon,
456460 },
457461 computed: {
458462 participantsGrouped () {
0 commit comments