@foreach($viewModel->categories as $category)
@foreach($category->groups as $group)
{{ $group->name }}
| Name |
Units at start |
Units in |
Units out |
Units at end |
Average unit price |
Total |
@foreach($group->items->sortBy('goodName') as $good)
|
{{ $good->goodName }}
|
@quantity($good->quantityStart) {{ $good->unitName }} |
@quantity($good->quantityIn) {{ $good->unitName }} |
@quantity($good->quantityOut) {{ $good->unitName }} |
@quantity($good->quantityEnd()) {{ $good->unitName }} |
@currency($good->averageUnitPrice) {{ $currency->symbol }} |
@currency($good->endingValue()) {{ $currency->symbol }} |
@endforeach
|
Total value: @currency($group->endingValue()) {{ $currency->symbol }}
|
@endforeach
@endforeach