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


{{ csrf_field() }}

{{__('texte.references_arr.sales.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]->driver_name!=$doc_rows[$index-1]->driver_name) || ($index>0 && $doc_rows[$index]->course_id!=$doc_rows[$index-1]->course_id)) @endif @if($index==0 || ($index>0 && $doc_rows[$index]->document_id!=$doc_rows[$index-1]->document_id)) @endif @endforeach
Потребител (Шофьор) Курс
{{$doc_row->driver_name}} {{$doc_row->course_id!=0 ? $doc_row->course_id : ''}}
{{date('d.m.Y',strtotime($doc_row->date))}} {{$doc_row->number}} {{$doc_row->title}}
{{__('texte.references_arr.sales.code')}} {{__('texte.references_arr.sales.product')}} {{__('texte.references_arr.sales.quantity')}}
{{$doc_row->product_id}} {{$doc_row->product_name}} {{number_format($doc_row->quantity,3,'.','')}}
@endif
@if(!isset($input['print']) || $input['print']!=1) @endif @endsection