{{ $batch->display_name }}

{{ $batch->display_name }}

Created: {{ $batch->created_at->format('M d, Y') }}

@can('edit_batch') {{ __('Edit Batch') }} @endcan @can('delete_batch')
@endcan

Batch Information

Batch Code
{{ $batch->batch_code ?? 'N/A' }}
Status
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'processing' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', ]; $statusColor = $statusColors[$batch->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $batch->status ? ucfirst($batch->status) : 'N/A' }}
Product
{{ $batch->product->name ?? 'N/A' }}
Source
{{ $batch->source->type ?? 'N/A' }}

Harvest Details

Harvest Time
{{ $batch->harvest_time ? $batch->harvest_time->format('M d, Y H:i') : 'N/A' }}
Weight
{{ $batch->weight ? $batch->weight . ' kg' : 'N/A' }}
Grade
{{ $batch->grade ? \App\Models\Batch::GRADES[$batch->grade] ?? $batch->grade : 'N/A' }}
Has Defect
{{ $batch->has_defect ? 'Yes' : 'No' }}
@if($batch->remark)

Remarks

{{ $batch->remark }}

@endif

Eco Processes

@can('create_batch') {{ __('Add Eco Process') }} @endcan
@if($batch->ecoProcesses->count() > 0)
@foreach($batch->ecoProcesses as $ecoProcess) @endforeach
ID Stage Status Start Time End Time Actions
{{ $ecoProcess->id }} {{ $ecoProcess->stage }} @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'in_progress' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', ]; $statusColor = $statusColors[$ecoProcess->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ str_replace('_', ' ', ucfirst($ecoProcess->status)) }} {{ $ecoProcess->start_time?->format('Y-m-d H:i') ?? 'N/A' }} {{ $ecoProcess->end_time?->format('Y-m-d H:i') ?? 'N/A' }}
@if(Route::has('batches.eco-processes.show')) {{ __('View') }} @endif @can('update', $ecoProcess) {{ __('Edit') }} @endcan
@else

No eco processes

Get started by adding a new eco process.

@can('create_batch') @endcan
@endif