fix: handle null attendance date formatting in attendance modal
This commit is contained in:
parent
3c3836437a
commit
70216995b4
@ -244,7 +244,7 @@ public function table(Table $table): Table
|
||||
->label('Tanggal')
|
||||
->date('l, d F Y')
|
||||
->sortable()
|
||||
->description(fn (Attendance $record): string => $record->attended_at->format('H:i').' WIB')
|
||||
->description(fn (Attendance $record): string => $record->attended_at->format('H:i').' ')
|
||||
->color('gray'),
|
||||
|
||||
TextColumn::make('courseSchedule.course.name')
|
||||
|
||||
@ -24,7 +24,7 @@ class="text-[10px] text-gray-500 dark:text-gray-400 font-normal uppercase tabula
|
||||
<td class="px-4 py-3 text-right">
|
||||
<span
|
||||
class="inline-flex items-center rounded-md bg-success-50 dark:bg-success-400/10 px-2 py-1 text-xs font-bold text-success-700 dark:text-success-400 ring-1 ring-inset ring-success-600/20 tabular-nums">
|
||||
{{ $attendance->attended_at->format('H:i') }} WIB
|
||||
{{ $attendance->attended_at?->format('H:i') }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user