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