@extends('layouts.antet') @section ('content')
|
crt |
Nr nir | Data nir | Document |
|
||||
|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|||||
| {{ $i++ }}. | {{$det_doc->nr_nir }} | {{dateFormatAfisare($det_doc->data_nir) }} |
{{$det_doc->tip_document }}
{{$det_doc->seria }}
{{$det_doc->nr_document .' / '.dateFormatAfisare($det_doc->data_document) }}
{{ $det_doc->partener["denumire"] }} |
{{ number_format(round($det_doc->detaliunir->sum("valoare_intrare"),2),2) }} | {{ number_format(round($det_doc->detaliunir->sum(function($value){ if($value['cantitate_receptionata']-$value['cantitate']>0){ return ($value['cantitate_receptionata']-$value['cantitate'])*$value['pret_intrare']; } }),2),2)}} | {{ number_format(round($det_doc->detaliunir->sum(function($value){ if($value['cantitate_receptionata']-$value['cantitate']<0){ return ($value['cantitate']-$value['cantitate_receptionata'])*$value['pret_intrare']; } } ),2),2) }} | {{ number_format(round($det_doc->detaliunir->sum(function($value){ return $value['valoare_intrare']+$value['valoare_taxa']+$value['valoare_transport'] +$value['valoare_asigurare']+$value['valoare_alte_cheltuieli']+$value['valoare_navlu']; } ),2),2) }} |
| TOTAL GESTIUNE {{$det_doc->gestiune["denumire"]}} |
{{ number_format(round($documentgestiune->sum(function($value){ return $value->detaliunir->sum('valoare_intrare'); }),2),2) }} |
{{ number_format(round($documentgestiune->sum(function($val){ return $val->detaliunir->sum(function($value){ if($value['cantitate_receptionata']-$value['cantitate']>0){ return ($value['cantitate_receptionata']-$value['cantitate'])*$value['pret_intrare']; }; }); }),2),2) }} | {{ number_format(round($documentgestiune->sum(function($value){ return $value->detaliunir->sum(function($value){ if($value['cantitate_receptionata']-$value['cantitate']<0){ return ($value['cantitate']-$value['cantitate_receptionata'])*$value['pret_intrare']; } }); }),2),2) }} | {{ number_format(round($documentgestiune->sum(function($val){ return $val->detaliunir->sum(function($value){ return $value['valoare_intrare']+$value['valoare_taxa']+$value['valoare_transport'] +$value['valoare_asigurare']+$value['valoare_alte_cheltuieli']+$value['valoare_navlu']; }); }) ,2),2) }} | |||