@include('admin.header', [ 'title' => 'Batch Lab Reports', 'active' => 'certifications', 'searchPlaceholder' => 'Search batches, products, lab reports...' ])

Batch Lab Reports

Manage available product batches and their individual lab reports.

Add Batch
Certifications Batch Lab Reports
@if (session('status'))
{{ session('status') }}
@endif

Product Batches

{{ $batches->total() }} batches
@forelse ($batches as $batch) @if ($batch->labReports->count()) @endif @empty @endforelse
Batch Product Initial Remaining Status Reports Action
{{ $batch->batch_number }}
{{ $batch->title ?: 'No custom title' }}
{{ $batch->productLabel() }} {{ number_format((float) $batch->initial_quantity, 2) }} {{ $batch->quantity_unit }} {{ number_format((float) $batch->remaining_quantity, 2) }} {{ $batch->quantity_unit }} {{ $batch->status() }} {{ $batch->lab_reports_count }}
Add Report Edit @if ($batch->status() === 'Available')
@csrf @method('PATCH')
@else
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
Reports: @foreach ($batch->labReports as $report) {{ $report->title }} PDF Edit
@csrf @method('PATCH')
@csrf @method('DELETE')
@endforeach
No batches added yet
Create a batch, then attach lab reports to it.
@if ($batches->hasPages())
{{ $batches->links('pagination::bootstrap-5') }}
@endif
@include('admin.footer')