@extends('front.layout.master') @section('content') @php $query = \App\Models\PatientEducation::orderBy('created_at', 'desc'); if (request('type') && request('type') != 'all') { $query->where('category_id', request('type')); } $patients = $query->take(6)->get(); $PatientEducationCategorys = \App\Models\PatientEducationCategory::all(); @endphp

{{ __('generic.Health Education Topics') }}

{{ __('generic.Browse through our comprehensive collection of health education resources designed to help you understand and manage your health better.') }}

{{ __('generic.All Topics') }} @foreach ($PatientEducationCategorys as $category) {{ $category->name }} @endforeach
{{-- --}}
@endsection