@if(!empty($common_settings['enable_secondary_unit'])) @endif @if(!empty($common_settings['enable_secondary_unit'])) @endif @forelse($stock_history as $history) @if($history['quantity_change'] > 0 ) @else @endif @if(!empty($common_settings['enable_secondary_unit'])) @if($history['quantity_change'] > 0 ) @else @endif @endif @if(!empty($common_settings['enable_secondary_unit'])) @endif @empty @endforelse
@lang('lang_v1.type') @lang('lang_v1.quantity_change')@lang('lang_v1.quantity_change') (@lang('lang_v1.secondary_unit'))@lang('lang_v1.new_quantity')@lang('lang_v1.new_quantity') (@lang('lang_v1.secondary_unit'))@lang('lang_v1.date') @lang('purchase.ref_no') @lang('lang_v1.customer_supplier_info')
{{$history['type_label']}} +{{$history['quantity_change']}} {{$history['quantity_change']}} @if(!empty($history['purchase_secondary_unit_quantity'])) +{{$history['purchase_secondary_unit_quantity']}} {{$stock_details['second_unit']}} @endif @if(!empty($history['sell_secondary_unit_quantity'])) -{{$history['sell_secondary_unit_quantity']}} {{$stock_details['second_unit']}} @endif {{$history['stock']}} @if(!empty($stock_details['second_unit'])) {{$history['stock_in_second_unit']}} {{$stock_details['second_unit']}} @endif {{@format_datetime($history['date'])}} {{$history['ref_no']}} @if(!empty($history['additional_notes'])) @if(!empty($history['ref_no']))
@endif {{$history['additional_notes']}} @endif
{{$history['contact_name'] ?? '--'}} @if(!empty($history['supplier_business_name'])) - {{$history['supplier_business_name']}} @endif
@lang('lang_v1.no_stock_history_found')