@extends('layouts.app') @section('title', 'Field Management - Blackberry Farm') @section('content')
+ Add New Field 🌱 Plants 🏠 Home
{{ $fields->total() }}
Total Fields
{{ $fields->where('status', 'active')->count() }}
Active Fields
{{ $fields->sum('plants_count') }}
Total Plants in Fields
{{ number_format($fields->sum('acreage'), 1) }}
Total Acres

📊 Field Utilization Overview

Field Capacity Usage

Top Performing Fields

@foreach($fields->where('plant_capacity', '>', 0)->sortByDesc(function($field) { return ($field->plants_count / $field->plant_capacity) * 100; })->take(5) as $field) @php $utilization = ($field->plants_count / $field->plant_capacity) * 100; @endphp
{{ $field->name }}
{{ $field->plants_count }}/{{ $field->plant_capacity }} plants
{{ number_format($utilization, 1) }}%
@endforeach
Clear
@if($fields && $fields->count() > 0) @foreach($fields as $field) @endforeach
Field Name Location Size Topography Plant Capacity Utilization Status Actions
🏪 {{ $field->name }} @if($field->field_code)
({{ $field->field_code }}) @endif
@if($field->city || $field->state) {{ $field->city }}{{ $field->city && $field->state ? ', ' : '' }}{{ $field->state }} @else - @endif @if($field->acreage) {{ number_format($field->acreage, 1) }} acres @else - @endif {{ $field->topography ? ucfirst($field->topography) : '-' }} @if($field->plant_capacity) {{ $field->plants_count }} / {{ $field->plant_capacity }}
plants @else - @endif
@if($field->plant_capacity && $field->plant_capacity > 0) @php $utilization = min(100, ($field->plants_count / $field->plant_capacity) * 100); @endphp
{{ number_format($utilization, 1) }}%
@else - @endif
@php $statusClass = match($field->status) { 'active' => 'badge-success', 'inactive' => 'badge-warning', 'preparation' => 'badge-info', 'fallow' => 'badge-warning', default => 'badge-secondary' }; @endphp {{ ucfirst($field->status) }} View Edit @if($field->plants_count == 0) Add Plants @endif
@else

🏪 No Fields Added Yet

Start by creating your first growing field or location.

Track geographic data, soil conditions, and plant capacity for each field.

🏪 Add Your First Field
@endif @endsection @push('scripts') @endpush