@extends('layouts.app') @section('title', 'Lot : ' . $lot->code) @section('breadcrumb') @endsection @section('content')

Lot : {{ $lot->code }}

Modifier Retour
{{-- Informations du lot --}}
Informations generales
Code : {{ $lot->code }}
Espèce : {{ $lot->species->name ?? '-' }}
Race : {{ $lot->breed->name ?? '-' }}
Bâtiment : {{ $lot->building->name ?? '-' }}
Origine : {{ ucfirst($lot->origin) }}
Détails
Date d'arrivée : {{ $lot->arrival_date ? \Carbon\Carbon::parse($lot->arrival_date)->format('d/m/Y') : '-' }}
Quantité initiale : {{ $lot->initial_quantity }}
Quantité actuelle : {{ $lot->current_quantity }}
Destination : {{ ucfirst($lot->purpose) }}
Coût unitaire : {{ $lot->unit_cost ? number_format($lot->unit_cost, 2) . ' FCFA' : '-' }}
Statut : @switch($lot->status) @case('actif') Actif @break @case('vendu') Vendu @break @case('termine') Terminé @break @default {{ $lot->status }} @endswitch
@if($lot->notes)
Notes
{{ $lot->notes }}
@endif {{-- Onglets --}}
{{-- Animaux --}}
@forelse($lot->animals ?? [] as $animal) @empty @endforelse
Identification Sexe Poids Statut Actions
{{ $animal->identification }} {{ $animal->sex }} {{ $animal->weight ? $animal->weight . ' kg' : '-' }} {{ $animal->status }}
Aucun animal enregistre.
{{-- Vaccinations --}}
@forelse($lot->vaccinations ?? [] as $vaccination) @empty @endforelse
Vaccin Date Prochain rappel Dose Cout
{{ $vaccination->vaccine->name ?? '-' }} {{ \Carbon\Carbon::parse($vaccination->date)->format('d/m/Y') }} {{ $vaccination->next_due_date ? \Carbon\Carbon::parse($vaccination->next_due_date)->format('d/m/Y') : '-' }} {{ $vaccination->dose ?? '-' }} {{ $vaccination->cost ? number_format($vaccination->cost, 2) . ' FCFA' : '-' }}
Aucune vaccination enregistree.
{{-- Traitements --}}
@forelse($lot->treatments ?? [] as $treatment) @empty @endforelse
Type Médicament Diagnostic Debut Fin Cout
{{ $treatment->type }} {{ $treatment->medication ?? '-' }} {{ $treatment->diagnosis ?? '-' }} {{ \Carbon\Carbon::parse($treatment->start_date)->format('d/m/Y') }} {{ $treatment->end_date ? \Carbon\Carbon::parse($treatment->end_date)->format('d/m/Y') : '-' }} {{ $treatment->cost ? number_format($treatment->cost, 2) . ' FCFA' : '-' }}
Aucun traitement enregistre.
{{-- Mortalites --}}
@forelse($lot->mortalities ?? [] as $mortality) @empty @endforelse
Date Quantité Cause Notes
{{ \Carbon\Carbon::parse($mortality->date)->format('d/m/Y') }} {{ $mortality->quantity }} {{ $mortality->cause ?? '-' }} {{ Str::limit($mortality->notes, 50) }}
Aucune mortalite enregistree.
{{-- Alimentations --}}
@forelse($lot->feedings ?? [] as $feeding) @empty @endforelse
Aliment Quantité Date
{{ $feeding->feed->name ?? '-' }} {{ $feeding->quantity }} {{ \Carbon\Carbon::parse($feeding->date)->format('d/m/Y') }}
Aucune alimentation enregistree.
{{-- Productions --}}
@forelse($lot->productions ?? [] as $production) @empty @endforelse
Type Quantité Unite Date Qualite
{{ $production->product_type }} {{ $production->quantity }} {{ $production->unit ?? '-' }} {{ \Carbon\Carbon::parse($production->date)->format('d/m/Y') }} {{ $production->quality_grade ?? '-' }}
Aucune production enregistree.
{{-- Mouvements --}}
@forelse($lot->movements ?? [] as $movement) @empty @endforelse
Type Quantité Date Motif
{{ $movement->type }} {{ $movement->quantity }} {{ \Carbon\Carbon::parse($movement->date)->format('d/m/Y') }} {{ $movement->reason ?? '-' }}
Aucun mouvement enregistre.
@endsection