@method('PUT') @if (session('success')) @elseif (session('update')) @elseif ($errors->has('invalid')) @elseif (session('invalid')) @endif
Profile Image
{{-- @php $schools = \App\Models\School::get(); $user_school = Auth::user(); // Get the logged-in user's school ID $school_options = []; foreach ($schools as $school) { $school_options[$school->id] = $school->description; } @endphp --}} @php $schools = \App\Models\School::get(); $user_school = \App\Models\School::where('id', $user->school_id)->first(); $school_options = []; foreach ($schools as $school) { if (strpos(strtolower($school['description']), 'rweb') === 0) { continue; } $school_options[$school->id] = $school->description; // Store as key-value pair } @endphp {{-- --}}