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

{{__('Inventory')}} {{$user->ime.' '.$user->prezime}}

@csrf @if(0>1)
@endif
@if(!$equipment->isEmpty())

{{__("Equipment")}}

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