{{ $crop->planting_area }}

{{ $crop->crop_type }}

Planted

{{ $crop->planting_date->format('d M Y') }}

Total harvested

{{ number_format($crop->totalHarvested(), 1) }} kg

Total sold

{{ number_format($crop->totalSold(), 1) }} kg

Remaining stock

{{ number_format($crop->remainingStock(), 1) }} kg

Harvest records

    @forelse ($crop->harvests as $h)
  • {{ $h->harvest_date->format('d M Y') }} {{ $h->quantity }} {{ $h->unit }}
  • @empty
  • No harvests recorded yet.
  • @endforelse
@csrf

Sales records

    @forelse ($crop->sales as $s)
  • {{ $s->sale_date->format('d M Y') }} — {{ $s->buyer_name }} {{ $s->quantity_sold }} kg / {{ number_format($s->sale_price) }}
  • @empty
  • No sales recorded yet.
  • @endforelse
@if ($crop->remainingStock() > 0)
@csrf
@else

No remaining stock to sell.

@endif