@php
// Exploding the comma-separated tieups into an array
$alloted_tieups = explode(', ', $invigilator->alloted_tieup);
@endphp
@foreach ($alloted_tieups as $index => $item)
@php
// Retrieve the tieup object using the $item value
$tieup = \App\Models\Tieup::find($item);
@endphp
@if ($tieup)