@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')
{{__('texte.references_arr.promotion_products.group')}} | {{__('texte.references_arr.promotion_products.code')}} | {{__('texte.references_arr.promotion_products.article')}} | {{!isset($input['print']) || $input['print']!=1 ? __('texte.references_arr.promotion_products.recommend_price') : __('texte.references_arr.promotion_products.recommend_price_short')}} | {{__('texte.references_arr.promotion_products.sale_price')}} | {{!isset($input['print']) || $input['print']!=1 ? __('texte.references_arr.promotion_products.quantity') : __('texte.references_arr.promotion_products.quantity_short')}} | {{__('texte.references_arr.promotion_products.base_value')}} | {{__('texte.references_arr.promotion_products.sale_value')}} | {{__('texte.references_arr.promotion_products.difference')}} | {{__('texte.references_arr.promotion_products.by_promotion')}} | @foreach($doc_rows as $index=>$doc_row) @if($index==0)
---|---|---|---|---|---|---|---|---|---|
{{$doc_row->producer}} |
|||||||||
{{$doc_row->category}} | {{$doc_row->product_id}} | {{$doc_row->name}} | {{number_format($doc_row->price_recommend*1.2,5,'.','')}} | {{number_format($doc_row->promotion_price*1.2,5,'.','')}} | {{$doc_row->quantity}} | {{number_format($doc_row->base_value*1.2,5,'.','')}} | {{number_format($doc_row->promotion_value*1.2,5,'.','')}} | {{number_format(($doc_row->base_value-$doc_row->promotion_value)*1.2,5,'.','')}} | {{$doc_row->title ?? ''}} |
{{$doc_row->producer}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('quantity'),0,'.',' ')}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('base_value')*1.2,5,'.',' ')}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('promotion_value')*1.2,5,'.',' ')}} | {{number_format(($doc_rows->where('producer',$doc_row->producer)->sum('base_value')-$doc_rows->where('producer',$doc_row->producer)->sum('promotion_value'))*1.2,5,'.',' ')}} | |||||
{{$doc_rows[$index+1]->producer}} |
|||||||||
{{$doc_row->producer}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('quantity'),0,'.',' ')}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('base_value')*1.2,5,'.',' ')}} | {{number_format($doc_rows->where('producer',$doc_row->producer)->sum('promotion_value')*1.2,5,'.',' ')}} | {{number_format(($doc_rows->where('producer',$doc_row->producer)->sum('base_value')-$doc_rows->where('producer',$doc_row->producer)->sum('promotion_value'))*1.2,5,'.',' ')}} | |||||
{{__('texte.references_arr.promotion_products.total')}} | {{number_format($doc_rows->sum('quantity'),0,'.',' ')}} | {{number_format($doc_rows->sum('base_value')*1.2,5,'.',' ')}} | {{number_format($doc_rows->sum('promotion_value')*1.2,5,'.',' ')}} | {{number_format(($doc_rows->sum('base_value') - $doc_rows->sum('promotion_value'))*1.2,5,'.',' ')}} |