@extends('admin.layouts.app') @section('content')

{{ __('visits.history_timeline') }}

@forelse ($history as $entry) @empty @endforelse
{{ __('common.date') }} {{ __('visits.tooth') }} {{ __('visits.transition') }} {{ __('visits.surface') }} {{ __('visits.view') }} {{ __('visits.changed_by') }} {{ __('visits.notes') }}
{{ $entry->created_at?->format('Y-m-d H:i') }} {{ $entry->tooth_number }} {{ $entry->old_status ? str($entry->old_status)->replace('_', ' ')->title() : __('visits.new_record') }} {{ str($entry->new_status)->replace('_', ' ')->title() }} {{ $entry->surface ?: '—' }} {{ $entry->visit?->visit_no ?? '—' }} {{ $entry->changedBy->displayName ?? $entry->changedBy->name ?? __('visits.system') }} {{ $entry->notes ?: '—' }}
{{ __('visits.no_odontogram_history') }}
@if ($history->hasPages()) @endif
@endsection