@extends('layouts.app') @section('title', 'Transferts') @section('page-title', 'Transferts') @section('content') @php $magasinsOptions = $magasins->map(fn($m) => ['value' => $m->id, 'label' => $m->nom])->values()->all(); $produitsOptions = $produits->map(fn($p) => ['value' => $p->id, 'label' => $p->designation . ($p->reference ? ' (' . $p->reference . ')' : '')])->values()->all(); @endphp
{{-- Filtres --}}
{{-- Ligne 1 : Champs de filtre --}}

Aucun produit trouvé

{{-- Ligne 2 : Actions --}}
@forelse($transferts as $t) @empty @endforelse
Réf. Origine Destination Produit Quantité Date Statut Actions
{{ $t->reference }} {{ $t->magasinOrigine->nom }} {{ $t->magasinDestination->nom }} {{ $t->produit->designation }} {{ $t->quantite }} {{ $t->date_transfert->format('d/m/Y') }} {{ $t->statut }}
@if($t->statut !== 'annulé' && (!$isVendeur || auth()->id() == $t->user_id)) @endif
Aucun transfert enregistré
@if($transferts->hasPages())
{{ $transferts->links() }}
@endif

Nouveau transfert

Transférer des produits entre magasins

@csrf @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
Êtes-vous sûr de vouloir annuler le transfert « » ? Les stocks seront remis à jour.
@endsection