@extends('layouts.app') @section('content') @if(!empty($stockpile))

{{__("Available goods (total)")}} ({{__("equipment in warehouse + equipment taken by fitter")}})

@foreach($stockpile as $key=>$stock) @if(isset($stockpile[$key+1])) @if($stock['id_category'] != $stockpile[$key+1]['id_category']) @endif @else @endif @endforeach
{{__("Equipment")}} {{__("Quantity")}} {{__("Price")}} {{__("Amount")}}
{{$stock['code']}} {{$stock['equipment']}} {{$stock['quantity']}} {{number_format($stock['price'], 2, ',', '.')}} {{number_format($stock['price']*$stock['quantity'], 2, ',', '.')}}
{{__('Total')}} @if($stock['id_category']) {{' ('.$stock['category'].')'}} @endif: {{number_format($totalCategory, 2, ',', '.')}}
{{__('Total')}} @if($stock['id_category']) {{' ('.$stock['category'].')'}} @endif: {{number_format($totalCategory, 2, ',', '.')}}
{{__('Total')}}: {{number_format($total, 2, ',', '.')}}
@endif @endsection