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

Synthèse du stock

@if(auth()->user()->is_admin) @endif
@if(!$userId)
Sélectionnez un utilisateur pour afficher la synthèse du stock.
@else

Total global en stock : {{ $total }}

@foreach($byBrand as $brand => $brandData)
{{ $brand }} {{ $brandData['total'] }}
@foreach($brandData['models'] as $model => $modelData)
{{ $model }} {{ $modelData['total'] }}
    @foreach($modelData['prefixes'] as $prefix => $prefixData)
  • {{ $prefix }} {{ $prefixData['count'] }} Voir les serials
  • @endforeach
@endforeach
@endforeach
Inconnus
Préfixe inconnu : {{ $unknown['Préfixe inconnu'] ?? 0 }}
Modèle inconnu : {{ $unknown['Modèle inconnu'] ?? 0 }}
Marque inconnue : {{ $unknown['Marque inconnue'] ?? 0 }}
@endif
@endsection