@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']}} {{$stock['price']}} {{$stock['price']*$stock['quantity']}}
{{__('Total')}} @if($stock['id_category']) {{' ('.$stock['category'].')'}} @endif: {{$totalCategory}}
{{__('Total')}} @if($stock['id_category']) {{' ('.$stock['category'].')'}} @endif: {{$totalCategory}}
{{__('Total')}}: {{$total}}
@endif @endsection