@extends('layouts.app') @section('title', 'Lots') @section('breadcrumb') @endsection @section('content')

Lots

@if($canManage) Ajouter @endif
@forelse($lots as $lot) @empty @endforelse
Code Espèce Race Bâtiment Quantité actuelle Statut Destination Date arrivée Actions
{{ $lot->code }} {{ $lot->species->name ?? '-' }} {{ $lot->breed->name ?? '-' }} {{ $lot->building->name ?? '-' }} {{ $lot->current_quantity }} @switch($lot->status) @case('actif') Actif @break @case('vendu') Vendu @break @case('termine') Terminé @break @default {{ $lot->status }} @endswitch {{ $lot->purpose ?? '-' }} {{ $lot->arrival_date ? \Carbon\Carbon::parse($lot->arrival_date)->format('d/m/Y') : '-' }} @if($canManage)
@csrf @method('DELETE')
@endif
Aucun enregistrement.
@endsection