@php
$active_step = $shop_rma->current_step;
$step_labels = __('shop_rma.step_labels');
@endphp
@if($shop_rma->status === 'cancelled')
{{ \App\ShopRma::statuses()['cancelled'] }}
@if(!empty($shop_rma->cancelled_at))
{{ @format_datetime($shop_rma->cancelled_at) }}
@endif
@else
@foreach($step_labels as $number => $label)
@php
$is_done = $active_step > $number || ($shop_rma->status === 'completed' && $number == 4);
$is_active = $active_step == $number;
@endphp
@if($is_done)
@else
{{ $number }}
@endif
{{ $label }}
@endforeach
@endif