@php $changes = $activity->changes; $attributes = $changes['attributes'] ?? null; $invoice_code = $attributes['invoice_code'] ?? 'N/A'; $invoice_return_code = $attributes['invoice_return_code'] ?? 'N/A'; $payment_code = $attributes['payment_code'] ?? 'N/A'; $payment_ref_no = $attributes['payment_ref_no'] ?? 'N/A'; $company_name = $attributes['company_name'] ?? 'N/A'; $stock_id = $attributes['stock_id'] ?? 'N/A'; $item_code = $attributes['item_code'] ?? 'N/A'; @endphp @if ($activity->log_name == 'invoice') {{ $invoice_code }} @elseif ($activity->log_name == 'invoice_return') {{ $invoice_return_code }} @elseif ($activity->log_name == 'invoice_payment') {{ $payment_code }} @elseif ($activity->log_name == 'cheque') {{ $payment_ref_no }} @elseif ($activity->log_name == 'customer') {{ $company_name }} @elseif ($activity->log_name == 'product') {{ $stock_id . ' | ' . $item_code }} @else @endif