@php $categories = $language->categories; @endphp
@php
$locations = App\Models\Instrument\Location::where([['vendor_id', Auth::guard('vendor')->user()->id], ['language_id', $language->id]])
->orderBy('id', 'desc')
->get();
$eq_location_ids = App\Models\Instrument\EquipmentLocation::where([['equipment_id', $equipment->id], ['language_id', $language->id]])
->orderBy('id', 'desc')
->get();
$location_ids = [];
foreach ($eq_location_ids as $value) {
if (!in_array($value->location_id, $location_ids)) {
array_push($location_ids, $value->location_id);
}
}
@endphp