@if ($logger)
@php
$logChanges = ['current_billing_plan', 'card_brand', 'card_last_four'];
@endphp
@forelse($logger->logs() as $activity)
@php
$changes = $activity->changes()->all();
@endphp
@continue(empty($changes))
@if (strtolower($activity->description) == 'updated')
@foreach ($changes['attributes'] as $attrbute => $new_value)
@continue(!in_array($attrbute, $logChanges))
-
{!! get_activity_str($logger, $attrbute, $new_value, $changes['old'][$attrbute]) !!}
{{ $activity->created_at->diffForHumans() . ' ' . trans('app.by') . ' ' . $activity->causer->getName() }}
@endforeach
@endif
@empty
{{ trans('messages.no_history_data') }}
@endforelse
@else
{{ trans('messages.no_history_data') }}
@endif