@php $audits = collect($rma->audits ?? [])->values(); @endphp

@lang('rma.timeline_guidance')

@forelse($audits as $audit) @php $step_label = \App\Rma::stepLabels()[$audit->step] ?? $audit->step; $action_key = 'rma.audit_actions.'.$audit->action; $action_label = \Illuminate\Support\Facades\Lang::has($action_key) ? __($action_key) : ucfirst(str_replace('_', ' ', (string) $audit->action)); $user_label = optional($audit->user)->user_full_name ?? optional($audit->user)->first_name ?? '—'; @endphp
{{ $action_label }}
{{ $step_label }} · {{ $user_label }}
{{ @format_datetime($audit->created_at) }}
@if(!empty($audit->internal_note))
{{ $audit->internal_note }}
@endif
@empty

@lang('messages.no_data')

@endforelse