@php use App\Models\ProjectSource; $sources = ProjectSource::with('clients') ->where('IsActive', 1) ->get(); @endphp All Clients @foreach ($sources as $source) {{ $source->SourceName }} @endforeach @foreach ($sources as $source) Client ID Client Name @forelse ($source->clients as $client) {{ $client->ClientID }} {{ $client->ClientUser }} @empty No clients found. @endforelse @endforeach