๐Ÿงช Soil Test Details

Test ID: #{{ $soilTest->id ?? 'N/A' }} - {{ $soilTest->location ?? 'Unknown Location' }}

โ† Back to List New Test Dashboard

๐Ÿ“‹ Test Information

Test Date: {{ isset($soilTest->test_date) ? \Carbon\Carbon::parse($soilTest->test_date)->format('M j, Y') : 'N/A' }}
Location: {{ $soilTest->location ?? 'N/A' }}
Laboratory: {{ $soilTest->lab_name ?? 'Not specified' }}
Test Method: {{ ucwords(str_replace('_', ' ', $soilTest->test_method ?? 'Unknown')) }}
Sample Depth: {{ $soilTest->sample_depth_inches ?? 'N/A' }} inches
Test Cost: @if(isset($soilTest->cost) && $soilTest->cost) ${{ number_format($soilTest->cost, 2) }} @else Not tracked @endif

โญ Overall Assessment

Soil Health Rating: @if(isset($soilTest->overall_rating)) @php $rating = $soilTest->overall_rating; $ratingClass = match($rating) { 'excellent' => 'rating-excellent', 'good' => 'rating-good', 'fair' => 'rating-fair', 'poor' => 'rating-poor', default => 'rating-fair' }; @endphp {{ ucfirst($rating) }} @else Not rated @endif
Follow-up Test: @if(isset($soilTest->follow_up_date) && $soilTest->follow_up_date) {{ \Carbon\Carbon::parse($soilTest->follow_up_date)->format('M j, Y') }} ({{ \Carbon\Carbon::parse($soilTest->follow_up_date)->diffForHumans() }}) @else Not scheduled @endif
@if(isset($soilTest->ph_level) && $soilTest->ph_level) @php $ph = $soilTest->ph_level; if ($ph >= 5.5 && $ph <= 6.5) { $phClass = 'ph-ideal'; $phStatus = 'Ideal for Blackberries'; $phDescription = 'Perfect range for nutrient availability'; } elseif ($ph < 5.5) { $phClass = 'ph-low'; $phStatus = 'Too Acidic'; $phDescription = 'May need lime to raise pH'; } else { $phClass = 'ph-high'; $phStatus = 'Too Alkaline'; $phDescription = 'May need sulfur to lower pH'; } @endphp
{{ $ph }}
{{ $phStatus }}
{{ $phDescription }}
@endif

๐ŸŒฑ Major Nutrients (NPK)

{{ $soilTest->nitrogen_ppm ?? '-' }}
Nitrogen (ppm)
@if($soilTest->nitrogen_ppm >= 20 && $soilTest->nitrogen_ppm <= 40) Excellent @elseif($soilTest->nitrogen_ppm >= 10) Good @else Needs Improvement @endif
{{ $soilTest->phosphorus_ppm ?? '-' }}
Phosphorus (ppm)
@if($soilTest->phosphorus_ppm >= 30 && $soilTest->phosphorus_ppm <= 50) Excellent @elseif($soilTest->phosphorus_ppm >= 20) Good @else Needs Improvement @endif
{{ $soilTest->potassium_ppm ?? '-' }}
Potassium (ppm)
@if($soilTest->potassium_ppm >= 150 && $soilTest->potassium_ppm <= 250) Excellent @elseif($soilTest->potassium_ppm >= 100) Good @else Needs Improvement @endif
{{ $soilTest->organic_matter_percent ?? '-' }}%
Organic Matter
@if($soilTest->organic_matter_percent >= 5) Excellent @elseif($soilTest->organic_matter_percent >= 3) Good @else Needs Improvement @endif
@if($soilTest->calcium_ppm || $soilTest->magnesium_ppm || $soilTest->sulfur_ppm || $soilTest->iron_ppm)

๐Ÿ”ฌ Secondary & Micronutrients

@if($soilTest->calcium_ppm)
{{ $soilTest->calcium_ppm }}
Calcium (ppm)
@endif @if($soilTest->magnesium_ppm)
{{ $soilTest->magnesium_ppm }}
Magnesium (ppm)
@endif @if($soilTest->sulfur_ppm)
{{ $soilTest->sulfur_ppm }}
Sulfur (ppm)
@endif @if($soilTest->iron_ppm)
{{ $soilTest->iron_ppm }}
Iron (ppm)
@endif @if($soilTest->manganese_ppm)
{{ $soilTest->manganese_ppm }}
Manganese (ppm)
@endif @if($soilTest->zinc_ppm)
{{ $soilTest->zinc_ppm }}
Zinc (ppm)
@endif
@endif @if($soilTest->soil_texture || $soilTest->drainage_rating || $soilTest->cec_meq_100g)

๐Ÿ”๏ธ Physical Properties

Soil Texture: {{ ucwords(str_replace('_', ' ', $soilTest->soil_texture ?? 'Not specified')) }}
Drainage: {{ ucwords($soilTest->drainage_rating ?? 'Not rated') }}
CEC: {{ $soilTest->cec_meq_100g ?? 'N/A' }} meq/100g
Base Saturation: {{ $soilTest->base_saturation_percent ?? 'N/A' }}%
@endif @if(isset($soilTest->recommended_amendments) && $soilTest->recommended_amendments)

๐Ÿ’ก Recommended Amendments

{{ $soilTest->recommended_amendments }}

@endif @if(isset($soilTest->follow_up_date) && \Carbon\Carbon::parse($soilTest->follow_up_date)->isPast())

โš ๏ธ Follow-up Test Overdue

The recommended follow-up test was due on {{ \Carbon\Carbon::parse($soilTest->follow_up_date)->format('M j, Y') }} ({{ \Carbon\Carbon::parse($soilTest->follow_up_date)->diffForHumans() }}). Consider scheduling a new soil test to monitor changes.

Schedule New Test
@endif @if(isset($soilTest->notes) && $soilTest->notes)

๐Ÿ“ Additional Notes

{{ $soilTest->notes }}

@endif
Record Created: @if(isset($soilTest->created_at)) {{ \Carbon\Carbon::parse($soilTest->created_at)->format('M j, Y g:i A') }} @else N/A @endif
@if(isset($soilTest->updated_at) && $soilTest->updated_at != $soilTest->created_at)
Last Updated: {{ \Carbon\Carbon::parse($soilTest->updated_at)->format('M j, Y g:i A') }}
@endif