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

Stanje opreme u {{$storage->naziv}}

@csrf
@if(!$equipment->isEmpty())

{{__('Inventory')}}

@foreach($equipment as $key=>$equip) @if(isset($equipment[$key+1])) @if($equip->id_category != $equipment[$key+1]->id_category) @endif @else @endif @endforeach
{{__("Equipment")}} {{__("Package number")}} {{__("Quantity")}} {{__("Price")}} {{__("Amount")}}
{{$equip->code}} {{$equip->equipment}} {{$equip->package_number}} {{$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