@forelse($history as $key=>$activity)

{!! __($activity->activity) !!}

@if($activity->purchase_credit_id ) @lang('purchase::modules.vendorCredit.' . $activity->label)
{{ __('purchase::modules.vendorCredit.' . $activity->details) }} {{ mb_ucwords($activity->user->name) }} {{ __('purchase::modules.vendorCredit.ofAmount') }} {{ mb_ucwords($activity->amount) }} View Details @endif

{{ ($activity->created_at->diffForHumans()) }}

@empty

@lang('messages.noActivityByThisUser')

@endforelse