Lote de engorda — {{ $lot->name }}

@if(!empty($empresa)){{ $empresa }} · @endif Generado: {{ $generated_at }}

Entrada: {{ $lot->entry_date?->format('Y-m-d') }} · Estatus: {{ $lot->status === 'open' ? 'Abierto' : 'Cerrado' }} · Periodo: {{ $evaluation['planned_duration_days'] ?? 90 }} días @if(!empty($evaluation['planned_exit_date'])) · Fin planificado: {{ $evaluation['planned_exit_date'] }} @endif @if(!empty($evaluation['pasture_accrual_start_date'])) · Pastura desde: {{ $evaluation['pasture_accrual_start_date'] }} @endif

@if($lot->description)

{{ $lot->description }}

@endif
Días confinamiento
{{ $evaluation['days_in_confinement'] ?? 0 }}
Inversión alimento
${{ number_format($evaluation['total_feed_cost'] ?? 0, 2) }}
Pastura acumulada
${{ number_format($evaluation['pasture_cost'] ?? 0, 2) }}
Inversión total
${{ number_format($evaluation['total_investment'] ?? 0, 2) }}
@if($lot->status === 'open' && !empty($projection))

Proyección al cierre ({{ $projection['planned_exit_date'] ?? '' }})

Precio $/kg Ingreso estimado Costos Utilidad neta
${{ number_format($projection['price_per_kg_used'] ?? 0, 2) }} ${{ number_format($projection['projected_income'] ?? 0, 2) }} ${{ number_format($projection['projected_total_cost'] ?? 0, 2) }} ${{ number_format($projection['projected_net_profit'] ?? 0, 2) }}
@endif

Animales del grupo ({{ count($animals) }})

@php $pricePerKg = $animals[0]['price_per_kg_used'] ?? ($lot->target_price_per_kg ?? 0); @endphp @if($pricePerKg)

Venta estimada a ${{ number_format($pricePerKg, 2) }}/kg (peso actual × precio objetivo)

@endif @foreach($animals as $a) @endforeach
Arete Peso entrada Peso actual Ganancia kg Inversión est. Venta total Ganancia $
{{ $a['cattle']['ear_tag'] ?? '—' }} {{ $a['entry_weight_kg'] ?? '—' }} kg {{ $a['current_weight_kg'] ?? '—' }} kg {{ $a['weight_gain_kg'] ?? '—' }} kg ${{ number_format($a['estimated_total_investment'] ?? 0, 2) }} ${{ number_format($a['estimated_sale_total'] ?? 0, 2) }} ${{ number_format($a['estimated_net_profit'] ?? 0, 2) }}
@if(!empty($feedInventory))

Inventario de alimento

@foreach($feedInventory as $row) @endforeach
ProductoDisponible
{{ $row['name'] }} {{ number_format($row['stock_quantity'], 1) }} {{ $row['unit'] }}
@endif

Raciones registradas ({{ count($intakes) }})

@if(count($intakes) === 0)

Sin raciones.

@else @foreach($intakes as $intake) @endforeach
Fecha Cabezas Detalle Total
{{ $intake['intake_date'] ?? '' }} {{ $intake['animals_count_snapshot'] ?? '—' }} @foreach($intake['items'] ?? [] as $item) {{ $item['material_type']['name'] ?? '' }}: {{ $item['quantity'] }}{{ !$loop->last ? ' · ' : '' }} @endforeach ${{ number_format($intake['total_cost'] ?? 0, 2) }}
@endif