14 lines
447 B
PHP
14 lines
447 B
PHP
@php use App\Models\School;use App\Models\SchoolEmailDomain;use App\Models\User;use Illuminate\Support\Facades\Auth; @endphp
|
|
<x-layout.app>
|
|
<x-slot:page_title>Test Page</x-slot:page_title>
|
|
@php
|
|
$x = SchoolEmailDomain::with('school')->where('domain','=',Auth::user()->emailDomain())->get();
|
|
foreach ($x as $y)
|
|
{
|
|
echo "<p>" . $y->school->name . "</p>";
|
|
}
|
|
@endphp
|
|
|
|
|
|
</x-layout.app>
|