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

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

@if($activity->details == "billCreated") @lang('purchase::modules.purchaseBill.' . $activity->label)
{{ __('purchase::modules.purchaseBill.' . $activity->details) }} {{ $activity->amount }} {{ __('purchase::modules.purchaseBill.ofPurchaseOrder') }} {{$activity->purchase_order}} {{ __('purchase::modules.purchaseBill.by') }} {{ mb_ucwords($activity->user->name) }} {{ __('purchase::modules.purchaseBill.onDate') }} {{$activity->bill_date}} View Details @endif @if ($activity->details == "billUpdated") @lang('purchase::modules.purchaseBill.' . $activity->label)
{{ __('purchase::modules.purchaseBill.' . $activity->details) }} {{ $activity->bill_date }} View Details @endif @if($activity->details == "vendorPaymentCreated" || $activity->details == "vendorPaymentUpdated" ) @lang('purchase::modules.vendorPayment.' . $activity->label)
{{ __('purchase::modules.vendorPayment.' . $activity->details) }} {{$activity->amount}} {{__('purchase::modules.vendorPayment.ofPurchaseOrder')}} {{$activity->purchase_order}} {{__('purchase::modules.vendorPayment.by')}} {{ mb_ucwords($activity->user->name) }} View Details @endif

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

@empty

@lang('messages.noActivityByThisUser')

@endforelse