@php $common_settings = session()->get('business.common_settings'); @endphp

{{$stock_details['variation']}}

@lang('lang_v1.quantities_in')
@lang('report.total_purchase') {{$stock_details['total_purchase']}} {{$stock_details['unit']}}
@lang('lang_v1.opening_stock') {{$stock_details['total_opening_stock']}} {{$stock_details['unit']}}
@lang('lang_v1.total_sell_return') {{$stock_details['total_sell_return']}} {{$stock_details['unit']}}
@lang('lang_v1.stock_transfers') (@lang('lang_v1.in')) {{$stock_details['total_purchase_transfer']}} {{$stock_details['unit']}}
@lang('lang_v1.quantities_out')
@lang('lang_v1.total_sold') {{$stock_details['total_sold']}} {{$stock_details['unit']}}
@lang('report.total_stock_adjustment') {{$stock_details['total_adjusted']}} {{$stock_details['unit']}}
@lang('lang_v1.total_purchase_return') {{$stock_details['total_purchase_return']}} {{$stock_details['unit']}}
@lang('lang_v1.stock_transfers') (@lang('lang_v1.out')) {{$stock_details['total_sell_transfer']}} {{$stock_details['unit']}}
@lang('lang_v1.totals')
@lang('report.current_stock') {{$stock_details['current_stock']}} {{$stock_details['unit']}}

@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')