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

👷 Labor Log Details

{{ date('F j, Y', strtotime($laborLog->date)) }} - {{ $laborLog->worker_name }}

✏️ Edit Log ← Back to Labor Logs
@if($laborLog->follow_up_required)
Follow-up Required: @if($laborLog->follow_up_date) Scheduled for {{ date('F j, Y', strtotime($laborLog->follow_up_date)) }} @else No date specified @endif
@endif

👤 Worker Information

Worker: {{ $laborLog->worker_name }}
Date: {{ date('M j, Y', strtotime($laborLog->date)) }}
Work Hours: {{ date('g:i A', strtotime($laborLog->start_time)) }} - {{ date('g:i A', strtotime($laborLog->end_time)) }} ({{ number_format($laborLog->hours_worked, 1) }}h)
@if($laborLog->hourly_rate)
Hourly Rate: ${{ number_format($laborLog->hourly_rate, 2) }}/hour
@endif @if($laborLog->total_cost)
Total Cost: ${{ number_format($laborLog->total_cost, 2) }}
@endif @if($laborLog->supervisor)
Supervisor: {{ $laborLog->supervisor }}
@endif

🔧 Task Details

Task Type: {{ str_replace('_', ' ', ucwords($laborLog->task_type, '_')) }}
Description: {{ $laborLog->task_description }}
@if($laborLog->field_name)
Field: {{ $laborLog->field_name }}
@endif @if($laborLog->plant_ids)
Plant IDs: {{ $laborLog->plant_ids }}
@endif @if($laborLog->quantity_completed)
Quantity Completed: {{ number_format($laborLog->quantity_completed, 2) }} {{ $laborLog->completion_unit ?? 'units' }}
@endif @if($laborLog->quality_rating)
Quality Rating: {{ ucfirst($laborLog->quality_rating) }}
@endif

🌤️ Work Conditions

@if($laborLog->weather_conditions)
Weather: {{ str_replace('_', ' ', ucwords($laborLog->weather_conditions, '_')) }}
@endif @if($laborLog->temperature_f)
Temperature: {{ $laborLog->temperature_f }}°F
@endif @if($laborLog->equipment_used)
Equipment Used: {{ $laborLog->equipment_used }}
@endif @if($laborLog->materials_used)
Materials Used: {{ $laborLog->materials_used }}
@endif
@if($equipmentUsage && $equipmentUsage->count() > 0)

🚜 Equipment Usage During This Session

@foreach($equipmentUsage as $usage)
{{ $usage->equipment_name }} ({{ ucfirst($usage->equipment_type) }})
Hours Used: {{ number_format($usage->hours_used, 1) }}h
Operator: {{ $usage->operator }}
@if($usage->fuel_used)
Fuel Used: {{ number_format($usage->fuel_used, 1) }} gal
@endif @if($usage->area_covered)
Area Covered: {{ number_format($usage->area_covered, 1) }} acres
@endif
@if($usage->notes)
{{ $usage->notes }}
@endif
@endforeach
@endif @if($laborLog->notes)

📝 Work Notes

{{ $laborLog->notes }}

@endif @if($laborLog->issues_encountered)

⚠️ Issues Encountered

{{ $laborLog->issues_encountered }}

@endif
@endsection