@extends('layouts.app') @section('title', 'Nursery Management - Blackberry Farm') @section('content')

🏪 {{ $nursery->name }}

Nursery Details and Purchase History

✏️ Edit Nursery ← Back to Nurseries

📋 Basic Information

Status: {{ ucfirst($nursery->status) }}
@if($nursery->contact_person)
Contact Person: {{ $nursery->contact_person }}
@endif @if($nursery->average_rating)
Your Rating: {{ number_format($nursery->average_rating, 1) }}/5.0 ⭐
@endif
Added: {{ date('M j, Y', strtotime($nursery->created_at)) }}

📞 Contact Information

@if($nursery->phone) @endif @if($nursery->email) @endif @if($nursery->website) @endif
@if($nursery->address || $nursery->city || $nursery->state)

📍 Address

@if($nursery->address)
Street: {{ $nursery->address }}
@endif @if($nursery->city || $nursery->state)
Location: {{ $nursery->city }}{{ $nursery->city && $nursery->state ? ', ' : '' }}{{ $nursery->state }} {{ $nursery->zip_code }}
@endif
@endif
@if($nursery->notes)

📝 Notes

{{ $nursery->notes }}

@endif

🛒 Purchase History

@if($purchases && $purchases->count() > 0) @foreach($purchases as $purchase) @endforeach
Date Variety Plant Count Total Amount Invoice
{{ date('M j, Y', strtotime($purchase->purchase_date)) }} {{ $purchase->variety_purchased ?? 'Various' }} {{ $purchase->plant_count }} plants ${{ number_format($purchase->total_amount ?? 0, 2) }} {{ $purchase->invoice_number ?? 'N/A' }}
@else

No purchase history recorded yet

Purchase records will be tracked automatically when you create plants from this nursery

@endif

🌱 Plants from {{ $nursery->name }}

@if($plants && $plants->count() > 0)
@foreach($plants as $plant)

🫐 {{ $plant->plant_id }}

Variety: {{ $plant->variety_name ?? 'Unknown' }}

Status: {{ ucfirst($plant->status) }}

Planted: {{ $plant->planted_date ? date('M j, Y', strtotime($plant->planted_date)) : 'Unknown' }}

View Plant
@endforeach
@else

No plants from this nursery yet

Plants will appear here when you create them with this nursery as the source

🌱 Add Plant from this Nursery
@endif
🌱 Add Plant from this Nursery ✏️ Edit Nursery
@csrf @method('DELETE')
@endsection