@extends('layouts.winemaker') @section('title', $wine->wine_name . ' - Wine Details') @section('content')

Wine Details

@if($wine->image_url)
{{ $wine->wine_name }}
@endif
Vintage {{ $wine->vintage }}
Grape Variety {{ $wine->grapeVariety->variety_name ?? 'N/A' }}
Wine Type {{ ucfirst($wine->wine_type ?? 'N/A') }}
Sweetness {{ str_replace('_', '-', ucfirst($wine->sweetness ?? 'N/A')) }}
Status {{ str_replace('_', ' ', ucfirst($wine->status)) }}
Alcohol {{ $wine->alcohol_percentage ?? 'N/A' }}%
Bottle Volume {{ $wine->bottle_volume ?? 'N/A' }} L
Price per Bottle {{ $wine->price_per_bottle ? '$' . number_format($wine->price_per_bottle, 2) : 'Not set' }}
@if($wine->production_date)
Production Date {{ $wine->production_date->format('d M Y') }}
@endif @if($wine->bottling_date)
Bottling Date {{ $wine->bottling_date->format('d M Y') }}
@endif @if($wine->description)
Description
{{ $wine->description }}
@endif

Production Details

@if($wine->harvests && $wine->harvests->count() > 0)
    @foreach($wine->harvests as $harvest)
  • Harvest #{{ $harvest->id }} - {{ $harvest->varietyVariation->grapeVariety->variety_name ?? 'Unknown' }}
    @if($harvest->plannedTask && $harvest->plannedTask->execution_date) {{ $harvest->plannedTask->execution_date->format('d M Y') }} @else {{ $harvest->date->format('d M Y') }} @endif
    {{ number_format($harvest->pivot->consumed_weight, 2) }} kg
    {{ number_format($harvest->pivot->blend_percentage, 1) }}%
  • @endforeach
@else

No production details available.

@endif
@endsection