@extends('app') @section('content')
@if(Session::get('ADMINISTRATION_STOCK_AJOUTER')) @if(Session::get('N_LOT') == '0') @endif @endif @if(Session::get('ADMINISTRATION_STOCK_EXPORTER')) {!! Form::open(['method' => 'POST', 'action' => ['StockProduitController@exportUeStock']]) !!}
@if (isset($ueSelected)) @endif
{!! Form::close() !!} {!! Form::open(['method' => 'POST', 'action' => ['StockProduitController@exportStock']]) !!}
{!! Form::close() !!} @endif {!! Form::open(['method'=>'GET','action' => ['StockProduitController@recherche']]) !!}
@if (isset($emplacementSelected) || isset($produitSelected) || isset($zoneSelected) || isset($entiteSelected)|| isset($ueSelected) || isset($designation_produit)) @endif

Gestion des stocks des produits


@if(Session::has('msgAjouter'))
{!! session('msgAjouter') !!}
@endif @if(Session::has('msgDeleteOk'))
{!! session('msgDeleteOk') !!}
@endif @if(Session::has('msgUpdate'))
{!! session('msgUpdate') !!}
@endif @if(Session::has('msgAddEmplacement'))
{!! session('msgAddEmplacement') !!}
@endif @if(Session::has('msgDeleteNotOk'))
{!! session('msgDeleteNotOk') !!}
@endif @if(Session::get('ADMINISTRATION_STOCK_FILTRER_PAR_ZONE'))
@endif @if(Session::get('ADMINISTRATION_STOCK_FILTRER_PAR_EMPLACEMENT'))
@endif @if(Session::get('ADMINISTRATION_STOCK_FILTRER_PAR_ENTITE')) @if (Session::get('STOCK_ENTITE') == '1')
@endif @endif @if(Session::get('ADMINISTRATION_STOCK_FILTRER_PAR_UE'))
@endif

@if(Session::get('ADMINISTRATION_STOCK_FILTRER_PAR_REFERENCE'))
@endif @if(Session::get('ADMINISTRATION_STOCK_FILTRER_PAR_DESIGNATION'))
@endif
{!! Form::close() !!}
@if(Session::get('N_LOT')=='1')
@if (Session::get('STOCK_ENTITE') == '1') @endif @if (Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if(Session::get('ADMINISTRATION_STOCK')) @endif @if(Session::get('ADMINISTRATION_STOCK_MODIFIER')) @if(Session::get('N_LOT') == '0') @endif @endif @if(Session::get('ADMINISTRATION_STOCK_SUPPRIMER')) @if(Session::get('N_LOT') == '0') @endif @endif @foreach( $stocks as $s) @php $numItems = count($s); $i=0; @endphp @foreach ($s as $k=> $stock) @if(++$i === $numItems) @if (Session::get('STOCK_ENTITE') == '1') @endif @if (Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if(Session::get('ADMINISTRATION_STOCK')) @endif @if ($numItems == 1) @if(Session::get('ADMINISTRATION_STOCK_MODIFIER')) @if(Session::get('N_LOT') == '0') @endif @endif @if(Session::get('ADMINISTRATION_STOCK_SUPPRIMER')) @if(Session::get('N_LOT') == '0') @endif @endif @else @if(Session::get('N_LOT') == '0') @if(Session::get('ADMINISTRATION_STOCK_MODIFIER')) @endif @if(Session::get('ADMINISTRATION_STOCK_SUPPRIMER')) @endif @endif @endif
@endif @endforeach @endforeach
N° EntitéN° UERéférence Produit EmplacementQuantité
physique
Quantité
utilisable
Quantité
réelle
DétailModifierSupprimer
{!!$stock->num_entite!!}{!!$stock->num_ue!!}{!!$stock->produit->reference!!} {!!$stock->produit->designation!!} {!!$stock->emplacement->libelle!!} {{ (float) $quantiteCollect->get($stock->id_produit."-".$stock->id_emplacement) }} {{ (float) $quantiteUtilisableCollect->get($stock->id_produit."-".$stock->id_emplacement) }} {{(float) $quantiteReelleCollect->get($stock->id_produit."-".$stock->id_emplacement) }}
{{ $stocks->links() }}
@if (isset($emplacementSelected) || isset($produitSelected) || isset($zoneSelected) || isset($entiteSelected) || isset($ueSelected) )

Total quantité physique : {{ $quantiteCollect->sum() }}

Total quantité utilisable : {{ $quantiteUtilisableCollect->sum() }}

Total quantité réelle         : {{ $quantiteReelleCollect->sum() }}

@endif @else
@if (Session::get('STOCK_ENTITE') == '1') @endif @if (Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if(Session::get('ADMINISTRATION_STOCK')) @endif @if(Session::get('ADMINISTRATION_STOCK_MODIFIER')) @endif @if(Session::get('ADMINISTRATION_STOCK_SUPPRIMER')) @endif @foreach( $stocks as $stock) @if (Session::get('STOCK_ENTITE') == '1') @endif @if (Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if(Session::get('ADMINISTRATION_STOCK')) @endif @if(Session::get('ADMINISTRATION_STOCK_MODIFIER')) @endif @if(Session::get('ADMINISTRATION_STOCK_SUPPRIMER')) @endif
@endforeach
N° EntitéN° UERéférence Produit EmplacementQuantité
physique
Quantité
utilisable
Quantité
réelle
DétailModifierSupprimer
{!!$stock->num_entite!!}{!!$stock->num_ue!!}{!!$stock->produit->reference!!} {!!$stock->produit->designation!!} {!!$stock->emplacement->libelle!!} {{ (float) $stock->quantite }} {{ (float) $stock->quantite_utilisable }} {{ (float) $stock->quantite_reelle }}

Affichage de l'élement {{($stocks->currentPage()-1)* $stocks->perPage()+($stocks->total() ? 1:0)}} à {{($stocks->currentPage()-1)*$stocks->perPage()+count($stocks)}} sur {{$stocks->total()}} éléments

{{ $stocks->links() }}
@if (isset($emplacementSelected) || isset($produitSelected) || isset($zoneSelected) || isset($entiteSelected) || isset($ueSelected))

Total quantité physique : {{ (float) $stocks->sum('quantite') }}

Total quantité utilisable : {{ (float) $stocks->sum('quantite_utilisable') }}

Total quantité réelle         : {{ (float) $stocks->sum('quantite_reelle') }}

@endif @endif
@endsection