@extends('layouts.winemaker') @section('title', 'Sales Management - Winemaker') @section('content')
@if($wines->count() > 0)
@foreach($wines as $wine) @endforeach
ID Wine Name Vintage Type Variety Stock Price Catalog Status Actions
#{{ $wine->id }}
{{ $wine->wine_name }}
{{ $wine->vintage }} {{ ucfirst($wine->wine_type) }} {{ $wine->grapeVariety->variety_name ?? 'N/A' }}
{{ $wine->bottles_in_stock }}
@if($wine->price_per_bottle)
${{ number_format($wine->price_per_bottle, 2) }}
@else Not set @endif
@if($wine->status == 'ready' && $wine->bottles_in_stock > 0 && $wine->price_per_bottle) In Catalog @else Not Listed @endif
@if($wine->status == 'ready' && $wine->bottles_in_stock > 0 && $wine->price_per_bottle)
@csrf
@else
@csrf
@endif Edit
@if($wines->hasPages())
{{ $wines->links() }}
@endif @else

No Wines Ready for Sale

Wines must have "Ready" status and available stock to be listed for sale.

View Cellar
@endif
@endsection