@php use App\Models\ProjectSource; $sources = ProjectSource::with('clients') ->where('IsActive', 1) ->get(); @endphp

All Clients

@foreach ($sources as $source)
@forelse ($source->clients as $client) @empty @endforelse
Client ID Client Name
{{ $client->ClientID }} {{ $client->ClientUser }}
No clients found.
@endforeach