@extends('layouts.winemaker') @section('title', 'Create Blended Wine - Winemaker') @section('content') @if($availableHarvests->count() > 0)
@csrf

Step 1: Select Harvests & Specify Weights

@foreach($availableHarvests as $harvest)
Harvest #{{ $harvest->id }}
@if($harvest->plannedTask && $harvest->plannedTask->execution_date) {{ \Carbon\Carbon::parse($harvest->plannedTask->execution_date)->format('d M Y') }} @else {{ \Carbon\Carbon::parse($harvest->date)->format('d M Y') }} @endif
Variety: {{ $harvest->varietyVariation->grapeVariety->variety_name ?? 'Unknown' }}
Available Weight: {{ number_format($harvest->remaining_weight, 2) }} kg
Sugar Content: {{ number_format($harvest->sugar_content, 1) }}°NM
Quality: {{ ucfirst($harvest->quality ?? 'good') }}
Maximum: {{ number_format($harvest->remaining_weight, 2) }} kg
@endforeach

Step 2: Wine Details

@error('wine_name')
{{ $message }}
@enderror
@error('vintage')
{{ $message }}
@enderror
@error('wine_type')
{{ $message }}
@enderror
@error('sweetness')
{{ $message }}
@enderror
@error('alcohol_percentage')
{{ $message }}
@enderror
Number of bottles produced
@error('bottles_produced')
{{ $message }}
@enderror
Default: 0.75L
@error('bottle_volume')
{{ $message }}
@enderror
@error('production_date')
{{ $message }}
@enderror
Leave empty if not yet bottled
@error('bottling_date')
{{ $message }}
@enderror
Set to "Ready" if the wine is prepared for sale
@error('status')
{{ $message }}
@enderror
Set price now or later
@error('price_per_bottle')
{{ $message }}
@enderror
Tasting notes, characteristics, pairing suggestions
@error('description')
{{ $message }}
@enderror
Upload an image of the wine bottle (JPG, PNG, max 2MB)
@error('image')
{{ $message }}
@enderror

Blend Summary

Select harvests above to see blend composition

Cancel
@else

No Harvests Available

You need at least one harvest with available weight to create a blend.

View Harvests
@endif @push('scripts') @endpush @endsection