@@ -3,7 +3,7 @@ import AppLayout from '@/layouts/app-layout';
33import { type BreadcrumbItem } from '@/types' ;
44import { Button } from '@/components/ui/button' ;
55import { formatDate , formatDateSafe } from '@/lib/utils' ;
6- import { FileText , Info , FileQuestion , Users , Gavel , UserCheck , ScrollText , Building , UserCog , Eye , UserPlus , Trash2 , Pencil , ListTodo , StickyNote , ArrowUp , ArrowDown , Calendar } from 'lucide-react' ;
6+ import { FileText , Info , FileQuestion , Users , Gavel , UserCheck , ScrollText , Building , UserCog , Eye , UserPlus , Trash2 , Pencil , ListTodo , StickyNote , ArrowUp , ArrowDown , Calendar , Edit } from 'lucide-react' ;
77import { useState , useEffect } from 'react' ;
88import {
99 AlertDialog ,
@@ -296,14 +296,20 @@ export default function LegalCaseShow({ legalCase, events, nextImportantDate }:
296296 </ div >
297297 < div className = "flex flex-col items-stretch bg-gray-100 dark:bg-zinc-800 rounded-md p-4 border border-gray-200 dark:border-zinc-700" >
298298 < span className = "text-xs text-gray-500 dark:text-gray-400 font-semibold uppercase tracking-wider mb-1" > ESTADO</ span >
299- < span
300- className = "inline-flex items-center gap-1 text-xl font-bold text-gray-900 dark:text-gray-100 cursor-pointer mt-1 uppercase"
301- onClick = { ( ) => setStatusDialogOpen ( true ) }
302- title = "Cambiar estatus"
303- >
304- { currentStatus ? currentStatus : ( legalCase . closing_date ? 'CERRADO' : 'NO DEFINIDO' ) }
305- < Pencil className = "h-4 w-4 ml-2 text-gray-600 hover:text-blue-800 transition-colors flex-shrink-0" />
306- </ span >
299+ < div className = "flex items-center justify-between gap-2" >
300+ < span className = "text-xl font-bold text-gray-900 dark:text-gray-100 uppercase" >
301+ { currentStatus ? currentStatus : ( legalCase . closing_date ? 'CERRADO' : 'NO DEFINIDO' ) }
302+ </ span >
303+ < Button
304+ size = "icon"
305+ variant = "ghost"
306+ className = "text-gray-600 hover:text-blue-800"
307+ onClick = { ( ) => setStatusDialogOpen ( true ) }
308+ title = "Cambiar estatus"
309+ >
310+ < Edit className = "h-6 w-6" />
311+ </ Button >
312+ </ div >
307313 </ div >
308314 </ div >
309315 </ div >
@@ -342,7 +348,18 @@ export default function LegalCaseShow({ legalCase, events, nextImportantDate }:
342348 </ Button >
343349 </ div >
344350 ) : (
345- < span className = "text-lg font-bold text-gray-900 dark:text-gray-100 uppercase" > NO DEFINIDA</ span >
351+ < div className = "flex items-center justify-between gap-2" >
352+ < span className = "text-lg font-bold text-gray-900 dark:text-gray-100 uppercase" > NO DEFINIDA</ span >
353+ < Button
354+ size = "icon"
355+ variant = "ghost"
356+ className = "text-gray-600 hover:text-blue-800"
357+ onClick = { ( ) => router . visit ( route ( 'legal-cases.important-dates.index' , legalCase . id ) ) }
358+ title = "Gestionar fechas importantes"
359+ >
360+ < Calendar className = "h-6 w-6" />
361+ </ Button >
362+ </ div >
346363 ) }
347364 </ div >
348365 </ div >
0 commit comments