@extends('layouts.antet') @section ('content')

Situație vânzari pe articole

{{$selectie}}


Document Client Denumire Cantitate Pret Valoare

@foreach($antetvanzare->groupby("cod") as $vanzare) ARTICOL {{$vanzare[0]->cod." ".$vanzare[0]->denumire}}
@foreach($vanzare as $articol) @endforeach
{{$articol->antetvanzare->tip_document }} {{$articol->antetvanzare->seria }} {{$articol->antetvanzare->numar }} {{dateFormatAfisare($articol->antetvanzare->data) }} {{ $articol->antetvanzare->partener }} {{ $articol->denumire }} {{$articol->cantitate}} {{number_format($articol->pret_vanzare,2)}} {{number_format($articol->valoare,2)}}

TOTAL ARTICOL {{$vanzare[0]->cod." ".$vanzare[0]->denumire}}

{{ number_format(round($vanzare->sum('cantitate'),2),2) }}

{{ number_format(round($vanzare->sum('valoare'),2),2) }}


@endforeach
TOTAL

{{ number_format(round($antetvanzare->sum('valoare'),2),2) }}


@stop