@extends('layouts.app') @section('title', 'Consommation - Print Manager') @section('content')

Consommation par matériel

@include('partials.session-alerts')
@foreach($marques as $marque)
id, (array) request('marque_id', [])) ? 'checked' : '' }}>
@endforeach
@foreach($modeles as $modele)
id, (array) request('modele_id', [])) ? 'checked' : '' }}>
@endforeach
Reset
@if($materiels->isEmpty())

Aucun résultat.

@else
@foreach($materiels as $m) @php $lignes = $sorties->get($m->id, collect()); $cpt = $compteurs->get($m->id); @endphp @endforeach
Matériel {{ $isFiltered ? 'Consommation N&B' : 'Pages N&B' }} {{ $isFiltered ? 'Consommation couleur' : 'Pages couleur' }} Total fournitures Coût HT Détail
{{ $m->nom }}
{{ $m->localisation }}
@if($cpt && $cpt['nb']) {{ number_format($cpt['nb'], 0, ',', ' ') }} @else — @endif @if($cpt && $cpt['couleur']) {{ number_format($cpt['couleur'], 0, ',', ' ') }} @else — @endif {{ $lignes->sum('quantite') }} {{ number_format($lignes->sum('cout_ht'), 2, ',', ' ') }} € @foreach($lignes as $l) {{ $l->fourniture_nom }} {{ $l->reference ? '(' . $l->reference . ')' : '' }} x{{ $l->quantite }} @endforeach
@endif
@push('scripts') @endpush @endsection