@include('layout.header')
@include('layout.navbar') @include('layout.breadscrum')
@include('layout.sidebar')

Register Freezer Box

Register and manage a freezer box to store sample tubes in the inventory system.

1 Box Information
Box ID *
{{$box->code}}
Box Name *
{{$box->name}}
Barcode
{{$box->code ? 'BCX'.$box->code : '-'}}
Box Type *
{{$box->capacity}} Position
Position Format
{{$box->rows}} x {{$box->columns}} ({{$box->capacity}})
Material
Cryobox
Color
Blue
Status
Active
2 Storage Location
Facility *
{{session('base_organization_name') ?? 'National Biobank'}}
Building *
{{optional(optional(optional(optional($box->rack)->equipment)->room)->building)->name}}
Room *
{{optional(optional($box->rack)->equipment)->room ? optional(optional($box->rack)->equipment)->room->name : '-'}}
Freezer *
{{optional($box->rack)->equipment ? optional($box->rack->equipment)->name : '-'}}
Rack *
{{optional($box->rack)->name}}
Position *
-
3 Additional Properties
Owner Lab
Virology Unit
Notes
Enter notes (optional)...
Created By
{{optional(Auth::user())->name ?? 'ratha.leng'}}
Created Date
{{$box->created_at}}
4 Box Layout ({{$box->capacity}} Position: {{$box->rows}} x {{$box->columns}})
@if($positions->count() == 0)
No positions have been generated for this box yet. Click Generate Positions to create A1, A2, B1... slots from the box rows and columns.
@else
@for($column = 1; $column <= $box->columns; $column++)
{{$column}}
@endfor
@for($row = 1; $row <= $box->rows; $row++)
{{chr(64 + $row)}}
@endfor
@foreach($positions as $position) @php($aliquot = $position->aliquot) @php($statusClass = $aliquot ? strtolower($aliquot->status ?? 'occupied') : '')
{{$position->code}} {{$aliquot ? ($aliquot->status ?: 'Stored') : 'Empty'}}
@if($aliquot)
{{$aliquot->aliquot_number ?: optional(optional($aliquot)->sample)->sample_code}}
@else
Empty
@endif
@endforeach
Empty Occupied Reserved Quarantine Destroyed
Total: {{$positions->count()}} Occupied: {{$positions->where('occupied', 1)->count()}} Reserved: {{$positions->filter(fn($p) => optional($p->aliquot)->status === 'Reserved')->count()}} Empty: {{$positions->where('occupied', 0)->count()}}
@endif
Selected Position
-
No selection
Sample / Tube
-
Pathogen
-
Volume
-
Audit Trail / Recent Movements
@forelse($recentMovements as $movement) @empty @endforelse
Date & Time Action From To Sample / Tube Performed By Reason
{{$movement->created_at}} {{empty($movement->from_position_id) ? 'Sample Stored' : (empty($movement->to_position_id) ? 'Removed' : 'Sample Moved')}} {{$movement->fromPosition ? $movement->fromPosition->code : '-'}} {{$movement->toPosition ? $movement->toPosition->code : '-'}} {{optional($movement->aliquot)->aliquot_number ?: optional(optional($movement->aliquot)->sample)->sample_code}} {{$movement->moved_by}} {{$movement->movement_reason}}
No recent movements found.
@include('layout.footer')
@include('layout.common_script')