@extends('layouts.winemaker') @section('title', 'Cellar - Winemaker') @section('content')
In Production
{{ $wines->where('status', 'in_production')->count() }}
Aging
{{ $wines->where('status', 'aging')->count() }}
Ready
{{ $wines->where('status', 'ready')->count() }}
Total Bottles
{{ $wines->sum('bottles_in_stock') }}
@if($wines->count() > 0)
@foreach($wines as $wine)
@if($wine->image_url) {{ $wine->wine_name }} @else @endif
@if($wine->status == 'in_production') In Production @elseif($wine->status == 'aging') Aging @elseif($wine->status == 'ready') Ready @elseif($wine->status == 'sold_out') Sold Out @else {{ ucfirst($wine->status) }} @endif

{{ $wine->wine_name }}

{{ $wine->vintage }} {{ ucfirst($wine->wine_type) }}
Variety {{ $wine->grapeVariety->variety_name ?? 'N/A' }}
Alcohol {{ number_format($wine->alcohol_percentage, 1) }}%
Bottles {{ $wine->bottles_in_stock }} / {{ $wine->bottles_produced }}
Bottling Date {{ $wine->bottling_date ? \Carbon\Carbon::parse($wine->bottling_date)->format('M Y') : 'N/A' }}
@endforeach
@else

No Wines in Cellar

Start by bottling wines from your harvests.

View Harvests
@endif @endsection