@extends('layouts.app') @section('title', 'Transferts de stock') @section('breadcrumb', 'Catalogue / Stock / Transferts') @section('content')
@forelse($transferts as $t) @php $colors = ['brouillon' => 'badge-muted', 'valide' => 'badge-success', 'annule' => 'badge-danger']; $labels = ['brouillon' => 'Brouillon', 'valide' => 'Validé', 'annule' => 'Annulé']; @endphp @empty @endforelse
Numéro Date Source Destination Produits Statut Actions
{{ $t->numero }} {{ $t->date->format('d/m/Y') }} {{ $t->source?->label }} @if($t->source?->parent)
{{ $t->source->parent->label }}@endif
{{ $t->destination?->label }} @if($t->destination?->parent)
{{ $t->destination->parent->label }}@endif
{{ $t->lignes_count }} {{ $labels[$t->statut] ?? $t->statut }}
@if($t->statut === 'brouillon')
@csrf @method('PATCH')
@endif @if($t->statut !== 'annule') @endif
Aucun transfert — créer le premier
@if($transferts->hasPages())
{{ $transferts->links() }}
@endif
@endsection