@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.movements.title5')}}
@if(!isset($input['print']) || $input['print']!=1) {{__('texte.references_arr.movements.references')}} @endif


{{ csrf_field() }}

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

@if(!isset($input['print']) || $input['print']!=1)
@endif
@include('references.filters.document_filters') @include('references.filters.product_filters') @if(!isset($input['print']) || $input['print']!=1)
@endif
@if(isset($doc_rows) && count($doc_rows) > 0) @foreach($doc_rows as $index=>$doc_row) @if($index==0 || ($index>0 && $doc_rows[$index]->id!=$doc_rows[$index-1]->id)) @endif @endforeach
{{__('texte.references_arr.movements.date')}} {{__('texte.references_arr.movements.number')}} {{__('texte.references_arr.movements.document')}} {{__('texte.references_arr.movements.in_hl')}} {{__('texte.references_arr.movements.total_amount')}}
{{date('d.m.Y',strtotime($doc_row->date))}} {{$doc_row->number}} {{$doc_row->title}} {{number_format($doc_rows->where('id',$doc_row->id)->sum('volume'),3,'.',' ')}} {{number_format($doc_rows->where('id',$doc_row->id)->sum('total'),2,'.',' ')}}
{{$doc_row->product_id}} {{$doc_row->product_name}} {{number_format($doc_row->quantity,3,'.',' ')}} {{number_format($doc_row->volume,3,'.',' ')}} {{number_format($doc_row->total,2,'.',' ')}}
@endif
@if(!isset($input['print']) || $input['print']!=1) @endif @endsection