@extends(isset($input['print']) && $input['print']==1 ? 'layouts.general' : 'layouts.app') @section('link') @if(isset($input) && (!isset($input['print']) || $input['print']==1)) @endif @endsection @section('style') @endsection @section('content')
@include('shared.messages')

{{__('texte.references_arr.stocks.title6')}}
@if(!isset($input['print']) || $input['print']!=1) {{__('texte.references_arr.stocks.references')}} @endif


{{ csrf_field() }}

{{__('texte.references_arr.stocks.general_filters')}}

@if(!isset($input['print']) || $input['print']!=1)
@endif
@include('references.filters.product_filters') @if(!isset($input['print']) || $input['print']!=1)
@endif
@if(isset($stocks) && count($stocks) > 0) @foreach($stocks as $index=>$stock) @if($index==0 || ($index>0 && $stocks[$index]->storage!=$stocks[$index-1]->storage)) @endif @if($index==0 || ($index>0 && $stocks[$index]->producer_id!=$stocks[$index-1]->producer_id)) @endif @if($index==0 || ($index>0 && $stocks[$index]->category!=$stocks[$index-1]->category)) @endif @endforeach
{{strtoupper(__('texte.references_arr.stocks.id'))}} {{__('texte.references_arr.stocks.product')}} {{__('texte.references_arr.stocks.start_quantity')}} {{__('texte.references_arr.stocks.income_quantity')}} {{__('texte.references_arr.stocks.outcome_quantity')}} {{__('texte.references_arr.stocks.end_quantity').$input['date_to']}} {{__('texte.references_arr.stocks.reserved_quantity')}} {{__('texte.references_arr.stocks.current_quantity')}}

{{__('texte.references_arr.stocks.storage')}}: {{$stock->storage->name}}

{{__('texte.references_arr.stocks.producer')}}: {{$stock->producer_name ?? 'N/A'}}
{{__('texte.references_arr.stocks.category')}}: {{$stock->category}}
{{$stock->product_id}} {{$stock->name}} {{$stock->start_quantity}} {{$stock->income_quantity}} {{$stock->outcome_quantity}} {{$stock->end_quantity}} {{$stock->reserved_quantity}} {{$stock->current_quantity - $stock->reserved_quantity}}
@endif
@if(!isset($input['print']) || $input['print']!=1) @endif @endsection