@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 @foreach ($patients as $patient) {{ $patient->category->name }} {{ $patient->title }} {!! $patient->excerpt !!} {{ __('generic.Read More') }} @if(app()->getLocale() === 'ar') @else @endif @endforeach {{-- {{ __('generic.Read More') }} --}} {{ __('generic.Recommended Reads') }} {{ __('generic.Our medical team has curated these essential resources to help you stay informed about important health topics.') }} @foreach ($patients as $patient) {{ __('generic.Featured') }} {{ $patient->title }} {!! $patient->excerpt !!} {{ $patient->created_at->format('d M Y') }} {{ __('generic.Read Now') }} @if(app()->getLocale() === 'ar') @else @endif @endforeach @endsection
{{ __('generic.Browse through our comprehensive collection of health education resources designed to help you understand and manage your health better.') }}
{!! $patient->excerpt !!}
{{ __('generic.Our medical team has curated these essential resources to help you stay informed about important health topics.') }}
{{ $patient->created_at->format('d M Y') }}