@php $changes = $activity->changes; $attributes = $changes['attributes'] ?? null; $old = $changes['old'] ?? null; $status = $attributes['status'] ?? ''; $payment_status = $attributes['payment_status'] ?? ''; $sub_status = $attributes['sub_status'] ?? ''; $shipping_status = $attributes['shipping_status'] ?? ''; $status = in_array($sub_status, ['quotation', 'proforma']) ? $sub_status : $status; $final_total = $attributes['final_total'] ?? 0; $old_status = $old['status'] ?? ''; $old_sub_status = $old['sub_status'] ?? ''; $old_shipping_status = $old['shipping_status'] ?? ''; $old_status = in_array($old_sub_status, ['quotation', 'proforma']) ? $old_sub_status : $old_status; $old_final_total = $old['final_total'] ?? 0; $old_payment_status = $old['payment_status'] ?? ''; $update_note = $activity->getExtraProperty('update_note'); @endphp
@lang('sale.status'): | @if(!empty($old_status)) {{$statuses[$old_status] ?? ''}} --> @endif {{$statuses[$status] ?? ''}} |
---|---|
@lang('lang_v1.shipping_status'): | @if(!empty($old_shipping_status)) {{$shipping_statuses[$old_shipping_status] ?? ''}} --> @endif {{$shipping_statuses[$shipping_status] ?? ''}} |
@lang('sale.total'): | @if(!empty($old_final_total)) @format_currency($old_final_total) --> @endif @format_currency($final_total) |
@lang('sale.payment_status'): | @if(!empty($old_payment_status)) @lang('lang_v1.' . $old_payment_status) --> @endif @lang('lang_v1.' . $payment_status) |
{{$update_note}} | |
@if($activity->getExtraProperty('from') != 'completed') {{$status_color_in_activity[$activity->getExtraProperty('from')]['label']}} @else {{$status_color_in_activity[$activity->getExtraProperty('from')]['label']}} @endif --> @if($activity->getExtraProperty('to') != 'completed') {{$status_color_in_activity[$activity->getExtraProperty('to')]['label']}} @else {{$status_color_in_activity[$activity->getExtraProperty('to')]['label']}} @endif |