@php $locations = \App\Models\Location::where('warehouse_id', $getRecord()->warehouse_id) ->pluck('location', 'id') ->toArray(); $currentLocation = $locations[$getRecord()->location_id] ?? 'Default'; @endphp