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

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

@if($activity->inventory_id && $activity->net_quantity == null && $activity->quantity_adjustment == null && $activity->changed_value == null && $activity->adjusted_value == null && $activity->purchase_inventory_files_id == null) @lang('purchase::modules.inventory.' . $activity->label)
{{ __('purchase::modules.inventory.details') }} {{ mb_ucwords($activity->user->name) }} View Details @endif @if($activity->inventory_id && $activity->net_quantity != null) @lang('purchase::modules.inventory.' . $activity->label)
{{ __('purchase::modules.inventory.' . $activity->details) }} {{$activity->product_name}} {{__('purchase::modules.inventory.withQuantityOnHand')}} {{ $activity->net_quantity }} {{__('purchase::modules.vendorPayment.by')}} {{ mb_ucwords($activity->user->name) }} View Details @endif @if($activity->inventory_id && $activity->changed_value != null && $activity->adjusted_value != null ) @lang('purchase::modules.inventory.' . $activity->label)
{{ __('purchase::modules.inventory.' . $activity->details) }} {{$activity->product_name}} {{ __('purchase::modules.inventory.toNewValue') }} {{$activity->changed_value}} {{__('purchase::modules.vendorPayment.by')}} {{ mb_ucwords($activity->user->name) }} View Details @endif @if($activity->purchase_inventory_files_id != null) @lang('purchase::modules.inventory.' . $activity->label)
{{ __('purchase::modules.inventory.' . $activity->details) }} {{ mb_ucwords($activity->user->name) }} View Details @endif

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

@empty

@lang('messages.noActivityByThisUser')

@endforelse