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

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

@if($activity->details == "vendorCreated" || $activity->details == "vendorUpdated") @lang('purchase::modules.vendor.' . $activity->label)
{{ __('purchase::modules.vendor.' . $activity->details) }} {{ mb_ucwords($activity->user->name) }} View Details @endif @if($activity->details == "vendorNoteCreated" || $activity->details == "vendorNoteUpdated") @lang('purchase::modules.vendorPayment.' . $activity->label)
{{ __('purchase::modules.vendorPayment.' . $activity->details) }} {{ mb_ucwords($activity->user->name) }} View Details @endif @if($activity->details == "vendorContactCreated" || $activity->details == "vendorContactUpdated") @lang('purchase::modules.vendorPayment.' . $activity->label)
{{ __('purchase::modules.vendorPayment.' . $activity->details) }} {{ mb_ucwords($activity->user->name) }} View Details @endif @if( $activity->details == "purchaseOrderCreated" || $activity->details == "purchaseOrderUpdated") @lang('purchase::modules.purchaseOrder.' . $activity->label)
{{ __('purchase::modules.purchaseOrder.' . $activity->details) }} {{ mb_ucwords($activity->user->name) }} View Details @endif @if($activity->details == "vendorCreditCreated" || $activity->details == "vendorCreditUpdated") @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 @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