@extends('layouts.app') @section('title', __('messages.semen_production')) @section('breadcrumb') {{ __('messages.production') }} / {{ __('messages.semen_production') }} @endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
{{ __('messages.total_collected') }}

{{ number_format($semenStats['total_quantity'] ?? 0, 2) }} ml

{{ __('messages.this_month') }}

{{ number_format($semenStats['month_quantity'] ?? 0, 2) }} ml

{{ __('messages.average_per_record') }}

{{ number_format($semenStats['average_quantity'] ?? 0, 2) }} ml

{{ __('messages.records') }}

{{ $semenStats['total_records'] ?? 0 }}

@forelse($semen as $record) @empty @endforelse
{{ __('messages.cattle') }} {{ __('messages.collected_by') }} {{ __('messages.date') }} {{ __('messages.quantity_ml') }} {{ __('messages.quality') }} {{ __('messages.notes') }}
{{ $record->cattle->tag_number ?? '—' }} - {{ $record->cattle->name ?? '—' }} {{ $record->collectedBy->name ?? '—' }} {{ $record->collection_date?->format('M d, Y') ?? '—' }} {{ number_format($record->quantity_ml, 2) }} {{ $record->quality ?: '—' }} {{ \Illuminate\Support\Str::limit($record->notes, 40) ?: '—' }}
{{ __('messages.no_semen_production_records') }}
@if($semen->hasPages())
{{ $semen->links() }}
@endif
@endsection