@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.purchases.code')}} | {{__('texte.references_arr.purchases.product')}} | {{__('texte.references_arr.purchases.quantity')}} | {{__('texte.references_arr.purchases.in_kg')}} | {{__('texte.references_arr.purchases.in_hl')}} | {{__('texte.references_arr.purchases.total_amount')}} | {{__('texte.references_arr.purchases.average_price')}} | {{__('texte.references_arr.purchases.buyings')}} |
---|---|---|---|---|---|---|---|
{{$doc_row->product_id}} | {{$doc_row->product_name}} | {{number_format($doc_row->quantity,3,'.','')}} | {{number_format($doc_row->total_weight,3,'.','')}} | {{number_format($doc_row->volume,3)}} | {{number_format($doc_row->total_amount,2,'.','')}} | {{number_format($doc_row->total_amount/$doc_row->quantity,5,'.','')}} | {{$doc_row->count_purchases}} |
{{$doc_row->category}} | {{count($doc_rows->where('category',$doc_row->category))}} | {{number_format($doc_rows->where('category',$doc_row->category)->sum('quantity'),3,'.','')}} | {{number_format($doc_rows->where('category',$doc_row->category)->sum('total_weight'),3,'.','')}} | {{number_format($doc_rows->where('category',$doc_row->category)->sum('volume'),3,'.','')}} | {{number_format($doc_rows->where('category',$doc_row->category)->sum('total_amount'),2,'.','')}} | {{number_format($doc_rows->where('category',$doc_row->category)->sum('total_amount')/$doc_rows->where('category',$doc_row->category)->sum('quantity'),5,'.','')}} | {{$doc_rows->where('category',$doc_row->category)->unique('product_name')->sum('count_purchases')}} |
{{__('texte.references_arr.purchases.total')}}: | {{count($doc_rows)}} | {{number_format($doc_rows->sum('quantity'),3,'.','')}} | {{number_format($doc_rows->sum('total_weight'),3,'.','')}} | {{number_format($doc_rows->sum('volume'),3,'.','')}} | {{number_format($doc_rows->sum('total_amount'),2,'.','')}} | {{$doc_rows->unique('product_name')->sum('count_purchases')}} |